Low Variables PHP errors LV 2.6.0 EE 2.9.3
Just updated to Low Variables 2.6.0 and EE 2.9.3. The main Low Variables screen isn't showing, and instead I'm seeing the following PHP errors:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: member_can_manage
Filename: views/mcp_index.php
Line Number: 3
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: member_can_manage_lexicon
Filename: views/mcp_index.php
Line Number: 3
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: member_can_view_search_log
Filename: views/mcp_index.php
Line Number: 3
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: member_can_manage_shortcuts
Filename: views/mcp_index.php
Line Number: 3
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: member_can_replace
Filename: views/mcp_index.php
Line Number: 23
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: member_can_view_replace_log
Filename: views/mcp_index.php
Line Number: 23
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: member_group
Filename: views/mcp_index.php
Line Number: 37
Replies
boilerroomdigital 25 Mar 2015 17:25
Just noticed that this is looking at the view file for Low Search (which I've also got installed on this site). On the latest version of that too (4.1.0). Are they incompatible? Or is this an EE issue?
Low 25 Mar 2015 17:52
Apparently, EE is getting stricter in loading package paths.
To fix, open up /low_search/base.low_search.php and comment out or remove line #113, which reads:
Do the same for /low_variables/base.low_variables.php (line #165).
boilerroomdigital 26 Mar 2015 10:07
Thanks - that seems to have done the trick.
boilerroomdigital 28 Apr 2015 15:45
Hi again. I just updated some add ons on my staging site and these errors are back now.
We are on EE 2.9.3, LV 2.6.0 and Low Search 4.2.0.
The change you gave me to make to Low Variables is still there. Any thoughts?
Low 28 Apr 2015 17:39
Yeah. Open up mcp.low_variables.php and look around line #303, the line that reads
Above that, add this line:
which should fix it.
boilerroomdigital 6 May 2015 16:12
Thanks - that does indeed fix it. I assume these issues will be sorted in future versions.
Low 6 May 2015 16:13
You are assuming correctly.
boilerroomdigital 6 May 2015 16:15
:)