Title: Up2Date &#038; Plugin errors.
Last modified: August 18, 2016

---

# Up2Date & Plugin errors.

 *  [alex2004](https://wordpress.org/support/users/alex2004/)
 * (@alex2004)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/up2date-038-plugin-errors/)
 * Hello there, totally new to WP, loving it, but…. after installing the up2date.
   php plugin everything went bonkers :
    – errors abound on the manage plugin page(
   foreach…)
 * Site is ok so far, but all plugins cannot be activated anymore, always get ‘wrong
   datatype for….” in /admin/plugins.php
 * Is this something in the db to change ? Is the file changed ? Yesterday everything
   worked fine, just installing that 1 plugin eveything went strange !!!
 * Any ideas out there what to do ?
 * Thanks,
    A
 * PS – I did search, found similar questions, but all related to 1.2 or upgrading
   to 1.5 – this is a new install, all I did was add a plugin.

Viewing 1 replies (of 1 total)

 *  Thread Starter [alex2004](https://wordpress.org/support/users/alex2004/)
 * (@alex2004)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/up2date-038-plugin-errors/#post-152099)
 * Okayyyyy, so I, myself and I found the solution, it’s probably a kludge, but 
   it works. I’ll document it here in case someone else has the same problem.
 * **Description of problem : **
    You cannot Activate or DeActivate plugins. You
   cannot logout of your admin site. Your blog site itself looks fine, but on your
   admin page you get heaps of errors.
 * **Should you follow the below procedure, you do so at your OWN RISK ! Do me a
   favor and backup your database and php files beforehand.**
 * Sooo, you installed a plugin, did something wrong and now are getting ‘wrong 
   datatype’ value errors. In my case I was getting errors from following files :
   –
   wp_settings.php line 113 – plugins.php line 32 and a whole heap of other errors
   that were related to those first few errors.
 * I fixed the errors by adding in the line 113 of wp_settings.php :
    `foreach (
   $check_plugins as $check_plugin) {` and I changed that to `foreach ((array)$check_plugins
   as $check_plugin) {`
 * Then, when you go back to the admin page and choose plugins, you get another 
   error for plugins_php in line 9. Add the (array) there as well :
 * `if (!in_array($_GET["plugin"], (array)$current)) {`
 * I also went (via phpmyadmin) for a look into the database. There I went to the
   wp_options table, and looked for the value ‘active_plugins’ – in my option value
   it stated Array.
    Erase that – it looks like that is just a placeholder name,
   just empty the field and save. It seems to really be there to keep the activated
   plugins in there.
 * After I did this, everything worked again : I could once more Activate and DeActivate
   my plugins, and in my db I could see that the active_plugins field now contained
   my activated plugins.
 * -end-

Viewing 1 replies (of 1 total)

The topic ‘Up2Date & Plugin errors.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [alex2004](https://wordpress.org/support/users/alex2004/)
 * Last activity: [21 years, 3 months ago](https://wordpress.org/support/topic/up2date-038-plugin-errors/#post-152099)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
