Title: Virtue widgets error
Last modified: March 15, 2020

---

# Virtue widgets error

 *  [lokz](https://wordpress.org/support/users/lokz/)
 * (@lokz)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/virtue-widgets-error/)
 * Hello,
    I have installation where initially virtue 2.2.0 free was installed. 
   I created virtue-child for it, but later theme got updated to 2.2.3
 * Site was working till I pressed “apperance/widgets” menu”
 * Then I got errors:
    ****** Warning: Invalid argument supplied for foreach() in
   C:\wamp\www\mywebsite\wp-includes\widgets.php on line 1429
 * # Time Memory Function Location
    1 0.0009 207632 {main}( ) …\widgets.php:0 2 
   1.7940 37482880 retrieve_widgets( ) …\widgets.php:123
 * Warning: Invalid argument supplied for foreach() in C:\wamp\www\mywebsite\wp-
   includes\widgets.php on line 1478
    Call Stack # Time Memory Function Location
   1 0.0009 207632 {main}( ) …\widgets.php:0 2 1.7940 37482880 retrieve_widgets()…\
   widgets.php:123 *****
 * Now, I can see that widgets lost their placement from some reason.
    However, 
   If I try to position some of them within widgets area, they are not saved when
   I reload widgets area.
 * Note: Site is offline, this is my local installation.
 * Any help is most welcome.
 * Mysql 5.7.29
    PHP 5.6.40 Apache 2.4.41 Virtue theme 2.2.3 virtue-child theme 
   created for 2.2.0 (theme updated from some reason)

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

 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/virtue-widgets-error/#post-12548931)
 * Hey,
    As I said in your previous thread, you should be using Virtue 3.4.0. Is
   there a reason you’re not updating? Looks like you’re also using a very old PHP
   version. You should be on PHP 7+.
 * Hannah
 *  Thread Starter [lokz](https://wordpress.org/support/users/lokz/)
 * (@lokz)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/virtue-widgets-error/#post-12560245)
 * Yes, there is a reason, there are some plugins that are not compatible with newer
   wordpress version.
 * As I said this is older website, running on PHP 5.
 * Please assist if you can.
 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/virtue-widgets-error/#post-12562019)
 * Sorry, there’s not much we can do in supporting old versions of plugins, PHP,
   themes, etc. Which plugins in particular are you wanting that are not compatible
   with up to date WordPress? Have you tried contacting the plugin developers? Or
   else searching for new, updated plugins with the same functionalities?
 * Hannah
 *  Thread Starter [lokz](https://wordpress.org/support/users/lokz/)
 * (@lokz)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/virtue-widgets-error/#post-12565141)
 * Issue resolved when I installed 2.2.0 version of Virtue theme (old one)

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

The topic ‘Virtue widgets error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/virtue/3.4.15/screenshot.png)
 * Virtue
 * [Support Threads](https://wordpress.org/support/theme/virtue/)
 * [Active Topics](https://wordpress.org/support/theme/virtue/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/virtue/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/virtue/reviews/)

## Tags

 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 4 replies
 * 2 participants
 * Last reply from: [lokz](https://wordpress.org/support/users/lokz/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/virtue-widgets-error/#post-12565141)
 * Status: not resolved