Unable to load the requested file: low_variables/mcp_edit_var.php
Hi,
I was using Low Variables 3 with EE 2.9.3 and PHP 5.5.3. It was all working fine until just today.
Now when I try to create or edit any of the variable fields, I'm getting this error:
Unable to load the requested file: low_variables/mcp_edit_var.php
I'm also using Low Events, Low Alphabet, Freeform and Zoo Admin, as well as Wgywam, CE image.
Any ideas about possible conflicts, etc?
Replies
Low 21 Dec 2015 15:30
What changed on the server? Did you install any other add-ons recently?
Richard 21 Dec 2015 15:34
I'm just going through them now. I think the only other add-on installed since was gwcode categories.
Low 21 Dec 2015 15:35
I'll need to take a look myself. Please send SuperAdmin and FTP login credentials to hi at gotolow dot com if you can.
Richard 21 Dec 2015 16:20
Sent, thanks!
Low 21 Dec 2015 17:14
Looks like Grid somehow removes LV's package path, so it can't find its view files. I don't recall having seen this before, and Grid shouldn't mess with the paths, so I need to investigate further.
For now, I've added a hack to mcp.low_variables.php (setting the package path explicitly) so it works again, while I try to get to the bottom of this.
Richard 21 Dec 2015 17:30
Thanks, appreciate that!
paul.bellamy 8 Apr 2016 14:51
I'm also experiencing this same issue; I've found the line (893) in mcp.low_variables.php that references it - currently it's:
return $this->view('mcp_edit_var')
How can I set the path package? I'm using LV 2.6.1 on EE 2.7.0 and I really don't want to have to go through an upgrade on the whole thing if I can avoid it as there are a lot of modules on this build. I'm not sure why it would have started happening as I haven't added anything since the site launched!
Low 8 Apr 2016 15:12
You could probably add this line just above the one you mention:
paul.bellamy 8 Apr 2016 15:15
Yep, that's fixed it. Thanks Low!
Jeslen Bucci 14 Jun 2017 00:08
I ran into this same issue. I'm using Low Variables 2.6.1 with EE 2.11.9
Adding ee()->load->add_package_path(PATH_THIRD.'low_variables'); above line 893 fixed the first issue.
The other issue that I'm still running into is this error being spit out for one of our pages
Error Number: 1146
Table 'DB_NAME.exp_low_variables_grid_field_139' doesn't exist
SELECT * FROM ('exp_low_variables_grid_field_139') WHERE 'entry_id' IN ('42') ORDER BY 'row_order' asc
Filename: models/grid_model.php
Line Number: 413
It should be selecting from the table exp_channel_grid_field_139 instead of exp_low_variables_grid_field_139.