XenForo on PHP7

Yer, I now run on php7.0.8 with opcache and mysql 5.6, runs super duper. Was thinking about changing over to mariadb, but the performance between 5.6 and mariadb was negligible, thus unwarranted. Xenforo runs super sweet on it.
 
Just upgraded to php7. The xenforo admin panel now says this "An unexpected error occurred. Please try again later" and when i try to create a post on the forum i get this.


Code:
The following error occurred:
An exception occurred: Call to undefined function iconv_strlen() in /home/window/public_html/library/Zend/Validate/Hostname.php on line 1263

Zend_Validate_Hostname->isValid() in Zend/Uri/Http.php at line 449
Zend_Uri_Http->validateHost() in Zend/Uri/Http.php at line 281
Zend_Uri_Http->valid() in Zend/Uri/Http.php at line 154
Zend_Uri_Http->__construct() in Zend/Uri.php at line 143
Zend_Uri::factory() in Zend/Http/Client.php at line 270
Zend_Http_Client->setUri() in Zend/Http/Client.php at line 253
Zend_Http_Client->__construct() in XenForo/Helper/Http.php at line 21
XenForo_Helper_Http::getClient() in XenForo/Helper/Http.php at line 43
XenForo_Helper_Http::getUntrustedClient() in XenForo/BbCode/Formatter/BbCode/AutoLink.phpat line 327
XenForo_BbCode_Formatter_BbCode_AutoLink->_getUrlTitle() inXenForo/BbCode/Formatter/BbCode/AutoLink.php at line 246
XenForo_BbCode_Formatter_BbCode_AutoLink->_autoLinkUrl() inXenForo/BbCode/Formatter/BbCode/AutoLink.php at line 193
XenForo_BbCode_Formatter_BbCode_AutoLink->_autoLinkUrlCallback()
preg_replace_callback() in XenForo/BbCode/Formatter/BbCode/AutoLink.php at line 166
XenForo_BbCode_Formatter_BbCode_AutoLink->filterString() inXenForo/BbCode/Formatter/Base.php at line 590
XenForo_BbCode_Formatter_Base->renderString() in XenForo/BbCode/Formatter/Base.php at line 569
XenForo_BbCode_Formatter_Base->renderTreeElement() inXenForo/BbCode/Formatter/Base.php at line 546
XenForo_BbCode_Formatter_Base->renderSubTree() in XenForo/BbCode/Formatter/Base.php at line 526
XenForo_BbCode_Formatter_Base->renderTree() inXenForo/BbCode/Formatter/BbCode/AutoLink.php at line 79
XenForo_BbCode_Formatter_BbCode_AutoLink->renderTree() in XenForo/BbCode/Parser.php at line 505
XenForo_BbCode_Parser->render() in XenForo/Helper/String.php at line 290
XenForo_Helper_String::autoLinkBbCode() in XenForo/ControllerPublic/Forum.php at line 705
XenForo_ControllerPublic_Forum->actionAddThread() inLiamW/PostMacros/Extend/ControllerPublic/Forum.php at line 23
LiamW_PostMacros_Extend_ControllerPublic_Forum->actionAddThread() inXenForo/FrontController.php at line 351
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/window/public_html/index.php at line 13
Any ideas??


EDIT:

It seems to be an issue with the link title option in xenforo. I can post, and can post videos, media upload attachments etc no problem it seems. Its when i add a link to the post. I have the setting turned on that pulls a title in from a link. Also noticed @Liam W your post macros adon that i use is listed in this error.

Somehow my other xenforo install does let me into admin and found this server error.

