Help forum http erro 500

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
F3RrUh
Registered User
Posts: 2
Joined: Mon Sep 07, 2020 2:31 pm

Help forum http erro 500

Post by F3RrUh »

Hello friends, I have a problem on my forum ... www.scooterpower.pt


Since a few days ago my forum does not let administrators and moderators create topics or reply to messages, this only happens with admins and moderators, that is, normal users can publish and reply, I have already confirmed the permissions a thousand times, but it seems that n be an error since I didn’t make any changes recently and it started happening just like that ...

I use hostinger hosting, php version 7.2.32, phpbb version 3.3.1, the only thing that updated was the database from version 3.3.0 to Version 3.3.1

The error that is when I click to create a topic or reply to a message is the HTTP error ERROR 500


Image
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10406
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Help forum http erro 500

Post by Noxwizard »

Check your server's error log. It will generally provide a message indicating what caused the error.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.
F3RrUh
Registered User
Posts: 2
Joined: Mon Sep 07, 2020 2:31 pm

Re: Help forum http erro 500

Post by F3RrUh »

hello thanks for the help, i already identified the error:

Fatal error: Uncaught Twig \ Error \ RuntimeError: The string to escape is not a valid UTF-8 string in "plupload.html" at line 10. in /home/u961545410/domains/scooterpower.pt/public_html/vendor/twig/ twig / src / Extension / EscaperExtension.php: 260 Stack trace: # 0 /home/u961545410/domains/scooterpower.pt/public_html/cache/production/twig/71/718af8535c16bbad540e6aab9a4297105321ec9d6959a82ec8024d98a2c75bc0.php(66): twig_escape_filter (Object (phpbb \ template \ twig \ environment), 'Add fichei ...', 'js') # 1 /home/u961545410/domains/scooterpower.pt/public_html/vendor/twig/twig/src/Template.php(407): __TwigTemplate_96d067e3ca9cf2f2f6f6f6f6b2b0e0f0e0f0e0f0e0f0e0f0f0bf4f4f4f4f4fddddd -> doDisplay (Array, Array) # 2 /home/u961545410/domains/scooterpower.pt/public_html/vendor/twig/twig/src/Template.php(380): Twig \ Template-> displayWithErrorHandling (Array, Array) # 3 /home/u961545410/domains/scooterpower.pt/public_html/cache/production/twig/ca/ca9a0aef68b5d7cc702848fd39a529d249e1c8c60d88f843751695e1bb23da32.php(285) : Twig \ Template-> display (Array) # 4 / h in /home/u961545410/domains/scooterpower.pt/public_html/vendor/twig/twig/src/Extension/EscaperExtension.php on line 260

is this the error?
/home/u961545410/domains/scooterpower.pt/public_html/vendor/twig/twig/src/Extension/EscaperExtension.php on line 260



on github I will find a possible solution
Problem src (link):

if (!preg_match('//u', $string)) {
throw new RuntimeError('The string to escape is not a valid UTF-8 string.');
}
Solution:

if (!preg_match('//u', $string)) {
$string = mb_convert_encoding($string, 'UTF-8', 'UTF-8');
}
Post Reply

Return to “[3.3.x] Support Forum”