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

borntosucceed’s picture

Issue summary: View changes
lightenna’s picture

Look 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

borntosucceed’s picture

Ups 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.

pokethejoker’s picture

Hello,

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

pokethejoker’s picture

Workaround:
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

borntosucceed’s picture

Glad you have a workaround, I am actually no longer using the uebercart module.

Kristi Wachter’s picture

Alternately, check out the suggestions at this related Ubercart thread - especially comment 5.

rwesterhof’s picture

#2 helped me, thanks!

jumpthattb’s picture

#2 worked for errors in Quiz Module Quiz as well.

Thanks Mr. Smartie! :)