Error while posting or repling on PHPBB (v3.2.2)

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
dalexhd
Registered User
Posts: 1
Joined: Sun Mar 11, 2018 9:31 am

Error while posting or repling on PHPBB (v3.2.2)

Post by dalexhd » Sun Mar 11, 2018 9:52 am

Hi :)
I have recently installed the phpbb forum on my website, but when i configured all stuff with ANY problems, an error appear when trying to post somethig... The error has 500 code, so, to solve this, we can only check Apache logs.

My apache2 logs are the following:
[Sun Mar 11 10:25:24.566311 2018] [php7:error] [pid 32391] [client xxx.xxx.xx.xx:xxxx] PHP Fatal error: Uncaught TypeError: Argument 1 passed to s9e\\TextFormatter\\Configurator\\TemplateNormalizations\\AbstractNormalization::normalize() must be an instance of DOMElement, null given, called in /var/www/example/forum/vendor/s9e/text-formatter/src/Configurator.php on line 7167 and defined in /var/www/example/forum/vendor/s9e/text-formatter/src/Configurator.php:4453\nStack trace:\n#0 /var/www/example/forum/vendor/s9e/text-formatter/src/Configurator.php(7167): s9e\\TextFormatter\\Configurator\\TemplateNormalizations\\AbstractNormalization->normalize(NULL)\n#1 /var/www/example/forum/phpbb/textformatter/s9e/factory.php(514): s9e\\TextFormatter\\Configurator\\TemplateNormalizer->normalizeTemplate('<blockquote><xs...')\n#2 /var/www/example/forum/phpbb/textformatter/s9e/factory.php(273): phpbb\\textformatter\\s9e\\factory->get_default_bbcodes(Object(s9e\\TextFormatter\\Configurator))\n#3 /var/www/example/example/phpbb/textformatter/s9e/factory.php(382): phpbb\\textformatter\\s9e\\factory->get_configurator()\n#4 /var/www/example/forum/phpbb/textformatter/s9e/parser.php(47): in /var/www/example/forum/vendor/s9e/text-formatter/src/Configurator.php on line 4453, referer: https://www.example.es/posting.php?mode=reply&f=2&t=1
Here is my config file:

Code: Select all

<?php
// phpBB 3.2.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'phpbb\\db\\driver\\mysqli';
$dbhost = '127.0.0.1';
$dbport = '';
$dbname = 'example';
$dbuser = 'root';
$dbpasswd = 'mypassword';
$table_prefix = 'phpbb_';
$phpbb_adm_relative_path = 'adm/';
$acm_type = 'phpbb\\cache\\driver\\file';

@define('PHPBB_INSTALLED', true);
// @define('PHPBB_DISPLAY_LOAD_TIME', true);
@define('PHPBB_ENVIRONMENT', 'production');
// @define('DEBUG_CONTAINER', true);
I made some changes:
  1. File: /includes/sessions.php (Line_284)
    From

    Code: Select all

    $ip = htmlspecialchars_decode($request->server('REMOTE_ADDR'));
    To:

    Code: Select all

    $ip = htmlspecialchars_decode($request->server('HTTP_X_FORWARDED_FOR'));
    Explanation:
    I use apache reverse proxy and cloudflare. I noticed that the forum users ip were wrong, so i changed this simple variables.
Thanks for supporting ;)

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: actane, Crizzo, Google [Bot], hewmac06, Raul [ThE KuKa], rudswa and 30 guests