Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi;
When a non-admin user views a product from uebercart, following Notice is displayed:
•Notice: Trying to get property of non-object in panels_node_node_access() (line 164 of /var/www/drupal/docroot/sites/all/modules/panels/panels_node/panels_node.module).
•Notice: Trying to get property of non-object in node_access() (line 3037 of /var/www/drupal/docroot/modules/node/node.module).
Can you please advise how this can be fixed?
Thanks
Thomas
Comments
Comment #1
borntosucceed CreditAttribution: borntosucceed commentedComment #2
lightenna CreditAttribution: lightenna commentedLook for node_access('some_crud', $node->nid)
I've had this error when the call should have looked like node_access('some_crud', $node) in D7.
Cheers, Alex
Comment #3
borntosucceed CreditAttribution: borntosucceed commentedUps forgot all about this error since I stopped using Ubercart for my site. However will keep this mind for the future.
Thanks for the feedback.
Comment #4
pokethejoker CreditAttribution: pokethejoker commentedHello,
I am getting the exact same error message under the same conditions as specified above
Do you know how to solve this problem?
Kind regards
Mark
Comment #5
pokethejoker CreditAttribution: pokethejoker commentedWorkaround:
Under Panel Nodes in the Permissions section, anonymous and authenticated users need permissions for
Edit any panel-nodes
Edit own panel nodes
I am not entirely sure what security implications this creates but it gets rid of a damned annoying error message for my users
Comment #6
borntosucceed CreditAttribution: borntosucceed commentedGlad you have a workaround, I am actually no longer using the uebercart module.
Comment #7
Kristi Wachter CreditAttribution: Kristi Wachter commentedAlternately, check out the suggestions at this related Ubercart thread - especially comment 5.
Comment #8
rwesterhof CreditAttribution: rwesterhof commented#2 helped me, thanks!
Comment #9
jumpthattb CreditAttribution: jumpthattb commented#2 worked for errors in Quiz Module Quiz as well.
Thanks Mr. Smartie! :)