Cannot reproduce iconv_substr(): Detected an incomplete multibyte character in input string


Well-known member
Full stack trace
ErrorException: iconv_substr(): Detected an incomplete multibyte character in input string - library/Zend/Date.php:2082
Generated By: Unknown Account, Yesterday at 3:57 PM
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(8, 'iconv_substr():...', '/home/nginx/dom...', 2082, Array)
#1 /home/nginx/domains/ iconv_substr('T02:30:10Z', 9, 1, 'UTF-8')
#2 /home/nginx/domains/ Zend_Date->_calculate('set', '2015-01-20T02:3...', 'c', 'en')
#3 /home/nginx/domains/ Zend_Date->set('2015-01-20T02:3...', 'c')
#4 /home/nginx/domains/ Zend_Feed_Reader_Extension_Atom_Entry->getDateModified()
#5 /home/nginx/domains/ Zend_Feed_Reader_Entry_Atom->getDateModified()
#6 /home/nginx/domains/ XenForo_Model_Feed->getFeedData('')
#7 /home/nginx/domains/ XenForo_Model_Feed->importFeedData(Array)
#8 /home/nginx/domains/ XenForo_Model_Feed->scheduledImportTimeLimited(15)
#9 /home/nginx/domains/ XenForo_CronEntry_Feeder::importFeeds(Array)
#10 /home/nginx/domains/ XenForo_Model_Cron->runEntry(Array)
#11 /home/nginx/domains/ XenForo_Deferred_Cron->execute(Array, Array, 7.9999990463257, '')
#12 /home/nginx/domains/ XenForo_Model_Deferred->runDeferred(Array, 7.9999990463257, '', false)
#13 /home/nginx/domains/ XenForo_Model_Deferred->_runInternal(Array, 8, '', false)
#14 /home/nginx/domains/ XenForo_Model_Deferred->run(false)
#15 {main}
Request State
array(3) {
  ["url"] => string(40) ""
  ["_GET"] => array(0) {
  ["_POST"] => array(3) {
    ["_xfRequestUri"] => string(1) "/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"

PHP 7.0.1 (cli) (built: Dec 17 2015 13:40:00) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
Are you still receiving this error? I can see the entry in question based on the date, but it's parsing without issue here.
I assumed this could be PHP 7 related knowing that Matt probably has the latest and greatest already. That said, I've been unable to reproduce this also with the same feed item using PHP 7.0.1.

EDIT: FWIW I've been testing it repeatedly by locating the thread for the problematic feed item (Change Log for 11.47.9980.9) and then running the query:
DELETE FROM xf_feed_log WHERE thread_id = ?
...where ? is the thread ID.

Then I run an import again and the same feed item will be re-imported to a new thread. I've done it a few times now and it works every time. I wonder if it fails every time for you.
Last edited:
Yeah, I've tried with both 5.x and 7.0 and couldn't reproduce it either.

It should be triggerable when previewing the feed, but I haven't had any luck there or with other more direct tests. (I have had connection rejection issues from the feed, though I'm not sure if that's related.)
Is this still happening? (If so, does it happen when you preview the feed?) I'm assuming it's not happening any longer (I still can't reproduce it).
Top Bottom