Menu
Home
Forums
New posts
Search forums
What's new
New posts
New media
New media comments
New resources
New profile posts
Latest activity
Media
New media
New comments
Search media
Resources
Latest reviews
Search resources
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
XenForo bug reports
Resolved bug reports
Intermittent htmlspecialchars errors
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="nero" data-source="post: 1464348" data-attributes="member: 225261"><p>Hi there,</p><p></p><p>I'm new to Xenforo and I'm working on converting a phpBB-3.2 board to Xenforo-2.1.11.</p><p></p><p>I have intermittent errors happening about some unsupported charset error with htmlspecialchars(). Here's an example:</p><p></p><p>Fatal error: Uncaught exception 'ErrorException' with message '[E_WARNING] htmlspecialchars(): charset `����' not supported, assuming utf-8' in /dev/website/www/src/XF/Error.php:448</p><p>Stack trace:</p><p>#0 [internal function]: XF::handlePhpError(2, 'htmlspecialchar...', '/dev/website...', 448, Array)</p><p>#1 /dev/website/www/src/XF/Error.php(448): htmlspecialchars('XF::handlePhpEr...')</p><p>#2 /dev/website/www/src/XF/Error.php(377): XF\Error->getExceptionTraceHtml(Object(ErrorException))</p><p>#3 /dev/website/www/src/XF/App.php(2207): XF\Error->displayFatalExceptionMessage(Object(ErrorException))</p><p>#4 /dev/website/www/src/XF.php(168): XF\App->displayFatalExceptionMessage(Object(ErrorException))</p><p>#5 [internal function]: XF::handleException(Object(ErrorException))</p><p>#6 {main}</p><p> thrown in /dev/website/www/src/XF/Error.php on line 448</p><p></p><p>It all started during the import. It stopped several times with a similar error (same error, only the charset is changing) and re-launching the importer worked until another error happened. Eventually I managed to finalize the import and now have a working board. All messages seem OK and I don't see any encoding issue when browsing the board. But from time to time, whether it's on the public side of the board or in the admin control panel, I have this error coming back. Reloading the page fixes the issue and the page displays correctly.</p><p>For instance, I just had the error in the admin control panel at the following page: /admin.php?tools/test-image-proxy</p><p></p><p>Is there something I did wrong and could you tell me how to fix this error?</p><p></p><p>I'm running PHP-5.6 and my php.ini has the default_charset set to UTF-8.</p><p></p><p>Thanks!</p></blockquote><p></p>
[QUOTE="nero, post: 1464348, member: 225261"] Hi there, I'm new to Xenforo and I'm working on converting a phpBB-3.2 board to Xenforo-2.1.11. I have intermittent errors happening about some unsupported charset error with htmlspecialchars(). Here's an example: Fatal error: Uncaught exception 'ErrorException' with message '[E_WARNING] htmlspecialchars(): charset `����' not supported, assuming utf-8' in /dev/website/www/src/XF/Error.php:448 Stack trace: #0 [internal function]: XF::handlePhpError(2, 'htmlspecialchar...', '/dev/website...', 448, Array) #1 /dev/website/www/src/XF/Error.php(448): htmlspecialchars('XF::handlePhpEr...') #2 /dev/website/www/src/XF/Error.php(377): XF\Error->getExceptionTraceHtml(Object(ErrorException)) #3 /dev/website/www/src/XF/App.php(2207): XF\Error->displayFatalExceptionMessage(Object(ErrorException)) #4 /dev/website/www/src/XF.php(168): XF\App->displayFatalExceptionMessage(Object(ErrorException)) #5 [internal function]: XF::handleException(Object(ErrorException)) #6 {main} thrown in /dev/website/www/src/XF/Error.php on line 448 It all started during the import. It stopped several times with a similar error (same error, only the charset is changing) and re-launching the importer worked until another error happened. Eventually I managed to finalize the import and now have a working board. All messages seem OK and I don't see any encoding issue when browsing the board. But from time to time, whether it's on the public side of the board or in the admin control panel, I have this error coming back. Reloading the page fixes the issue and the page displays correctly. For instance, I just had the error in the admin control panel at the following page: /admin.php?tools/test-image-proxy Is there something I did wrong and could you tell me how to fix this error? I'm running PHP-5.6 and my php.ini has the default_charset set to UTF-8. Thanks! [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
XenForo bug reports
Resolved bug reports
Intermittent htmlspecialchars errors
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top