Title: Causes PHP Error
Last modified: August 22, 2016

---

# Causes PHP Error

 *  Resolved [P3Hamburg](https://wordpress.org/support/users/p3hamburg/)
 * (@p3hamburg)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/causes-php-error-1/)
 * Hey!
    I installed the Plugin and it seems to be very, very great!
 * It works so far but also causes a PHP Error. This is, what my error-log says:
   “
   PHP Warning: Invalid argument supplied for foreach() in /mnt/webs/c2/02/54366102/
   htdocs/wp-content/plugins/wp247-body-classes/wp247-settings-api/wp247-settings-
   api.php on line 631”
 * Maybe you can fix and update the Plugin. I had no issues with this plugin yet,
   so it doesn’t hurry.
 * Thanks for that great plugin!
 * [https://wordpress.org/plugins/wp247-body-classes/](https://wordpress.org/plugins/wp247-body-classes/)

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/causes-php-error-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/causes-php-error-1/page/2/?output_format=md)

 *  Plugin Author [wescleveland](https://wordpress.org/support/users/wescleveland/)
 * (@wescleveland)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896428)
 * Thanks for letting me know. I will look into it this evening.
 *  Thread Starter [P3Hamburg](https://wordpress.org/support/users/p3hamburg/)
 * (@p3hamburg)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896446)
 * Oh, and I don’t know if I just didn’t see it or if it isn’t part of this plugin…
   It would be great if there was a environment-class like is-tablet/is-not-tablet
   next to is-mobile so you can make different settings for several resolutions.
   🙂
 * My PHP-skills are just too low to add a custom class :/
 *  Plugin Author [wescleveland](https://wordpress.org/support/users/wescleveland/)
 * (@wescleveland)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896452)
 * PHP Error has been corrected in the new version 1.0.1. As for is-tablet/is-not-
   tablet, I am not aware of any WordPress functions that indicate that level of
   granularity on the device. Would be nice if we could determine is-phone/is-not-
   phone too.
 *  Thread Starter [P3Hamburg](https://wordpress.org/support/users/p3hamburg/)
 * (@p3hamburg)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896468)
 * Maybe I found another bug (or I didn’t understand it’s description right):
 * It’s about .is-front-page:
    The front page of my website is a static page (page-
   id-553) and I selected both options (.is-front-page/.is-not-front-page) in the
   backend. I saved my changes but none of those options became part of <body>.
 * [http://test.phoenixrevolt.de/](http://test.phoenixrevolt.de/)
 *  Plugin Author [wescleveland](https://wordpress.org/support/users/wescleveland/)
 * (@wescleveland)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896476)
 * Thanks for letting me know. The issue should be fixed in version 1.0.3. You will
   need to re-check is-front-page and is-not-front-page and then save the changes
   before the fix will take place.
 *  Thread Starter [P3Hamburg](https://wordpress.org/support/users/p3hamburg/)
 * (@p3hamburg)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896545)
 * Aaaand another bug. 😛
 * At my WooCommerce-Site the body-class-plugin disables almost every link in the
   backend. I can’t open widgets anymore and every submenu for e. g. of “Design”
   or “Users” is hidden. I don’t know, if it is because of the combination with 
   using WooCommerce, but at my other “normal” websites I don’t have this issue.
 * But I don’t get any PHP-Error-Message.
 *  Plugin Author [wescleveland](https://wordpress.org/support/users/wescleveland/)
 * (@wescleveland)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896546)
 * Curious. Can you provide a list of all plugins that are active on the WooCommerce
   site?
 *  Plugin Author [wescleveland](https://wordpress.org/support/users/wescleveland/)
 * (@wescleveland)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896547)
 * Also, what version of WP247 Body Classes are you using?
 *  Thread Starter [P3Hamburg](https://wordpress.org/support/users/p3hamburg/)
 * (@p3hamburg)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896548)
 * I’m using version 1.1 on 4 subdomains (multisite). All subdomains are working
   with the same activated plugins. The only difference is WooCommerce on one of
   these subdomains. So I deactivated every plugin and everything worked fine. While
   it works on the other three subdomains at any time, the problem is caused as 
   soon as I activate WP247 Body Classes and WooCommerce (version 2.3.7.) at the
   same time at my fourth subdomain (shop).
 * This is the list of my activated plugins:
 * All Around Slider
    bbPress BM Custom Login Booking Calendar Force Download Shortcode
   Gallery Bank Pro Edition Google Doc Embedder Newsletter Page in Widget Sidebar
   Login Widget TablePress WooCommerce Woocommerce Poor Guys Swiss Knife WP247 Body
   Classes wp scroll posts YOP Poll
 *  Plugin Author [wescleveland](https://wordpress.org/support/users/wescleveland/)
 * (@wescleveland)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896549)
 * Can you send a screenshot of the failing page? Also not sure how to send private
   messages, but I think would help to see the generated page source for the failing
   page. Would not expect to see that here.
 *  Thread Starter [P3Hamburg](https://wordpress.org/support/users/p3hamburg/)
 * (@p3hamburg)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896550)
 * I can send you a screenshot, of course. But I think, it won’t help. Everything
   looks normal, the layout is okay, in the frontend and in the backend. The backend
   just doesn’t respond to any action.
 * – When I go onto a widget in the backend (mouse -> hover) the mouse-icon changes–
   it’s a link, of course. but when I click onto this widget, nothing happend. I
   also can’t drag & drop a widget.
    – When I go onto a menu item on the dashboard(
   hover), the submenu doesn’t show up. – When I click onto a menu item on the dashboard,
   the submenu-items show up for a short time, until the new site (because I clicked
   a link) loaded.
 * First it just didn’t work on Chrome but it did on Firefox, after a week or so
   it also didn’t work on Firefoy anymore – it’s strange.
 * This is the website: shop.phoenixrevolt.de. But the problem is only caused in
   the backend, everything in the frontend works fine.
 *  Plugin Author [wescleveland](https://wordpress.org/support/users/wescleveland/)
 * (@wescleveland)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896551)
 * Ok. so everything LOOKS fine but links aren’t working properly? I can think of
   a couple of possibilities:
    1. There could be a javascript conflict. Could you possibly email the source (right-
       click then view source) for the failing page to **support at wp247 dot net**?
    2. Is it possible that you have added custom CSS based on WP247 Body Classes that
       might be affecting the links in the backend?
 *  Plugin Author [wescleveland](https://wordpress.org/support/users/wescleveland/)
 * (@wescleveland)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896552)
 * Something else to check. Does it fail if none of the WP247 Body Classes are selected–
   i.e. if no Body Classes are added to the `<body>` tag?
 *  Thread Starter [P3Hamburg](https://wordpress.org/support/users/p3hamburg/)
 * (@p3hamburg)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896556)
 * I just sent a mail. 🙂
 *  Plugin Author [wescleveland](https://wordpress.org/support/users/wescleveland/)
 * (@wescleveland)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/causes-php-error-1/#post-5896558)
 * Ok. I got your email. For some reason, Outlook didn’t pull it from the server.
   Will investigate that later. Checking into what you sent now. Thanks for the 
   info.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/causes-php-error-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/causes-php-error-1/page/2/?output_format=md)

The topic ‘Causes PHP Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp247-body-classes.svg)
 * [WP247 Body Classes](https://wordpress.org/plugins/wp247-body-classes/)
 * [Support Threads](https://wordpress.org/support/plugin/wp247-body-classes/)
 * [Active Topics](https://wordpress.org/support/plugin/wp247-body-classes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp247-body-classes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp247-body-classes/reviews/)

 * 17 replies
 * 2 participants
 * Last reply from: [P3Hamburg](https://wordpress.org/support/users/p3hamburg/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/causes-php-error-1/page/2/#post-5896561)
 * Status: resolved