Title: Piemol's Replies | WordPress.org

---

# Piemol

  [  ](https://wordpress.org/support/users/piemol/)

 *   [Profile](https://wordpress.org/support/users/piemol/)
 *   [Topics Started](https://wordpress.org/support/users/piemol/topics/)
 *   [Replies Created](https://wordpress.org/support/users/piemol/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/piemol/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/piemol/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/piemol/engagements/)
 *   [Favorites](https://wordpress.org/support/users/piemol/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Custom Widget area] Update destroyed my Page!](https://wordpress.org/support/topic/update-destroyed-my-page/)
 *  [Piemol](https://wordpress.org/support/users/piemol/)
 * (@piemol)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/update-destroyed-my-page/#post-8860542)
 * 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 9 years, 3 months ago by [Piemol](https://wordpress.org/support/users/piemol/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Slideshow] Option for Vertical](https://wordpress.org/support/topic/option-for-vertical/)
 *  Thread Starter [Piemol](https://wordpress.org/support/users/piemol/)
 * (@piemol)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/option-for-vertical/#post-4136359)
 * Hey Stefan,
 * Thanks for your response.
 * I thought ‘presenting the option’ just could be a radio or select button?
    ‘horizontal’
   or ‘vertical’. With a question: “how must the slides within a slide be positioned?”
   or “how must the slideshow be displayed?” or something like that.
 * And by the maximum width and height of the slideshow a bit more explaination:
   “
   Maximum width. When maximum width is 0 and slideshow is displayed horizontal,
   maximum width is ignored” “Maximum height. When maximum height is 0 and slideshow
   is displayed vertical, maximum width is ignored”
 * Sorry if I’m wrong, I don’t know anything at all off writing plugins or developing
   for WordPress (yet)!
 * I will keep an eye out for new versions of this plugin !

Viewing 2 replies - 1 through 2 (of 2 total)