Hello ,

I am unable to create block because its not showing views display.It showing ajax error.Please fix it.
Please see attached image files.

Thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

harish86 created an issue. See original summary.

g089h515r806’s picture

I have test alpha3, it works correct.
Please test it again following these steps:
1,remove the old files, maybe alpha2
2,copy the alpha3 files
3,clear the cache.

D8 have opcode cache enable default.

g089h515r806’s picture

FileSize
51.25 KB

I have similar ajax error when develop alpha3, I fix it at last.
Or you could test it with a clean D8 install.

giuliovale’s picture

I have same problem but #2 not solve the issue.
Log show:
Warning: assert(): The container was serialized. failed in Drupal\Core\DependencyInjection\Container->__sleep() (linea 29 di /var/www/drupal8/core/lib/Drupal/Core/DependencyInjection/Container.php).
and
LogicException: The database connection is not serializable. This probably means you are serializing an object that has an indirect reference to the database connection. Adjust your code so that is not necessary. Alternatively, look at DependencySerializationTrait as a temporary solution. in Drupal\Core\Database\Connection->__sleep() (linea 1425 di /var/www/drupal8/core/lib/Drupal/Core/Database/Connection.php).

Drupal 8.1.8
BlockTabs 8.x-1.0-alpha3

liang808’s picture

My problem has been solved. I forgot to clear the cache.

carstenhager’s picture

I have same problem after select a view name.

g089h515r806’s picture

This is a problem with nginx.
apache is ok.

carstenhager’s picture

I use apache 2.4

mvogel’s picture

I got the same issue with apache 2.4

VOgbuehi’s picture

Also using Apache 2.4.16 and receiving the same error when trying to add a view display.

superlolo95’s picture

I have the same issue.
With both versions available at that time (dev and alpha).
I tried to clear the cache using crush and the web interface without any success.
I also tried to downgrade the php version from 7.0 to 5.6 without success neither.

g089h515r806’s picture

Maybe this module conflict with another module.
Could you test it with a clean Drupal 8 install.

pifagor’s picture

Status: Active » Postponed (maintainer needs more info)

That was a patch for the views https://www.drupal.org/node/2847991#comment-11900222, your mistake but failed to play. Perhaps you have a problem in connection with other modules?

mvogel’s picture

With the patch from #13 it is working now.
Thanks :)

superlolo95’s picture

The patch is not working for me.

With the dev version
When I add a view tab in a block tab

I gat an errorhttp://mydomain/admin/structure/blocktabs/manage/agence/add/views_tab?weight=1&ajax_form=1&_wrapper_format=drupal_ajax Failed to load resource: the server responded with a status of 500 (Internal Server Error)
and

Uncaught Drupal.AjaxErrormessage: "↵An AJAX HTTP error occurred.↵HTTP Result Code: 500↵Debugging information follows.↵Path: /admin/structure/blocktabs/manage/agence/add/views_tab?weight=1&ajax_form=1↵StatusText: Internal Server Error↵ResponseText: {}"name: "AjaxError"__proto__: Error
    at http://mydomain/core/misc/ajax.js?v=8.2.5:181:32
    at http://mydomain/core/misc/ajax.js?v=8.2.5:1344:3

use case:
create a new block tab
add a new view tab
Select a view
==>displays are not retrieved

g089h515r806’s picture

Status: Postponed (maintainer needs more info) » Fixed

this is a bug of 8.x-3.0-alpha3 rules module,
Update rules module to latest devel version or 8.x-3.0-alpha3 + will fix this issue.
I have the same isue in one project, after a lot debug, i find there is a bug in rules, update rules module devel version will fix this.

pifagor’s picture

Status: Fixed » Closed (fixed)