Title: PHP debug Notice and Warning in dynwid_worker.php
Last modified: August 22, 2016

---

# PHP debug Notice and Warning in dynwid_worker.php

 *  Resolved [Chuck Reynolds](https://wordpress.org/support/users/ryno267/)
 * (@ryno267)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-debug-notice-and-warning-in-dynwid_workerphp/)
 * debug=true these show on front-end of the site.
 *     ```
       Notice: unserialize(): Error at offset 58 of 64 bytes in /wp-content/plugins/dynamic-widgets/dynwid_worker.php on line 186
   
       Warning: Invalid argument supplied for foreach() in /wp-content/plugins/dynamic-widgets/dynwid_worker.php on line 188
       ```
   
 * Also running the “Log Deprecated Notices” plugin by [@nacin](https://wordpress.org/support/users/nacin/)–
   this shows up.
 *     ```
       Function: current_theme_info()
       Used in wp-content/plugins/dynamic-widgets/classes/dynwid_class.php on line 257.
       ```
   
 *     ```
       Use wp_get_theme() instead.
       Deprecated in version 3.4.
       ```
   
 * [https://wordpress.org/plugins/dynamic-widgets/](https://wordpress.org/plugins/dynamic-widgets/)

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

 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-debug-notice-and-warning-in-dynwid_workerphp/#post-5644146)
 * The first notice: Something is wrong with your widget config where you’re using
   the URL filter.
 * The documentation for wp_get_theme() doesn’t mention it’s deprecated.
    [http://codex.wordpress.org/Function_Reference/wp_get_theme](http://codex.wordpress.org/Function_Reference/wp_get_theme)
 *  Thread Starter [Chuck Reynolds](https://wordpress.org/support/users/ryno267/)
 * (@ryno267)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-debug-notice-and-warning-in-dynwid_workerphp/#post-5644148)
 * It’s saying use wp_get_theme instead of current_theme_info. I haven’t looked 
   at the code but i’m assuming that’s what it meant.
    [https://developer.wordpress.org/reference/functions/current_theme_info/](https://developer.wordpress.org/reference/functions/current_theme_info/)
 * As for the config… I’ll look into it. They have a LOOOT of stuff in there so…
   not sure where to start. Do you have any idea or suggestion as to what it may
   be… something in one of the text widgets conflicting? …uh.. I know that’s a tough
   question to answer but I guess I’m looking to see if you’ve seen anything cause
   that issue before and what common things you think would cause it to give me 
   an idea of where to start.
 * Thx
 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-debug-notice-and-warning-in-dynwid_workerphp/#post-5644215)
 * It’s the URL module, that will probably shrink the selection down. Looking at
   notice, it seems the data within the configuration is corrupt or so. Not sure
   how that can happen actually.
 * Hmm… you might be right about the WP function. I know the WordPress Codez is 
   sometimes lacking that kind of information. I always check on that kind of notices
   before I release a new version. I might have missed it the last time.
 *  Thread Starter [Chuck Reynolds](https://wordpress.org/support/users/ryno267/)
 * (@ryno267)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-debug-notice-and-warning-in-dynwid_workerphp/#post-5644240)
 * Hah no worries man – it happens. I do appreciate you taking the time to read 
   and respond however.
 * I’ve run FG Fix Serialized Strings and nothing was ‘fixed’. Still trying to track
   this down. There was a domain migration recently so I assume it was something
   with urls in widgets… which I assume would be fixed upon saving the widget again?
   but doesn’t seem to have any effect. Thoughts?
 *  Thread Starter [Chuck Reynolds](https://wordpress.org/support/users/ryno267/)
 * (@ryno267)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-debug-notice-and-warning-in-dynwid_workerphp/#post-5644241)
 * ok tracked down in the URL expander of one of the text widgets I have this:
 *     ```
       <br />
       <b>Warning</b>:  implode(): Invalid arguments passed in <b>/wordpress/wp-content/plugins/dynamic-widgets/mods/url_module.php</b> on line <b>53</b><br />
       ```
   
 * Turned the URL field to no… saved… seems to have worked. But I’m new to this 
   plugin (inherited a site using it) so not familiar with the features.
 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-debug-notice-and-warning-in-dynwid_workerphp/#post-5644287)
 * Yeah, I can understand the warning message. That’s where the faulty string at
   your end was unserialised. Probably the (re)saving fixed the issue.
 *  Thread Starter [Chuck Reynolds](https://wordpress.org/support/users/ryno267/)
 * (@ryno267)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/php-debug-notice-and-warning-in-dynwid_workerphp/#post-5644301)
 * seems to have yes. Thx; cheers man. #closing
 *  [AviBadash](https://wordpress.org/support/users/avibadash/)
 * (@avibadash)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-debug-notice-and-warning-in-dynwid_workerphp/#post-5644398)
 * I have the same problem.
    I don’t understand how to fix this issue (I’m not a
   programmer).
 * Please help me!

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

The topic ‘PHP debug Notice and Warning in dynwid_worker.php’ is closed to new replies.

 * ![](https://ps.w.org/dynamic-widgets/assets/icon-256x256.png?rev=2968917)
 * [Dynamic Widgets](https://wordpress.org/plugins/dynamic-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamic-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamic-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamic-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamic-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamic-widgets/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [AviBadash](https://wordpress.org/support/users/avibadash/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/php-debug-notice-and-warning-in-dynwid_workerphp/#post-5644398)
 * Status: resolved