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

MattW

Well-known member
Full stack trace
Code:
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/mattwservices.co.uk/public/library/Zend/Date.php(2082): iconv_substr('T02:30:10Z', 9, 1, 'UTF-8')
#2 /home/nginx/domains/mattwservices.co.uk/public/library/Zend/Date.php(1078): Zend_Date->_calculate('set', '2015-01-20T02:3...', 'c', 'en')
#3 /home/nginx/domains/mattwservices.co.uk/public/library/Zend/Feed/Reader/Extension/Atom/Entry.php(240): Zend_Date->set('2015-01-20T02:3...', 'c')
#4 /home/nginx/domains/mattwservices.co.uk/public/library/Zend/Feed/Reader/Entry/Atom.php(164): Zend_Feed_Reader_Extension_Atom_Entry->getDateModified()
#5 /home/nginx/domains/mattwservices.co.uk/public/library/XenForo/Model/Feed.php(224): Zend_Feed_Reader_Entry_Atom->getDateModified()
#6 /home/nginx/domains/mattwservices.co.uk/public/library/XenForo/Model/Feed.php(559): XenForo_Model_Feed->getFeedData('http://docs.cpa...')
#7 /home/nginx/domains/mattwservices.co.uk/public/library/XenForo/Model/Feed.php(592): XenForo_Model_Feed->importFeedData(Array)
#8 /home/nginx/domains/mattwservices.co.uk/public/library/XenForo/CronEntry/Feeder.php(15): XenForo_Model_Feed->scheduledImportTimeLimited(15)
#9 /home/nginx/domains/mattwservices.co.uk/public/library/XenForo/Model/Cron.php(355): XenForo_CronEntry_Feeder::importFeeds(Array)
#10 /home/nginx/domains/mattwservices.co.uk/public/library/XenForo/Deferred/Cron.php(24): XenForo_Model_Cron->runEntry(Array)
#11 /home/nginx/domains/mattwservices.co.uk/public/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_Cron->execute(Array, Array, 7.9999990463257, '')
#12 /home/nginx/domains/mattwservices.co.uk/public/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9999990463257, '', false)
#13 /home/nginx/domains/mattwservices.co.uk/public/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 8, '', false)
#14 /home/nginx/domains/mattwservices.co.uk/public/deferred.php(23): XenForo_Model_Deferred->run(false)
#15 {main}
Request State
array(3) {
  ["url"] => string(40) "https://mattwservices.co.uk/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(3) {
    ["_xfRequestUri"] => string(1) "/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

Running
Code:
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:
Code:
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).
 
Back
Top Bottom