Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Disable Plugin Fails with "Unexpected Error"

first-time plugin

Started by themetman 9 hours ago · 2 replies · 29 views
9 hours ago

I am running a new Grav site on a hosted server with PHP 8.5.13 on Alma Linux

The Site Report and Grav Guard report no problems.

When I try and disable GitSync I get an "Unexpected Error" (IT reports the same on many other plugins.
The Log reports this:

API unhandled exception: Call to undefined function Grav\Plugin\GitSync\exec() {"file":"/home/themetman/apps/fyngravp/user/plugins/git-sync/classes/Helper.php","line":62,

and then a large output.
I am wondering if it is an odd permissions problem. I used rsync to copy the site from my local machine running Fedora 44 with SELinux enabled.
What else can it be, and how can I troubleshoot this further?

6 hours ago

That error usually means the host has exec() disabled. GitSync calls exec() to run git commands, and on a lot of shared hosts that function is blocked in php.ini under disable_functions, so PHP reports it as undefined. I would check your phpinfo or ask the host whether exec is allowed. It is probably not a permissions problem from the rsync copy, since the same error shows up for other plugins too, which points to the function itself being missing on this server.

2 hours ago

Many thanks, @lazarbukejlovic330 for taking time to reply.

What you say makes sense.
I am going to do a fresh minimal install and go for there.
Regards

Suggested topics

Topic Participants Replies Views Activity
General · by Hanns Mattes, 7 days ago
0 114 7 days ago
General · by Karmalakas, 1 week ago
2 180 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 229 3 weeks ago
General · by Dima, 4 weeks ago
1 207 4 weeks ago
General · by pamtbaau, 4 weeks ago
0 330 4 weeks ago