Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin could not be activated because it triggered a fatal error. #702

Closed
n1k3sh opened this issue Nov 6, 2020 · 17 comments
Closed

Plugin could not be activated because it triggered a fatal error. #702

n1k3sh opened this issue Nov 6, 2020 · 17 comments

Comments

@n1k3sh
Copy link

n1k3sh commented Nov 6, 2020

Got this error when trying to activate the plugin

Fatal error: Uncaught Error: Class 'WP2Static\Controller' not found in /home/wp-content/plugins/wp2static-develop/wp2static.php:25 Stack trace: #0 /home/wp-admin/includes/plugin.php(2297): include() #1 /home/wp-admin/plugins.php(191): plugin_sandbox_scrape('wp2static-devel...') #2 {main} thrown in /home/wp-content/plugins/wp2static-develop/wp2static.php on line 25

@n1k3sh
Copy link
Author

n1k3sh commented Nov 6, 2020

Got the same error for 7.1.2 version too

Fatal error: Uncaught Error: Class 'WP2Static\Controller' not found in /home/wp-content/plugins/wp2static-7.1.2/wp2static.php:25 Stack trace: #0 /home/wp-admin/includes/plugin.php(2297): include() #1 /home/wp-admin/plugins.php(191): plugin_sandbox_scrape('wp2static-7.1.2...') #2 {main} thrown in /home/wp-content/plugins/wp2static-7.1.2/wp2static.php on line 25

@diegoteliz
Copy link

Same issue here on 7.1.2

@leonfeng
Copy link

leonfeng commented Nov 8, 2020

Same here. WordPress 5.5.3.

@asarkar1990
Copy link

Any update on this ?

@gui7vaz
Copy link

gui7vaz commented Nov 9, 2020

Same error here.

@asarkar1990
Copy link

Seems like it's not in active development!!

@joffreycarle
Copy link

Hi guys! You must execute composer install inside the plugin's directory.

@northwork
Copy link

@joffreycarle Thank you! Working perfectly now!

@n1k3sh
Copy link
Author

n1k3sh commented Nov 21, 2020

@joffreycarle Thank you! Working perfectly now!

Can you explain a bit in detail , what needs to be done here , am new to all this github stuff . @northwork

@northwork
Copy link

@n1k3sh Hi, I'm new to this too but I will try my best to explain how I did this - there may be easier ways to do it. I'm assuming you're running the wordpress site locally on Mac, if you're not I don't know if this will work.

— First you need to put the plugin folder in the plugins directory, then put 'Composer' inside the plugin folder. You can download this from here > https://getcomposer.org/download/ and there are instructions to install
— Then, open Terminal and run: cd ~/Sites/your-site/wp-content/plugins/wp2static-master/
—Then run: php composer install

Composer should then download all the bits and pieces it needs and the plugin should be able to activate! I hope this helps!

@joffreycarle
Copy link

@n1k3sh: you need to extract the archive content, go to the directory with terminal, have both PHP and Composer installed (a simple brew install php composer might do the trick if you're on Mac OS) and do what @northwork said basically. Once all dependencies are installed, compress the plugin's folder and send it to your WordPress.

@n1k3sh
Copy link
Author

n1k3sh commented Nov 22, 2020

Sorry , i am not using a mac . I am using windows pc and i want to use this plugin on live site which is on a server where i dont have access to terminal . If possible please share the plugin files via email , that would help lot of users here . @northwork @joffreycarle

@heavestudio
Copy link

same as @n1k3sh isn't it possible to get a classic zip installer ? @joffreycarle ?

@joffreycarle
Copy link

Here is the plugin zipped in version 7.1.4-dev with dependencies installed:
wp2static-develop-with-vendor.zip

@heavestudio
Copy link

@joffreycarle thanks a lot,
I really need to learn how to do that by my own

@n1k3sh
Copy link
Author

n1k3sh commented Nov 26, 2020

I found the zip uploaded by leon on his site , he hid it beneath the already donated link .
https://wp2static.com/thanks-for-donating/

You can download the wordpress plugin files directly from here .

@leonstafford
Copy link
Contributor

Thanks all for reporting this issue. I've made some slight improvements to hopefully ease the frustration. As per attached screenshot, it will now give a better error message, with a URL for assistance:

Screen Shot 2020-11-28 at 11 14 41 am

Looks like you're trying to activate WP2Static from source code, without compiling it first. Please see https://wp2static.com/compiling-from-source for assistance.

@n1k3sh, re:

I found the zip uploaded by leon on his site , he hid it beneath the already donated link

I prefer creatively organized the download files 😉

This is where I'm currently at with trying to balance keeping the plugin completely free yet still try to encourage donations so I can survive. There is some effort required in building, testing and publishing latest releases, so I don't feel bad asking for some $ for providing the convenience of quick downloads for people.

It does still feel a bit misleading, as (like you've shown) it's trivial to just click-through to the downloadable files.

Unfortunately, when I provided direct download links immediately, without any kind of donation inspiring mini funnel, I didn't get any donations at all. Current setup is an improvement with some donations actually coming in, but not yet enough to support me. If you know of projects which have found ideal solutions to this, I'm always open to adjust things.

This improved messaging will be available from next published release.

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

No branches or pull requests

9 participants