Activating Plugin Causes Website To Crash
-
Hello Adrian2k7
I installed your plugin, but when I clicked “activate plugin” my website crashed. I got the white screen of death on all URLs.
So I FTP’d into my web-server and renamed the plugin folder and bingo my website was back up and running.
BTW I am using WordPress 4.1
Any ideas?
Cheers
https://wordpress.org/plugins/before-after-image-slider-lite/
-
Hello LordLiverpool,
Sorry to hear that, never heard of such a problem before.
Do you have any error logging or can enable it?Btw. sorry for the late reply. I’m quite new to wordpress.org and wasn’t aware, that I don’t automatically get a notification, when someone writes her.
Hi Adrian2k7
Thanks for replying, its appreciated
OK I checked the domain error log on my VPS.
Here is the error message from Feb 3rd when I first tried to install your plugin:
[Tue Feb 03 15:54:00 2015] [error] [client 31.200.161.3] PHP Fatal error: Cannot redeclare tgmpa_load_bulk_installer() (previously declared in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/plugins/before-after-image-slider-lite/modules/class-tgm-plugin-activation.php:1705) in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/themes/toranj/framework/plugin-register/class-tgm-plugin-activation.php on line 2204, referer: http://< my domain name goes here >/wp-admin/update.php?action=install-plugin&plugin=before-after-image-slider-lite&_wpnonce=3a4492a7cc [Tue Feb 03 15:55:21 2015] [error] [client 31.200.161.3] PHP Fatal error: Cannot redeclare tgmpa_load_bulk_installer() (previously declared in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/plugins/before-after-image-slider-lite/modules/class-tgm-plugin-activation.php:1705) in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/themes/toranj/framework/plugin-register/class-tgm-plugin-activation.php on line 2204, referer: http://< my domain name goes here >/wp-admin/update.php?action=install-plugin&plugin=before-after-image-slider-lite&_wpnonce=3a4492a7cc [Tue Feb 03 15:55:31 2015] [error] [client 31.200.161.3] PHP Fatal error: Cannot redeclare tgmpa_load_bulk_installer() (previously declared in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/plugins/before-after-image-slider-lite/modules/class-tgm-plugin-activation.php:1705) in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/themes/toranj/framework/plugin-register/class-tgm-plugin-activation.php on line 2204, referer: http://< my domain name goes here >/wp-admin/update.php?action=install-plugin&plugin=before-after-image-slider-lite&_wpnonce=3a4492a7cc [Tue Feb 03 15:55:38 2015] [error] [client 31.200.161.3] PHP Fatal error: Cannot redeclare tgmpa_load_bulk_installer() (previously declared in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/plugins/before-after-image-slider-lite/modules/class-tgm-plugin-activation.php:1705) in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/themes/toranj/framework/plugin-register/class-tgm-plugin-activation.php on line 2204, referer: http://< my domain name goes here >/wp-admin/update.php?action=install-plugin&plugin=before-after-image-slider-lite&_wpnonce=3a4492a7cc [Tue Feb 03 16:13:11 2015] [error] [client 31.200.161.3] PHP Warning: strpos(): Offset not contained in string in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/plugins/before-after/before-after.php on line 339, referer: http://< my domain name goes here >/wp-admin/post.php?post=2449&action=edit&message=6 [Tue Feb 03 16:13:11 2015] [error] [client 31.200.161.3] PHP Warning: strpos(): Offset not contained in string in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/plugins/before-after/before-after.php on line 339, referer: http://< my domain name goes here >/wp-admin/post.php?post=2449&action=edit&message=6And again today, Feb 17th
[Tue Feb 17 10:58:42 2015] [error] [client 31.200.167.34] PHP Fatal error: Cannot redeclare tgmpa_load_bulk_installer() (previously declared in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/plugins/before-after-image-slider-lite/modules/class-tgm-plugin-activation.php:1705) in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/themes/toranj/framework/plugin-register/class-tgm-plugin-activation.php on line 2204, referer: http://< my domain name goes here >/wp-admin/update.php?action=install-plugin&plugin=before-after-image-slider-lite&_wpnonce=e2c18601b5 [Tue Feb 17 10:59:49 2015] [error] [client 192.0.84.33] PHP Fatal error: Cannot redeclare tgmpa_load_bulk_installer() (previously declared in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/plugins/before-after-image-slider-lite/modules/class-tgm-plugin-activation.php:1705) in /var/www/vhosts/< my domain name goes here >/httpdocs/wp-content/themes/toranj/framework/plugin-register/class-tgm-plugin-activation.php on line 2204Thanks very much
Hi,
I just wanted to fix this bug and saw that it might be a problem with the theme you are using (toranj), as the version of TGM I’m using already checks, if it is already available.
I’ve forwared the request to the themes author and hope he will respond to it.
Adrian
Hi Adrian
Thank you for the update.
I appreciate you taking the time to investigate this.
I too will contact the theme developer.
I look forward to being able to use your cool plugin.
Thanks for your help.
Best Regards
😉
Untested, but just delete line 7:
require_once 'class-tgm-plugin-activation.php';from modules/tgm-plugin-activation.php (from my plugin)
and you should be able to use it.
You still may use Vafpress for the Shortcode Generator, but may install it manually from: https://github.com/scrobbleme/vafpress-framework/releases/download/v2.0.1-MOEWE/vafpress-framework-plugin-2.0.1-MOEWE-Edition.zip
Hi Adrian
Thanks for the fast response.
I FTP’d your tgm-plugin-activation.php and commented out line 7 and FTP’d it back to my server.
I was able to successfully activate your plugin without causing my website to crash.
However I have encountered a new problem. I don’t have a shortcode generator button on my toolbar.
The WordPress.org forum doesn’t allow the direct embedding of images into its posts. So I have uploaded two images to the popular image sharing website Photobucket.
This is a screen shot of your own screen shot of what the shortcode generator button will look like:
http://i1091.photobucket.com/albums/i395/LordLiverpool/02beforeandafter-noicon_zpsb6926399.jpg
However after activating your plugin, no button appears on my toolbar, this is a screen shot of my editor/toolbar but its missing the shortcode button:
http://i1091.photobucket.com/albums/i395/LordLiverpool/01beforeandafter-noicon_zps835ca13d.jpg
Is this what you meant by having to install VAPress?
My Toranj theme already comes bundled with the Visual Composer plugin:
Offical link:
http://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431
Would you know if my WordPress installation is able to handle two
framewords installed side by side? i.e. both VAPress and Visual Composer? I am concerned they will clash with one another or slow my site down. Any suggestions? Are my fears simply unfounded?Best Regards
Hi,
No problem.
Yes, to be able to use the Shortcode Generator, you have to install Vafpress.
You don’t need Vafpress, when you are using the Visual Composer, but you need to use Visual Composer instead (use “Backend Editor” or “Frontend Editor”).
Personally I like using the Visual Composer frontend editor, but then mainly use normal text blocks with the default editor (and the shortcode generator).
Btw. just a side note. If you use Visual Composer ones, you are propable bound to it, as it uses a lot of custom shortcodes [for structuring the site]. But it is really good.
Do you mean the Image Compare shortcode? (see screenshot)
http://s1091.photobucket.com/user/LordLiverpool/media/03ImageCompare_zpsbcaf3769.jpg.html
It works on all browsers except Apple’s Safari. (see screenshot)
http://s1091.photobucket.com/user/LordLiverpool/media/04ImageCompare_zps88792a48.jpg.html
Does your plugin work on Safari?
You see this is the reason I installed your Plugin, as I wanted to see if it worked on Safari as a replacement for the Visual Composer – Image Compare plugin.
Thanks very much.
Ah sorry, my fault.
I forgot. Only the pro version has Visual Composer integration 😉 With the lite variant you have to stick with the manual shortcode or shortcode generator.
You can try the demo with Safari. Should be no problem.
I managed to get the manual shortcode working! thanks.
And it worked perfectly in Safari.
Do I need to use two pictures of the same dimensions? i.e. the same height and width as there seems to be no auto-resize occuring?
Thanks for all your help.
Good to here.
Yes, images need to be the same size, or at least of similar sizes.
Auto-resizing is still on my list and I already experimented with this, but didn’t had any satisfying results so far.
Maybe thats something to add to your Pro version.
Thanks for all your help!
Cheers
😉
Just closed this thread.
The topic ‘Activating Plugin Causes Website To Crash’ is closed to new replies.