Title: [Plugin: Allow PHP in Posts and Pages] Plugin broke
Last modified: August 20, 2016

---

# [Plugin: Allow PHP in Posts and Pages] Plugin broke

 *  [Jrubzjeknf](https://wordpress.org/support/users/jrubzjeknf/)
 * (@jrubzjeknf)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-allow-php-in-posts-and-pages-plugin-broke/)
 * Hi Hit Reach,
 * I noticed that with the update, this plugin stopped working on my website. It
   has lost the code snipplets I had before updating to the latest version, though
   I can see they still exist in the SQL database. It is also not possible to add
   a new snipplet; anything I try to add is greeting with the “Oh dear, could not
   add the code snippet” message. Do you have an idea of how this can be solved?
 * With kind regards,
 * Jrubzjeknf
 * [http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/](http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/)

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

 *  Thread Starter [Jrubzjeknf](https://wordpress.org/support/users/jrubzjeknf/)
 * (@jrubzjeknf)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-allow-php-in-posts-and-pages-plugin-broke/#post-3006235)
 * I found the crulpit: you renamed your database suffix ‘allowPHP_functions’ to‘
   allowphp_functions’ in your new version. This caused the plugin to be unable 
   to find the table. I managed to fix the problem on my end by accessing phpMyAdmin
   and running the following SQL query: `RENAME TABLE wp_allowPHP_functions TO wp_allowphp_functions`.
 *  [houfton](https://wordpress.org/support/users/houfton/)
 * (@houfton)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-allow-php-in-posts-and-pages-plugin-broke/#post-3006376)
 * For some reason on my system the table does not get renamed with the PHP lower
   case on upgrade or if I try a direct SQL query like the one above. Even `ALTER
   TABLE wp_allowPHP_functions RENAME TO wp_allowphp_functions` does not work. There
   are no errors, just no change!
 * I altered the table name directly (I generally use the Sequel Pro app for Mac
   rather than phpMyAdmin for messing around with the database).
 * Strangely the plugin version 3.0.2 does not seem to care whether the table is
   upper or lower case on my test site at least.
 *  [presdec](https://wordpress.org/support/users/presdec/)
 * (@presdec)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-allow-php-in-posts-and-pages-plugin-broke/#post-3006393)
 * If like me you don’t have access to your Sql database, just re-download the plugin,
   unzip it. Open file allowphp.php and edit line 27 to read :
 * `static $database_prefix = "allowPHP_functions";`
 * delete the old, replace with the edited and refresh ur page 😛 BINGO!

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

The topic ‘[Plugin: Allow PHP in Posts and Pages] Plugin broke’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/allow-php-in-posts-and-pages_edefed.
   svg)
 * [Allow PHP in Posts and Pages](https://wordpress.org/plugins/allow-php-in-posts-and-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/allow-php-in-posts-and-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [presdec](https://wordpress.org/support/users/presdec/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-allow-php-in-posts-and-pages-plugin-broke/#post-3006393)
 * Status: not resolved