Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Error after Updating Plugins

Started by Muut Archive 10 years ago · 15 replies · 648 views
10 years ago

Hello there,

I've accidentally tried to update the plugins in a installed GRAV (1.1.8). As a result I get the following error while calling the admin section.

TXT
"An exception has been thrown during the rendering of a template ("file_exists(): open_basedir restriction in effect. File(/customers/f/9/e/<site>/httpd.wwwuser/plugins/admin/themes/grav/c ss-compiled/nucleus.css) is not within the allowed path(s): (//customers/f/9/e/<site>//httpd.www://customers/f/9/e/<site>//httpd.private://customers/f/9/e/<site>//tmp:/customers/<site>/<site>:/var/www/diagnostics:/usr/share/php)") in "partials/base.html.twig" at line 21."

What can I do to make it work again?&quest;?&quest;

Regards,

Michael

10 years ago

Looks like the path inside ...

TXT
file_exists(): open_basedir restriction in effect. File(/customers/f/9/e/<site>/httpd.wwwuser/plugins/admin/themes/grav/c ss-compiled/nucleus.css)

is broken. Can I fix it somehow?

10 years ago

Hi, this looks like a problem caused by the hosting provider as they have open_basedir restriction in effect as the error says. You might want to ask your hosting support how to fix this.

10 years ago

I looked up the same solution but it really looks like the link is broken
theres an "/" missing between www and user

10 years ago

I tried putting a site under httpd.www to check if the dot in the root folder name causes an issue but I have no problems - looks like some hosting misconfiguration but not sure what to suggest

10 years ago

I'm lucky. Found an older backup of the page and updated it in the correct way and no errors occured. So the error is a result of updating the plugins before updating the core of grav...

10 years ago

Indeed. You should always do a selfupgrade before update.

10 years ago

the update happend in the admin plugin not in cli. ;) But yes now I learned it the hardway. Somekind of warning or an automatic abort would be nice.

10 years ago

Ah ok thank you. ( PR is some kind of ticket in github ?&quest;?) ;)

10 years ago

Oh. A pull request, yes. I'll update the update command to warn you if a new version of Grav is available. We'll see if the dev team thinks it's helpful.

10 years ago

I think it is. I repaired the page for a client. He isn't that type of computer geek. So he accidently destroyed the hole page. XD But I think it could happend to anyone.

10 years ago

It only applies to the CLI, though. I have no idea how the Admin plugin handles this.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1350 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4061 9 years ago
Archive · by Muut Archive, 9 years ago
1 2948 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago