PHP Error
I turned on the debug feature in admin.php and index.php files to see what errors are on my site. I am getting this:
A PHP Error was encountered
Severity: Warning
Message: Parameter 1 to Low_variables_ext::sessions_end() expected to be a reference, value given
Filename: libraries/Extensions.php
Line Number: 241
Any ideas why? I am on 2.3.1
Replies
Low 19 Sep 2012 06:58
This is in EE 2.5.3 and PHP 5.3+, right? They made a change that breaks existing add-ons. There are 2 solutions:
1. Restore /system/expressionengine/libraries/Extensions.php from EE 2.5.2
2. Changing &$SESS to $SESS on line 224 in ext.low_variables.php
1 will fix it for all add-ons with similar problems, 2 will fix it for LV only.
vacquah 19 Sep 2012 11:44
Went with option 1 and replaced the extensions.php file. Now getting this:
Parse error: syntax error, unexpected '}' in /www/eh16053/system/expressionengine/libraries/Extensions.php on line 281
Site is down.
Low 19 Sep 2012 11:47
Are you sure the file wasn't truncated? If you take the Extensions.php file from a fresh EE 2.5.2 install, that shouldn't throw that error.
vacquah 19 Sep 2012 11:56
Took the file from my backup ( 2.5.2) before updating to 2.5.3. I don't have a fresh copy.
Low 19 Sep 2012 11:58
Okay, then put back the 2.5.3 file and go for solution 2 for now.
I can send you a fresh 2.5.2 version of Extensions.php if you want.
vacquah 19 Sep 2012 11:59
please send the fresh copy too .. will appreciate that.
Low 19 Sep 2012 11:59
Where can I send it to?
vacquah 19 Sep 2012 12:15
va1985 at aol dt com
Low 19 Sep 2012 12:46
Sent. Please let me know if that worked.
vacquah 19 Sep 2012 12:48
Still haven't received the file - checked my spam/junk folders already.
Low 19 Sep 2012 12:52
Sent again, this time with a link to the file. Give it a couple of minutes, then.
vacquah 19 Sep 2012 13:13
All set! Working now ... Many Thanks
Mrs. Flinger 28 Nov 2012 14:46
Thanks for the fix, Low. I had this same problem but all is fine now following #2. :-)