From a clean install of nodestream... From login, create article and the following error occurs.

warning: Parameter 2 to ns_promo_crossclone_node_alter() expected to be a reference, value given in /var/aegir/platforms/ns/includes/common.inc on line 2892.
warning: Parameter 2 to ns_core_crossclone_node_alter() expected to be a reference, value given in /var/aegir/platforms/ns/includes/common.inc on line 2892.

When checking the promo, the node-reference to the article is missing. Or am I?

CommentFileSizeAuthor
#4 error_pic.png72.43 KBavguy

Comments

Daidy’s picture

I have exactly the same problem, with same error.

sgwood’s picture

yeah, i get the same error:
warning: Parameter 2 to ns_promo_crossclone_node_alter() expected to be a reference, value given in /srv/www/xxxxxx.com/nodestream/includes/common.inc on line 2892.

kristoferaberg’s picture

I get the same error as well. The whole idea with the Promo feature goes away if this doesn't work. That feature, and Nodestream, seems like great products, so I hope this will be looked into.

avguy’s picture

StatusFileSize
new72.43 KB

I'm also having the issue above. Has anyone figured it out?

meleniumshane90’s picture

Issue tags: +nodestream

I am also having the same issue, and now I can no longer post an article (500 error). I thought perhaps the theme I added after it caused the article posting issue, but nope... I can create blogs and everything else, but not an article.

If anyone gets an update or has the same issue, please update everyone on here. I emailed the developers, so we'll see if they respond quickly.

cach’s picture

This might be an issue related to PHP version. What version of PHP are you running?

meleniumshane90’s picture

PHP Version 5.3.2

I seriously doubt its a PHP issue, because everything works with the exception of creating an article or editing the single article I made. I can create blogs and everything else Nodestream has setup stock. Its not a permission issue, either, I looked into that.

meleniumshane90’s picture

I was just informed by someone at Nodestream that this may actually be a PHP issue, as Nodestream is currently designed to work with PHP 5.2, not 5.3. I will see if it is possible to downgrade my PHP version to 5.2 and report back if that solves it.

iRex’s picture

subscribing

fabsor’s picture

Issue tags: -nodestream +PHP 5.3 compatibility

This is indeed a PHP 5.3 issue. We have been working really hard on getting the drupal 7 version out the door, that is why we haven't been able to work on this issues. I'm tagging this issue properly so that we can get to it.

kreynen’s picture

Status: Active » Needs work

I spent more time than I expected tracking the error down. Turns out this issue existed with several modules and the issue is actually with the crossclone module. Some of the discussions and different fixes:

http://drupal.org/node/925580#comment-4777844
http://drupal.org/node/705512#comment-2586014
http://drupal.org/node/930992#comment-4066840

Those fixes deal with altering the $form_state before calling drupal_alter which is not exactly what the crossclone module is doing. I tried updating crossclone, but didn't have any luck. Maybe someone more familiar with how the values are being passed can figure that out.

This patch to common.inc is ugly, but solves the problem...

http://drupal.org/node/710892#comment-3884210

fabsor’s picture

Status: Needs work » Fixed

We actually don't need to get these parameters by reference. This issue should be fixed here:

http://drupalcode.org/project/ns_core.git/commit/b149385

Automatically closed -- issue fixed for 2 weeks with no activity.