Forums | Mahara Community
Support
/
How to fix language pack problem breaking your site
22 May 2025, 13:15
Hi Mahara people,
If you are seeing an error similar to:
syntax error, unexpected token "=" at /path/to/dataroot/mahara/langpacks/de.utf8/lang/de.utf8/langconfig.php:38
There was a mistake in the language pack generation code that has now been fixed at the langpacks.mahara.org end.
To fix up your site you will need to remove the offending language pack and reinstall it.
First, to remove the broken language pack go into your dataroot directory (the path can be found in your Mahara site's config.php file) and then into the 'langpacks' sub-directory. In this directory will be a list of the installed languages. Simply delete the directory for the offending language pack, for example based on the error message above, I will need to delete the 'de.utf8' directory.
Once the directory is deleted then you can log into you site again. Log in as admin and go to Administration menu -> Development -> Languages and re-install the language again.
Cheers
Robert