Title: Returns unknown error when debug is on
Last modified: August 30, 2016

---

# Returns unknown error when debug is on

 *  Resolved [RKS213](https://wordpress.org/support/users/rks213/)
 * (@rks213)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/returns-unknown-error-when-debug-is-on/)
 * With debug enabled, I get several instances of the following error (all the same
   but multiple entries):
 * Notice: iconv(): Unknown error (22) in /Users/james/repos/wp-git/wp-content/plugins/
   rotatingtweets/rotatingtweets.php on line 1402
 * Under this block of errors it is rendering the widget just fine and it appears
   to be working correctly. Upon a hard refresh, it will remove all errors but they
   will reappear the first time after making a change to the widget settings.
 * a) I know the site will not launch with debug enabled but still concerned.
    b)
   This is a locally hosted MAMP if that might make a difference to you. c) This
   is in the most current version of WordPress. d) I don’t know for certain but 
   the Twitter feed the first several tweets have images. I know from other support
   questions you state the widget does not support images. Possibly this is the 
   error returned when it gets a tweet with an image and then ignores it?
 * Any additional details you may need I can provide.
 * Unrelated sidenote: I +1 image support for the widget.
 * [https://wordpress.org/plugins/rotatingtweets/](https://wordpress.org/plugins/rotatingtweets/)

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

 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/returns-unknown-error-when-debug-is-on/#post-6739872)
 * Many thanks for highlighting this.
 * It’s a PHP function that’s failing; this one to be precise: [http://php.net/manual/en/function.iconv.php](http://php.net/manual/en/function.iconv.php)
 * Are you seeing something in the source code of the page along the lines of:
 *     ```
       <!-- iconv to XXXXX failed -->
       ```
   
 *  Thread Starter [RKS213](https://wordpress.org/support/users/rks213/)
 * (@rks213)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/returns-unknown-error-when-debug-is-on/#post-6739881)
 * Yes. Under each of the errors noted above there is that comment.
 * `<!-- iconv to utf8mb4 failed -->`
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/returns-unknown-error-when-debug-is-on/#post-6739920)
 * Does [the development version](https://downloads.wordpress.org/plugin/rotatingtweets.zip)
   solve the problem for you?
 *  Thread Starter [RKS213](https://wordpress.org/support/users/rks213/)
 * (@rks213)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/returns-unknown-error-when-debug-is-on/#post-6740019)
 * Let me try this in my testing site. I will report back.
 * Off topic: By any chance is this the 1.8 version you mentioned in another thread
   regarding supporting images?
 *  Plugin Author [Martin Tod](https://wordpress.org/support/users/mpntod/)
 * (@mpntod)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/returns-unknown-error-when-debug-is-on/#post-6740027)
 * The shortcode supports images with `show_media=1` even though the widget currently
   doesn’t.
 * Martin
 *  Thread Starter [RKS213](https://wordpress.org/support/users/rks213/)
 * (@rks213)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/returns-unknown-error-when-debug-is-on/#post-6740090)
 * The development version does indeed fix this issue as it is no longer appearing
   in the logs or on the page. Please feel free to close this ticket as resolved.
 * Also, it does appear using the shortcode will be my better option and all the
   options available seem to account for everything I wanted with the widget in 
   the first place. Thanks.
 *  Thread Starter [RKS213](https://wordpress.org/support/users/rks213/)
 * (@rks213)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/returns-unknown-error-when-debug-is-on/#post-6740091)
 * Didn’t see I could mark it resolved myself. Sorry.

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

The topic ‘Returns unknown error when debug is on’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rotatingtweets.svg)
 * [Rotating Tweets (Twitter widget and shortcode)](https://wordpress.org/plugins/rotatingtweets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rotatingtweets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rotatingtweets/)
 * [Active Topics](https://wordpress.org/support/plugin/rotatingtweets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rotatingtweets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rotatingtweets/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [RKS213](https://wordpress.org/support/users/rks213/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/returns-unknown-error-when-debug-is-on/#post-6740091)
 * Status: resolved