All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Low Variables PHP errors LV 2.6.0 EE 2.9.3

boilerroomdigital 25 Mar 2015 17:12 question, complete

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

  1. 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?

  2. 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:

    ee()->load->add_package_path(PATH_THIRD.$this->package);


    Do the same for /low_variables/base.low_variables.php (line #165).

  3. boilerroomdigital 26 Mar 2015 10:07

    Thanks - that seems to have done the trick.

  4. 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?

  5. Low 28 Apr 2015 17:39

    Yeah. Open up mcp.low_variables.php and look around line #303, the line that reads

    return $this->view('mcp_index');


    Above that, add this line:

    ee()->load->remove_package_path(PATH_THIRD.'low_search');


    which should fix it.

  6. boilerroomdigital 6 May 2015 16:12

    Thanks - that does indeed fix it. I assume these issues will be sorted in future versions.

  7. Low 6 May 2015 16:13

    You are assuming correctly.

  8. boilerroomdigital 6 May 2015 16:15

    :)