PHP Version 5.3.0
Drupal 6.15
RelatedContent 6.x-1.0

Experienced this error on the RelatedContent tab on all of the available Views for that content type.
warning: Parameter 2 to _relatedcontent_form_view() expected to be a reference, value given in /Library/WebServer/Documents/staff-6.15/includes/form.inc on line 372.

I went in the code and changed the function that the warning mentions to not pass a reference. Works fine now. I'll attach my patch in the first comment.

Comments

dooug’s picture

Here is the patch. Please review and comment.

dooug’s picture

This seems to be a PHP 5.3 problem. Similar issues have been posted with Drupal 6 core and PHP 5.3: #360605: PHP 5.3 Compatibility

I'm not sure if D6 contrib modules are required to work with PHP 5.3 but either way, this patch might still be valid.

dooug’s picture

Issue tags: +PHP 5.3
str1’s picture

*edit: Did get it working with patch, thank you! Used latest dev release + cleared caches

pfaocle’s picture

Version: 6.x-1.0 » 6.x-1.x-dev

Fixes warning, patch looks good.

michalczernik’s picture

Did not work for me.

I have applied the patch on DEV server with PHP 5.3.2 and it works, but on TEST server with PHP 5.3.3 I'm still getting the same error message.

Any ideas?

Brainhack’s picture

The patch worked for me on php 5.3.2.

I have one site that relies somewhat heavily on this module, now I won´t have to pull it out of my Aegir-server and downgrade it - thanks for publishing the patch!