Closed (duplicate)
Project:
Rate
Version:
7.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Dec 2011 at 10:44 UTC
Updated:
7 Mar 2012 at 12:17 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Capture.JPG | 25.67 KB | earwax |
| #3 | Capture.JPG | 40.77 KB | earwax |
Comments
Comment #1
ntigh52 commentedComment #2
Maks commentedSubscribe
Comment #3
earwax commentedI also get this error. See attached screenshot.
Comment #4
earwax commentedI 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:
Change to:
and
Change from:
Change to:
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
Comment #5
mauritsl commentedPatch is provided in #1337010: Expiration settings don't save
Closing this issue as a duplicate.