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

Support archive

PHP error when viewing Low Variables module in CP

Jim P 28 Jan 2010 11:16 question, complete

After uploading all the files, enabling the extension and entering my license key details, all looks fine. However, when I click into Modules and Low Variables, I'm getting the following at the top of my page:


Notice: Unable to load the requested file: manage_menu.php in /home/my-path/public_html/system/cp/cp.display.php on line 100

Notice: Unable to load the requested file: home.php in /home/my-path/public_html/system/cp/cp.display.php on line 100


Any ideas what may be wrong?

Cheers

Jim

Replies

  1. Low 28 Jan 2010 11:22

    Hey Jim,

    Looks like EE cannot find the view file it needs. Can you make sure the /system/modules/low_variables/views/ folder is in place?

    Also, what's your PHP version?

  2. Jim P 28 Jan 2010 11:26

    Hi Low

    Yes, that directory is in place and I can see home.php and manage_menu.php in there.

    I'm using PHP 5.2.8, EE 1.6.8 build 20090515 with MSM.

    Would there be any other addons that could clash?

    Cheers

    Jim

  3. Low 28 Jan 2010 11:30

    Not sure how other add-ons could affect this.

    Can you try to copy the files inside the /views/ folder to the /low_variables/ folder (so moving them up a dir)?

  4. Low 28 Jan 2010 11:35

    Also, are you sure that's the build number? The Changelog says 1.6.8 started with build 20090723...

  5. Jim P 28 Jan 2010 11:36

    That's not made any difference unfortunately.

    Low 28 Jan 2010 11:37

    It was a wild guess; I'll dig deeper.

  6. Jim P 28 Jan 2010 11:38

    I'm using NSM Publish Plus which requires a hack to cp.publish.php. Could that affect anything?

  7. Low 28 Jan 2010 11:45

    No, that shouldn't matter. Low Variables doesn't use cp.publish.php.

    Could you take a look at cp.modules.php? Around line #298 (in the most recent build) there's this code:

    $DSP->view_path = PATH_MOD.$module.'/views/';

    Can you confirm that line is inside the module_handler() method, there?

    Jim P 28 Jan 2010 12:05

    Yes - line #298 exactly, so it's there.

  8. Jim P 28 Jan 2010 11:48

    Here's a screenshot of the CP footer:

    build number

  9. Low 28 Jan 2010 12:03

    Hmmm. EE gets its version number from the config.php file, but its build number from core.system.php. The screenshot and change log data suggest there might be a bit of a version/build mixup.

    You're not getting an error when the module fires the view method, so that would suggest the cp.display.php file is up to date (since the ability to use view files was introduced in build 20090723). I commented out the code in cp.modules.php mentioned above, which triggered the error you saw.

    Can you try and replace the cp.modules.php file with a recent one (and backup the old file, of course)?

    Jim P 28 Jan 2010 12:22

    Mmm... Diff says those files are exactly the same (I compared my file with that of build 20091002).

  10. Low 28 Jan 2010 12:16

    Can I get access to your install? CP and FTP, if that's possible?

    Jim P 28 Jan 2010 12:22

    Sure - I'll email you now.

  11. Low 28 Jan 2010 12:48

    Okay, after nosing around, I found out what was going on, but I'm not sure why.

    For some reason, the $DSP->view_path was not set correctly. Normally this would happen in the cp.modules.php file, when module_handler() is called. However, this function is not called in your installation, thus the correct path is never set.

    I've added a check to the Low Variables module, so it sets the correct path if not set. Now it works as it should.

    Still, I am curious why this is happening. It might have something to do with the MSM (though I doubt it), or perhaps the fiery tea/hermes expansion? Anyway, it should work now, and I'll add the fix to the next version.