Code:
Error: Call to undefined function iconv_strlen() - library/Zend/Validate/Hostname.php:1263
Generated By: Gavin, A moment ago
Stack Trace
#0 /home/cleanershost/public_html/support/library/Zend/Uri/Http.php(449): Zend_Validate_Hostname->isValid('windowcleaningf...')
#1 /home/cleanershost/public_html/support/library/Zend/Uri/Http.php(281): Zend_Uri_Http->validateHost()
#2 /home/cleanershost/public_html/support/library/Zend/Uri/Http.php(154): Zend_Uri_Http->valid()
#3 /home/cleanershost/public_html/support/library/Zend/Uri.php(143): Zend_Uri_Http->__construct('http', '//windowcleanin...')
#4 /home/cleanershost/public_html/support/library/Zend/Http/Client.php(270): Zend_Uri::factory(Array)
#5 /home/cleanershost/public_html/support/library/Zend/Http/Client.php(253): Zend_Http_Client->setUri('http://windowcl...')
#6 /home/cleanershost/public_html/support/library/XenForo/Helper/Http.php(21): Zend_Http_Client->__construct('http://windowcl...', Array)
#7 /home/cleanershost/public_html/support/library/XenForo/Helper/Http.php(43): XenForo_Helper_Http::getClient('http://windowcl...', Array)
#8 /home/cleanershost/public_html/support/library/XenForo/BbCode/Formatter/BbCode/AutoLink.php(327): XenForo_Helper_Http::getUntrustedClient('http://windowcl...', Array)
#9 /home/cleanershost/public_html/support/library/XenForo/BbCode/Formatter/BbCode/AutoLink.php(246): XenForo_BbCode_Formatter_BbCode_AutoLink->_getUrlTitle('http://windowcl...')
#10 /home/cleanershost/public_html/support/library/XenForo/BbCode/Formatter/BbCode/AutoLink.php(193): XenForo_BbCode_Formatter_BbCode_AutoLink->_autoLinkUrl('http://windowcl...')
#11 [internal function]: XenForo_BbCode_Formatter_BbCode_AutoLink->_autoLinkUrlCallback(Array)
#12 /home/cleanershost/public_html/support/library/XenForo/BbCode/Formatter/BbCode/AutoLink.php(166): preg_replace_callback('#(?<=[^a-z0-9@-...', Array, 'http://windowcl...')
#13 /home/cleanershost/public_html/support/library/XenForo/BbCode/Formatter/Base.php(590): XenForo_BbCode_Formatter_BbCode_AutoLink->filterString('http://windowcl...', Array)
#14 /home/cleanershost/public_html/support/library/XenForo/BbCode/Formatter/Base.php(569): XenForo_BbCode_Formatter_Base->renderString('http://windowcl...', Array, 0)
#15 /home/cleanershost/public_html/support/library/XenForo/BbCode/Formatter/Base.php(546): XenForo_BbCode_Formatter_Base->renderTreeElement('http://windowcl...', Array, 0)
#16 /home/cleanershost/public_html/support/library/XenForo/BbCode/Formatter/Base.php(526): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#17 /home/cleanershost/public_html/support/library/XenForo/BbCode/Formatter/BbCode/AutoLink.php(79): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#18 /home/cleanershost/public_html/support/library/XenForo/BbCode/Parser.php(505): XenForo_BbCode_Formatter_BbCode_AutoLink->renderTree(Array, Array)
#19 /home/cleanershost/public_html/support/library/XenForo/Helper/String.php(290): XenForo_BbCode_Parser->render('http://windowcl...')
#20 /home/cleanershost/public_html/support/library/XenForo/ControllerPublic/Forum.php(705): XenForo_Helper_String::autoLinkBbCode('http://windowcl...')
#21 /home/cleanershost/public_html/support/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Forum->actionAddThread()
#22 /home/cleanershost/public_html/support/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#23 /home/cleanershost/public_html/support/index.php(13): XenForo_FrontController->run()
#24 {main}
Request State
array(3) {
  ["url"] => string(57) "http://support.cleanershost.com/forums/forms.4/add-thread"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(14) {
    ["title"] => string(4) "test"
    ["message_html"] => string(45) "<p>http://windowcleaningforums.co.uk/<br></p>"
    ["_xfRelativeResolver"] => string(60) "http://support.cleanershost.com/forums/forms.4/create-thread"
    ["tags"] => string(0) ""
    ["attachment_hash"] => string(32) "2f5d47c5cfb63d44b577cef00b48a3ef"
    ["watch_thread"] => string(1) "1"
    ["watch_thread_email"] => string(1) "1"
    ["watch_thread_state"] => string(1) "1"
    ["discussion_open"] => string(1) "1"
    ["_set"] => array(2) {
      ["discussion_open"] => string(1) "1"
      ["sticky"] => string(1) "1"
    }
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(29) "/forums/forms.4/create-thread"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

I managed to turn the setting Convert URLs to Page Titles off and i can now posts links on my other install. So it does seem to be this. How can i get back into my admin on my other install and turn this off and or is there a fix for this?
 
Last edited:
Running v1.5.9 with 67 add-ons on PHP 7.0.9 on a NGINX server now, no problems whatsoever. The performance increase is really significant. I love it.
 
Last edited:
  • Like
Reactions: Xon
Depends whether other softwares deem that version as stable or not, I guess. Using WHM, cpanel deem 7.0.8 as the current stable PHP version as Mr Reliable.
 
7.1 comes very soon and MariaDatabase 10.2, i hope no problems with this setup :), for now works fine on 7.0.13 and MariaDatabase 10.1.19
 
Top Bottom