Hi,
I get warning when I create a rate widget.
Warning: Parameter 1 to rate_expiration_rate_widget_insert() expected to be a reference, value given in-module_invoke_all() (Line 818 -C:\wamp\www\mysite\includes\module.inc).
whats wrong?!
Thanks.

CommentFileSizeAuthor
#4 Capture.JPG25.67 KBearwax
#3 Capture.JPG40.77 KBearwax

Comments

ntigh52’s picture

Title: when I create a rate widget. » reference Parameter but value given
Maks’s picture

Subscribe

earwax’s picture

StatusFileSize
new40.77 KB

I also get this error. See attached screenshot.

earwax’s picture

StatusFileSize
new25.67 KB

I found a fix for this! The problem is that we are using PHP 5.3. You need to get rid of the "&" symbol from the two functions below located in expiration/rate_expiration.module

Change from:

function rate_expiration_rate_widget_insert(&$widget, $values) {

Change to:

function rate_expiration_rate_widget_insert($widget, $values) {

and

Change from:

function rate_expiration_rate_widget_update(&$widget, $values) {

Change to:

function rate_expiration_rate_widget_update($widget, $values) {

I do not know how to submit a patch so I will let someone else do this.

Once you make those changes, then everything works and you can set expiration dates. (see screenshot)

More info about this:
http://php.net/manual/en/language.references.pass.php

mauritsl’s picture

Status: Active » Closed (duplicate)

Patch is provided in #1337010: Expiration settings don't save

Closing this issue as a duplicate.