Plugin could not be activated or may break site
-
This plugin as downloaded here will probably not activate for you. If you previously have successfully activated it and subsequently update your webhosting php version to 5.4+, you’ll find yourself saddled with the dreaded WordPress “white screen of death”.
Should you find yourself with the “white screen” problem, go into your plugins folder and remove the Cool Author Box plugin via ftp. That should get you back to functioning.
As had been referenced in the Topics here before by usmile0926, there’s a correction to the code that needs to be made for the plugin to activate without complaint. With the usage of php 5.4, I’ve found another change that’s needed. You need to move that one apostrophe and also add another in the coding around line 85 of cool-author-box.php.
Here’s the original code…
<div class="profileJob"> View all posts by <a href="'.get_author_posts_url( $authorID ).'" title="View all posts by '.get_the_author().'">'.get_the_author().'</a><br /> <a href="'.get_the_author_meta('user_url').'" title="'.get_the_author_meta('first_name').'s website">'.get_the_author_meta('first_name').\'s website</a> </div> </div> </div> ';
Here’s the modified code…
<div class="profileJob"> View all posts by <a href="'.get_author_posts_url( $authorID ).'" title="View all posts by '.get_the_author().'">'.get_the_author().'</a><br /> <a href="'.get_the_author_meta('user_url').'" title="'.get_the_author_meta('first_name').'s website">'.get_the_author_meta('first_name').'\'s website</a> </div> </div> </div>' ;
Make those changes and I think you should be good to install, activate and use this plugin.
- The topic ‘Plugin could not be activated or may break site’ is closed to new replies.