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

Support archive

Fatal error after upgrading Low Variables from V 2.6.0 to V 2.6.1 (EE version 2.9.3)

Robert Hallatt 31 Jul 2015 14:59 problem, complete

Hi,

I tried to upgrade to V 2.6.1 and got the following errors:

A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: low_variables/mcp.low_variables.php

Line Number: 1859

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Low_variables_mcp::$types

Filename: low_variables/mcp.low_variables.php

Line Number: 241

A PHP Error was encountered

Severity: Warning

Message: array_key_exists() expects parameter 2 to be array, null given

Filename: low_variables/mcp.low_variables.php

Line Number: 241

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Low_variables_mcp::$types

Filename: low_variables/mcp.low_variables.php

Line Number: 247

Fatal error: Call to a member function display_input() on a non-object in /chroot/home/cpsca/cps.ca/data/expression_engine_source/low_variables_2.6.1/system/expressionengine/third_party/low_variables/mcp.low_variables.php on line 256

Can you help me fix this?

Thanks,

Rob

Replies

  1. Low 31 Jul 2015 15:05

    How odd. Almost looks like something is corrupted. Can you access the settings via Add-Ons > Extensions > Low Variables and make sure there are variable types enabled?

  2. Robert Hallatt 31 Jul 2015 15:09

    Nope, I can't access anything form the back end. Just a white screen with error messages. I'll try re-uploading the plugin files to see if that makes a difference. The odd thing is that 2.6.1 works on my development server.

  3. Low 31 Jul 2015 15:15

    Can you roll back, re-upload the files, and try again?

    As you might expect, I can't reproduce this myself.

  4. Robert Hallatt 31 Jul 2015 15:21

    I re-uploaded the files and I can now access the plugin. But, randomly, I get the following messages now when I try to access various low variable menus:

    An Error Was Encountered
    Unable to load the requested file: mcp_edit_var.php

    An Error Was Encountered
    Unable to load the requested file: ext_settings.php

    I refresh the page, it will sometimes go away and sometimes not.

    So strange. Could another plugin be the culprit?

  5. Low 31 Jul 2015 15:27

    Can you make sure that the view files are in /third_party/low_variables/views/low_variables/ rather than in /third_party/low_variables/views/?

  6. Robert Hallatt 31 Jul 2015 15:31

    Everything looks good with the view files. I recently installed Developer 1.7.3. So I uninstalled that and now everything seems to be working ok again. Something else I notice is that the Version number didn't update 2.6.1. Know any tricks to make that happen?

  7. Low 31 Jul 2015 15:33

    If it didn't happen automatically when visiting the module page, you can update it manually in the exp_modules table.

  8. Robert Hallatt 31 Jul 2015 15:36

    Excellent! Thanks for your help.