Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
super_nic0las
tagDiv Member

Hi @bogdan-b,
Thanks for the suggestion,
Just downgraded to PHP 7.0.17-2+deb.sury.org~trusty+1
and the problem still occurs.

Best.

super_nic0las
tagDiv Member

@Catalin, Exactly, we are runing wordpress under PHP version 7.1.1-1+deb.sury.org~trusty+1
Also, we are running it with Bedrock boilerplate https://roots.io/bedrock/


@MaNunes
, thanks for the advice however we prefer to not take any risk by loading some demo settings that might brake a lot of customisation work that have already been done.

Note that another dirty way is to “hide” the error by turning off the error level in wordpress wp-settings :

define('WP_DEBUG', false);

Thanks all!
Nicolas

super_nic0las
tagDiv Member

@Tagdiv team, how about this fix ?


--- a/includes/wp_booster/td_wp_booster_functions.php
+++ b/includes/wp_booster/td_wp_booster_functions.php
@@ -2208,7 +2208,7 @@ function td_init_booster() {
$currentSidebars = td_util::get_option('sidebars');

//if we have user made sidebars, register them in wp
- if (!empty($currentSidebars)) {
+ if (is_array($currentSidebars)) {
foreach ($currentSidebars as $sidebar) {
register_sidebar(array(
'name' => $sidebar,

super_nic0las
tagDiv Member

And lot of people have the same problem as per google search results :
https://www.google.com/search?q=foreach()+in+%22td_wp_booster_functions.php%22+on+line+2212&*

super_nic0las
tagDiv Member

OK, I am using bedrock boilerplate https://roots.io/bedrock

and here are the plugin list :

+--------------------+----------+--------+---------+
| name | status | update | version |
+--------------------+----------+--------+---------+
| worker | inactive | none | 4.2.16 |
| revslider | active | none | 5.3.1.5 |
| td-mobile-plugin | active | none | 1.1 |
| td-social-counter | active | none | 4.1 |
| td-speed-booster | active | none | 4.5 |
| td-api-plugin | active | none | 1.0 |
| js_composer | active | none | 5.0.1 |
| wp-super-cache | active | none | 1.4.9 |
| bedrock-autoloader | must-use | none | 1.0.0 |
| disallow-indexing | must-use | none | 1.0.0 |
| 0-worker | must-use | none | |
+--------------------+----------+--------+---------+

Disabling all the plugins did not help.

And this error did show up only after playing with sidebar / widget.

super_nic0las
tagDiv Member

I tried again today and problem was solved on your side.
thanks

Viewing 6 posts - 1 through 6 (of 6 total)