simply-static-deploy icon indicating copy to clipboard operation
simply-static-deploy copied to clipboard

Error on activation

Open ghost opened this issue 4 years ago • 6 comments

I've installed as per instructions (from the root of my install), the plugin installs to the correct directory, but when trying to activate I get the following error.

( ! ) Fatal error: Uncaught Error: Class 'Grrr\SimplyStaticDeploy\SimplyStaticDeploy' not found in /app/public/wp-content/plugins/simply-static-deploy/simply-static-deploy.php on line 25 ( ! ) Error: Class 'Grrr\SimplyStaticDeploy\SimplyStaticDeploy' not found in /app/public/wp-content/plugins/simply-static-deploy/simply-static-deploy.php on line 25 Call Stack

Time Memory Function Location

1 0.0001 402440 {main}( ) .../plugins.php:0 2 0.1455 7230584 plugin_sandbox_scrape( ) .../plugins.php:177 3 0.1455 7230936 include( '/app/public/wp-content/plugins/simply-static-deploy/simply-static-deploy.php' ) .../plugin.php:2255

ghost avatar Apr 16 '20 16:04 ghost

@l-fuller it seems you haven't included the Composer autoloader in your project. I've updated the readme with a small note about this in the installation section.

~~It's not merged to master yet, but can be seen here~~

Update: it's now the last part of the installation section: https://github.com/grrr-amsterdam/simply-static-deploy#installation

Let me know if this resolves your problem 👍

schoenkaft avatar Apr 23 '20 08:04 schoenkaft

I'm also having this issue as many others and it's still present. Can't activate the plugin no matter what, did everything by the book, installed it again, autoload is in wp-config, simply static plugin installed. Everything is fine. except it wont work :(

artipixel avatar Jun 29 '20 08:06 artipixel

OK. I was able to make it work. It seems like it's a permission/owner issue. Here is what I've done for it to work:

  • Removed everything related to the plugin, including composer files and vendor directory.
  • sudo chown -R $(whoami) .
  • run composer not as sudo.
  • it will now create the plugin files as the right owner and will be able to require it.

artipixel avatar Jun 29 '20 10:06 artipixel

@artipixel Thanks a lot! When I have some time I will try to make changes so you won't have to do these steps.

HammenWS avatar Jun 29 '20 10:06 HammenWS

Hi,

I am also running in to this issue, can you provide some guidance on the required permissions?

It appears that for me, your include files are not loading...the autoload.php is running.

Also my project did not have composer used, however I did create the composer.json in the root (where wp-config.php lives) and included only your extra info and the plugin installed where it should and the vendor folder exists as expected.

Really looking forward to getting this to run, for the life of me I cannot find the issue....

@jason-lavigne-healthsaas, this worked for me: https://github.com/grrr-amsterdam/simply-static-deploy/issues/33#issuecomment-635293858

elreydetoda avatar Mar 19 '21 15:03 elreydetoda