When I try to access admin/workbench on a new Drupal 8.1.1 website I get an HTTP Error 500 with the errors:
Fatal error: Call to a member function set() on null in core/modules/views/src/ViewExecutable.php on line 446
Fatal error: Call to a member function getCacheTags() on null in core/modules/views/src/Plugin/views/query/Sql.php on line 1552
If I access sub entries all works well:
admin/workbench/create
admin/workbench/content/edited
admin/workbench/content/all
Also note that nothing is being logged in the Watchdog table
For debugging purposes:
Database system version 5.5.49-MariaDB-1~wheezy
PHP 5.6.21
Web server nginx/1.9.15
Comment | File | Size | Author |
---|---|---|---|
#17 | config-www-alteamorgan-com-2016-07-02-17-10.tar_.gz | 64.66 KB | huma2000 |
#16 | Screen Shot 2016-06-30 at 5.47.05 PM.png | 107.84 KB | agentrickard |
Comments
Comment #2
JulienF CreditAttribution: JulienF at Eweev LTD for ShopBuilder commentedComment #3
rooby CreditAttribution: rooby commentedThis also happens on latest dev and Apache 2.4.
The error is:
Comment #4
rooby CreditAttribution: rooby commentedAfter a little more investigation, that page is rendering 3 block views.
Rendering just the 'workbench_current_user' block gives this error:
Rendering just the 'workbench_edited' block gives this error:
Rendering just the 'workbench_recent_content' block give no errors.
Comment #5
rooby CreditAttribution: rooby commentedComment #6
rooby CreditAttribution: rooby commentedThis error:
happens because for some reason the workbench_current_user view doesn't exist on my site after installing workbench and workbench_moderation modules.
Related issue: #2732119: The existence of defined views is not checked
Comment #7
rooby CreditAttribution: rooby commentedComment #8
rooby CreditAttribution: rooby commentedI just had
from another view that I created myself and it seemed to be directly related to having a relationship from the content revision to the content.
I have not done a search for related Drupal core issues yet.
Comment #9
agentrickardDuplicate of the linked issue.
Comment #10
rooby CreditAttribution: rooby commentedI believe only the "Call to a member function set() on null" error was a duplicate but this one still happens, and I think it relates to having a relationship from the content revision to the content.
Possibly there is another issue for that somewhere but I haven't had an in depth look into it yet.
Comment #11
larowlanRelated #2738051: \Drupal\views\Plugin\views\query\Sql::getCacheTags and getCacheMaxAge don't take into account that some entities can be NULL
Comment #12
agentrickard"from another view that I created myself" is not an issue for this queue.
Comment #13
rooby CreditAttribution: rooby commentedBut it also happens with the view provided by this module. The workbench_edited view. That's what this is about. See comment #4.
That statement was just to illustrate that it is possibly related to the content revision relationship.
Comment #14
agentrickardI can't replicate this error. The linked issue was caused when content translations were active.
Two questions:
1) Are you using content translation? Any other modules or configuration that might affect the view?
2) Are you testing against alpha2 or dev?
Comment #15
huma2000 CreditAttribution: huma2000 commentedI have the same issue, happens when the user have multiple nodes published and I am using the alpha version.
There are no modules that modify that view.
Tested with php versions from 5.5 to 7and always same result.
Also if one of the devs need access to my current website to see the problem, plscontactme by pm and we can arrange it.
Comment #16
agentrickardI still can't replicate this.
A module like Content Translation might not modify the View, but it could modify node properties or caching in a specific way, so I still need to know what modules are installed.
Perhaps an export of your content type config would help.
Comment #17
huma2000 CreditAttribution: huma2000 commentedHere you have a full config export of my site (wip, so some of things on it atm), hope it helps
Comment #18
rooby CreditAttribution: rooby commentedIt's possible that this fix will solve it: #2714989: Views which load the same entity type as entity and non default revision cause fatal in Sql::getCacheTags()
Comment #19
Gravypower CreditAttribution: Gravypower commentedI can confirm that the patch mentioned in #18 has fixed this issue for me
Comment #20
agentrickardAnd that patch should be included in Drupal 8.1.5, so an upgrade should fix the issue.
Comment #21
agentrickardComment #23
agentrickard