Re: Maybe pruning?
Posted: Sat Jan 06, 2024 1:47 pm
I've taken Brad up on his kind offer... the board may be down at some point soon for updating.
Prolly late for the train, but I've witnessed not too dissimilar error logs before, and it was about the server having permenantly dropped support for older versions of PHP, while the board never having had an update in almost a decade. So the board was trying to execute functions that were no longer supported by the server.zompist wrote: ↑Fri Jan 05, 2024 5:43 pmMight be worth a try, though it's tedious.
FWIW I ftp'd into the server and checked the error_log file. It has an innumerable set of errors like this:
I have no idea what that means, and there's no timestamp. I deleted the file to see if more of the same occurs.Stack trace:
#0 /home3/verduria/public_html/cache/production/url_generator.php(49): Symfony\Component\Routing\Generator\UrlGenerator->doGenerate(Array, Array, Array, Array, Array, 'phpbb_feed_foru...', 1, Array, Array)
#1 /home3/verduria/public_html/phpbb/routing/router.php(168): phpbb_url_generator->generate('phpbb_feed_foru...', Array, 1)
#2 /home3/verduria/public_html/phpbb/routing/helper.php(148): phpbb\routing\router->generate('phpbb_feed_foru...', Array, 1)
#3 /home3/verduria/public_html/phpbb/template/twig/extension/routing.php(36): phpbb\routing\helper->route('phpbb_feed_foru...', Array, true, false, 1)
#4 /home3/verduria/public_html/cache/production/twig/cd/cd6dc777362816e4f1730d62edab105dab4b9a7c8305a07ef7290a6eb2ce1b78.php(145): p in /home3/verduria/public_html/vendor/twig/twig/src/Template.php on line 419
[08-Apr-2023 03:38:08 America/Boise] PHP Fatal error: Uncaught Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "forum_id" for route "phpbb_feed_forum" must match "\d+" ("-1165" given) to generate a corresponding URL. in /home3/verduria/public_html/vendor/symfony/routing/Generator/UrlGenerator.php:148
Ironically, the board is working fine right now. (Not because I deleted the file; it was fine before that. Since the problem comes and goes, I feel like it's bot activity, but I dunno.)
That was my hunch too (and why I suggested upgrading the board). I know that that’s what happened to incatena.org when it stopped working.Zju wrote: ↑Sat Jan 06, 2024 2:01 pmProlly late for the train, but I've witnessed not too dissimilar error logs before, and it was about the server having permenantly dropped support for older versions of PHP, while the board never having had an update in almost a decade. So the board was trying to execute functions that were no longer supported by the server.zompist wrote: ↑Fri Jan 05, 2024 5:43 pmMight be worth a try, though it's tedious.
FWIW I ftp'd into the server and checked the error_log file. It has an innumerable set of errors like this:
I have no idea what that means, and there's no timestamp. I deleted the file to see if more of the same occurs.Stack trace:
#0 /home3/verduria/public_html/cache/production/url_generator.php(49): Symfony\Component\Routing\Generator\UrlGenerator->doGenerate(Array, Array, Array, Array, Array, 'phpbb_feed_foru...', 1, Array, Array)
#1 /home3/verduria/public_html/phpbb/routing/router.php(168): phpbb_url_generator->generate('phpbb_feed_foru...', Array, 1)
#2 /home3/verduria/public_html/phpbb/routing/helper.php(148): phpbb\routing\router->generate('phpbb_feed_foru...', Array, 1)
#3 /home3/verduria/public_html/phpbb/template/twig/extension/routing.php(36): phpbb\routing\helper->route('phpbb_feed_foru...', Array, true, false, 1)
#4 /home3/verduria/public_html/cache/production/twig/cd/cd6dc777362816e4f1730d62edab105dab4b9a7c8305a07ef7290a6eb2ce1b78.php(145): p in /home3/verduria/public_html/vendor/twig/twig/src/Template.php on line 419
[08-Apr-2023 03:38:08 America/Boise] PHP Fatal error: Uncaught Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "forum_id" for route "phpbb_feed_forum" must match "\d+" ("-1165" given) to generate a corresponding URL. in /home3/verduria/public_html/vendor/symfony/routing/Generator/UrlGenerator.php:148
Ironically, the board is working fine right now. (Not because I deleted the file; it was fine before that. Since the problem comes and goes, I feel like it's bot activity, but I dunno.)
Follow-up to this: zompist has given me admin access. Currently, I’m making a backup of the board. Once that’s done I’ll have a go at upgrading it — which I seem to recall being a reasonably quick process last time I tried it. Hopefully that’s enough to fix it… if not, I’ll dig a bit deeper and see if anything else might help.
Awesome! Thanks so much, Brad!
Ooh yeah. If I'm not mistaken: look for content.css. Then look for .content and .content p and change the font family to sans-serif.(One rather worrying thing: the font got reset to Trebuchet MS, which is the default. Luckily I took a backup, so I’ll see if I can get back the old CSS.)
Done! It turned out to be a little more than just content.css: I ran a diff to find all the places which needed to be changed.zompist wrote: ↑Sun Jan 07, 2024 12:28 amOoh yeah. If I'm not mistaken: look for content.css. Then look for .content and .content p and change the font family to sans-serif.(One rather worrying thing: the font got reset to Trebuchet MS, which is the default. Luckily I took a backup, so I’ll see if I can get back the old CSS.)
Er… oh dear. That really isn’t good. I’d better look into it…
Code: Select all
[07-Jan-2024 06:01:33 America/Boise] PHP Fatal error: Uncaught Error: Call to undefined function str_contains() in /home3/verduria/public_html/cache/production/s9e_renderer_b78c88a79b17f46f0cdcdd0e0bf6b1c393ec05a9.php:29
Stack trace:
#0 /home3/verduria/public_html/vendor/s9e/text-formatter/src/Renderers/PHP.php(244): s9e_renderer_b78c88a79b17f46f0cdcdd0e0bf6b1c393ec05a9->renderQuickTemplate('LIST', '<LIST type="dec...')
#1 [internal function]: s9e\TextFormatter\Renderers\PHP->renderQuickCallback(Array)
#2 /home3/verduria/public_html/vendor/s9e/text-formatter/src/Renderers/PHP.php(202): preg_replace_callback('(<(?:(?!/)((?:A...', Array, '<SIZE size="150...')
#3 /home3/verduria/public_html/vendor/s9e/text-formatter/src/Renderers/PHP.php(292): s9e\TextFormatter\Renderers\PHP->renderQuick('<r><SIZE size="...')
#4 /home3/verduria/public_html/vendor/s9e/text-formatter/src/Renderer.php(66): s9e\TextFormatter\Renderers\PHP->renderRichText('<r><SIZE size="...')
#5 /home3/verduria/public_html/phpbb/textformatter/s9e/renderer.php(250): s9e\TextFormatter\Renderer->render('< in /home3/verduria/public_html/cache/production/s9e_renderer_b78c88a79b17f46f0cdcdd0e0bf6b1c393ec05a9.php on line 29
Once I figured out where to look, it wasn’t actually that hard. As I recall, I just searched for str_contains, and it was only used in that file, so then I just had to look for the code which used that file.
If you can do that, I’d recommend it. phpBB advertises compatibility with PHP until version 8.1, so presumably if the new version is <=8.1 the risks are low.