WPIntell

Source evidence

Causes PHP Error

WP247 Body Classes · support · 2015-03-13T17:45:00+00:00

mixedsentiment
mediumseverity
0.85relevance
17replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 19 rows with source links

15.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

16 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
P3Hamburg resolved
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/ Thanks for letting me know. I will look into it this evening. 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 :/ 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. 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/ 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. 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. Curious. Can you provide a list of all plugins that are active on the WooCommerce site? Also, what version of WP247 Body Classes are you using? 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 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. 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. Ok. so everything LOOKS fine but links aren’t working properly? I can think of a couple of possibilities: 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 ? Is it possible that you have added custom CSS based on WP247 Body Classes that might be affecting the links in the backend? 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? I just sent a mail. 🙂 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. At a minimum, it looks like there is a conflict with a local storage variable. I have renamed the variable that I use. Please update to version 1.1.1 and let me know what’s going on. This should resolve the WP247 Body Classes tab issue you are seeing. Not sure what else it will affect. Hey, thanks a lot! Now it works. No tab- or link-issue anymore. 🙂

Comments

17 shown
wescleveland 2015-03-15T12:30:00+00:00

Thanks for letting me know. I will look into it this evening.

P3Hamburg 2015-03-16T10:38:00+00:00

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 :/

wescleveland 2015-03-16T13:03:00+00:00

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.

P3Hamburg 2015-03-17T00:15:00+00:00

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/

wescleveland 2015-03-17T13:09:00+00:00

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.

P3Hamburg 2015-03-31T12:04:00+00:00

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.

wescleveland 2015-03-31T13:42:00+00:00

Curious. Can you provide a list of all plugins that are active on the WooCommerce site?

wescleveland 2015-03-31T13:43:00+00:00

Also, what version of WP247 Body Classes are you using?

P3Hamburg 2015-03-31T14:52:00+00:00

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

wescleveland 2015-03-31T19:17:00+00:00

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.

P3Hamburg 2015-03-31T23:16:00+00:00

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.

wescleveland 2015-03-31T23:45:00+00:00

Ok. so everything LOOKS fine but links aren’t working properly? I can think of a couple of possibilities: 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 ? Is it possible that you have added custom CSS based on WP247 Body Classes that might be affecting the links in the backend?

wescleveland 2015-03-31T23:48:00+00:00

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?

P3Hamburg 2015-04-01T10:59:00+00:00

I just sent a mail. 🙂

wescleveland 2015-04-01T14:30:00+00:00

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.

wescleveland 2015-04-01T16:10:00+00:00

At a minimum, it looks like there is a conflict with a local storage variable. I have renamed the variable that I use. Please update to version 1.1.1 and let me know what’s going on. This should resolve the WP247 Body Classes tab issue you are seeing. Not sure what else it will affect.

P3Hamburg 2015-04-01T16:21:00+00:00

Hey, thanks a lot! Now it works. No tab- or link-issue anymore. 🙂