• My whole site is fucked up cause I made an update from your plugin!

    ” supplied for foreach() in /home/freefore/public_html/wp/wp-content/plugins/wp-custom-widget-area/admin/class-wp-custom-widget-area-admin.php on line 302

    Warning: Invalid argument supplied for foreach() in /home/freefore/public_html/wp/wp-content/plugins/wp-custom-widget-area/admin/class-wp-custom-widget-area-admin.php on line 332

    Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home/freefore/public_html/wp/wp-content/plugins/wp-custom-widget-area/admin/class-wp-custom-widget-area-admin.php:302) in /home/freefore/public_html/wp/wp-content/plugins/contact-form-7-lead-info-with-country/wpshore_cf7_lead_tracking.php on line 42″

Viewing 3 replies - 1 through 3 (of 3 total)
  • This happened to one of my sites also. I had to roll back to v2.1.1. You can find it here: https://www.ads-software.com/plugins/wp-custom-widget-area/developers/

    Hope it helps you or if you found a different solution, please post!

    • This reply was modified 8 years, 1 month ago by itcassy.

    Sorry – I meant 1.2.1. However, this only worked for a couple of days and now it is back to the error even on 1.2.1. Support on this would be nice!

    Piemol

    (@piemol)

    Hello I’m running version 1.2.5 and also got this error:

    Warning: Invalid argument supplied for foreach() in /xxxxx/wp-content/plugins/wp-custom-widget-area/admin/class-wp-custom-widget-area-admin.php on line 332

    But I fixed the php warning myself.
    I don’t know the cause of the warning. Why isn’t there an array with data to work with? Is that cause by some update of WordPress itself or is it just normal?
    Maybe the author can verify this.

    I added the following in this file:
    /wp-content/plugins/wp-custom-widget-area/admin/class-wp-custom-widget-area-admin.php

    When trying it yourself, back it up FIRST before continuing ! ! !
    Go to line 332, and add before this line:
    foreach ($cwa_widget_wrappers as $wrapper) {
    The following line:
    if($cwa_widget_wrappers && is_array($cwa_widget_wrappers)){

    Then go to line 358, which should only contain the closing accolade of the foreach:
    }
    And add a new line with another closing accolade:
    }

    Now line 332 starts with:
    if($cwa_widget_wrappers ...
    Line 333 starts with:
    foreach ($cwa_widget_wrappers ...
    And line 358, 359 and 360 all contain just a closing tag.

    Then save the file and refresh your website.

    • This reply was modified 8 years ago by Piemol.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Update destroyed my Page!’ is closed to new replies.