Title: Fatal error on activate
Last modified: August 21, 2016

---

# Fatal error on activate

 *  Resolved [brucerfay](https://wordpress.org/support/users/brucerfay/)
 * (@brucerfay)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-on-activate/)
 * Ver 5.2.0 downloaded and installed but when I activated it I got a fatal error
   unexpected T_STRING on line 162 in wppa.php The previous version was working 
   fine.
 * [http://wordpress.org/plugins/wp-photo-album-plus/](http://wordpress.org/plugins/wp-photo-album-plus/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [paviland](https://wordpress.org/support/users/paviland/)
 * (@paviland)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-on-activate/#post-4364567)
 * Me too:
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-on-activate/#post-4364572)
 * What is the server’s platform?
 * You can go back to 5.1.18, download [http://downloads.wordpress.org/plugin/wp-photo-album-plus.5.1.18.zip](http://downloads.wordpress.org/plugin/wp-photo-album-plus.5.1.18.zip)
   and install manually. ( unzip and ftp )
 * What is your php version? Must be >= 5.3
 * If your php rev < 5.3 and you do not need CDN service, edit wppa.php and remove:
 *     ```
       /* Load cloudinary if configured */
       add_action('init', 'wppa_load_cloudinary');
       function wppa_load_cloudinary() {
       	if ( get_option('wppa_cdn_service', 'nil') != 'cloudinary' ) return;
   
       	require_once 'cloudinary/src/Cloudinary.php';
       	require_once 'cloudinary/src/Uploader.php';
       	require_once 'cloudinary/src/Api.php';
   
       	\Cloudinary::config(array(
       		"cloud_name" 	=> get_option('wppa_cdn_cloud_name'),
       		"api_key" 		=> get_option('wppa_cdn_api_key'),
       		"api_secret" 	=> get_option('wppa_cdn_api_secret')
       	));
   
       	global $wppa_cloudinary_api;
       	$wppa_cloudinary_api = new \Cloudinary\Api();
       }
       ```
   
 * It is at the end of the file
 *  [paviland](https://wordpress.org/support/users/paviland/)
 * (@paviland)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-on-activate/#post-4364602)
 * Is LAMP
    MySQL 5.1.72 PHP 5.2.17
 * Have tried removing the code above from wppa.php but still cannot activate
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-on-activate/#post-4364625)
 * You can now safely update to 5.2.1, it checks the php version and does not load
   the offending code if php < 5.3.
 *  [paviland](https://wordpress.org/support/users/paviland/)
 * (@paviland)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-on-activate/#post-4364628)
 * Many thanks for dealing with this so promptly opajaap. v5.2.1 fixed the problem
 *  [Bzerka](https://wordpress.org/support/users/bzerka/)
 * (@bzerka)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-on-activate/#post-4364638)
 * After the shock of seeing my site down, I’m scared of doing it now.. 🙂
 * Ty Opajaap
 *  [Bzerka](https://wordpress.org/support/users/bzerka/)
 * (@bzerka)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-on-activate/#post-4364641)
 * Yep.. Updates fine now. TY!
 *  Thread Starter [brucerfay](https://wordpress.org/support/users/brucerfay/)
 * (@brucerfay)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-on-activate/#post-4364649)
 * WPPA+ 5.2.1 installed and activated without an error but when I go to Photo Albums
   | Settings this is what I get:
 * Parse error: syntax error, unexpected T_STRING in /home/content/…../wp-content/
   plugins/wp-photo-album-plus/wppa-settings-autosave.php on line 342
 * I do not know what versions of LAMP my web-hosting server is running, but I am
   running WordPress 3.7.1 without any problems.
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-on-activate/#post-4364707)
 * > Parse error: syntax error, unexpected T_STRING in /home/content/…../wp-content/
   > plugins/wp-photo-album-plus/wppa-settings-autosave.php on line 342
 * Fixed in 5.2.2
 *  Thread Starter [brucerfay](https://wordpress.org/support/users/brucerfay/)
 * (@brucerfay)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-on-activate/#post-4364712)
 * Thank you!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Fatal error on activate’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-photo-album-plus.svg)
 * [WP Photo Album Plus](https://wordpress.org/plugins/wp-photo-album-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-photo-album-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-photo-album-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-photo-album-plus/reviews/)

 * 10 replies
 * 4 participants
 * Last reply from: [brucerfay](https://wordpress.org/support/users/brucerfay/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-on-activate/#post-4364712)
 * Status: resolved