I get the following error message when I posted a new product (as a test). Any ideas what the cause and fix is?

warning: Parameter 2 to views_gallery_og_link_alter() expected to be a reference, value given in \includes\common.inc on line 2883

Possible relevant modules that I’m using include ubercart, ubercart marketplace, and views gallery.

If you need more info I can try to furnish it.

Comments

vm’s picture

the issue is with views gallery and it's integration with organic groups module hence the "og" in the error. Are you using organic groups?

I believe your issue is related to running in PHP 5.3. Are you running PHP 5.3?

yosisays’s picture

yes and yes

vm’s picture

Then the issue queue of the modules in question should be checked for similar reports. Ultimately there is an extra & in the code that needs to be removed for PHP 5.3 to properly deal with what it's erroring on. While core is PHP 5.3 ready contrib modules may not be.

gateway69’s picture

any updates to this issues.. I just ran into it myself.. and it seems with any ubuntu 10x install you get php 5.3.. pretty annoying...

or a patch?

yosisays’s picture

I switched to php 5.2 an it seems to be working ok

itzcoatl’s picture

changing from PHP 5.3 to 5.29 worked for me