• Resolved RKS213

    (@rks213)


    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/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Martin Tod

    (@mpntod)

    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

    Are you seeing something in the source code of the page along the lines of:

    <!-- iconv to XXXXX failed -->

    Thread Starter RKS213

    (@rks213)

    Yes. Under each of the errors noted above there is that comment.

    <!-- iconv to utf8mb4 failed -->

    Plugin Author Martin Tod

    (@mpntod)

    Does the development version solve the problem for you?

    Thread Starter RKS213

    (@rks213)

    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

    (@mpntod)

    The shortcode supports images with show_media=1 even though the widget currently doesn’t.

    Martin

    Thread Starter RKS213

    (@rks213)

    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

    (@rks213)

    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.