Causes PHP Error
-
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!
-
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>.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 PollCan 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.
The topic ‘Causes PHP Error’ is closed to new replies.