Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Error on activation #29

Open
ghost opened this issue Apr 16, 2020 · 6 comments
Open

Error on activation #29

ghost opened this issue Apr 16, 2020 · 6 comments
Assignees

Comments

@ghost
Copy link

ghost commented Apr 16, 2020

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

@schoenkaft
Copy link
Contributor

schoenkaft commented Apr 23, 2020

@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 schoenkaft self-assigned this Apr 23, 2020
@artipixel
Copy link

artipixel commented Jun 29, 2020

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
Copy link

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.

@HammenWS
Copy link
Member

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

@jason-lavigne-healthsaas

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....

@elreydetoda
Copy link
Contributor

@jason-lavigne-healthsaas, this worked for me: #33 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants