Jump to content

Topic on Extension talk:TemplateStyles/Flow

Uncaught Error (debugging methods don't work)

4
ImCRUGG (talkcontribs)

I've migrated from an older version of MediaWiki to 1.42 and have run the migration process.

On this version, the extension is broken for me. Any page that uses templatestyles errors:

[28f87f8c8bbc938d5c805a53] 2024-09-24 22:59:30: Fataler Ausnahmefehler des Typs „Error“

I don't know the exact translation, but a direct translation would be "Fatal Uncaught Error of Type 'Error'"

All the usual debugging steps don't work either. I've set the following, and nothing is output on the page nor written to the log file:

error_reporting( -1 );

ini_set( 'display_errors', 1 );

$wgDebugDumpSql = true;

$wgDevelopmentWarnings = true;

error_reporting(E_ALL);

$wgDebugLogFile = "/var/log/mediawiki/debug.log";

I've also tried disabling all other extensions to make sure this is not a combination of two Issues breaking.

Any idea how I could further debug or fix this issue?

ImCRUGG (talkcontribs)

I believe this has something to do with the sanatization of the CSS or the sanatized CSS space? All existing pages and articles that contain templatestyles, including the existing CSS pages are broken. When trying to create a new css page, I get the error and the changes are not submitted.

ImCRUGG (talkcontribs)

My mistake: I read through everything several times, but somehow overlooked the part that said the git repo is not ready to go. Downloaded it through the normal download now and it works.

Valerio Bozzolan (talkcontribs)

Classic :) Good for you!