Centos 5.1 SMF 2.0Beta4
Trying to install language package Portuguese_brazilian 2.0Beta4p UTF-8 i get this message:
Package contains illegal paths - please contact Simple Machines
There is no error in the Apache error log.
I got the same error while trying to install the Dutch language packs with the package manager.
But by replacing the old files using an FTP client, I didn't have any problems with upgrading (and the forum recognizes them correctly too).
I have the same problem.
Quote from: Trifon on September 30, 2008, 03:38:11 AM
I got the same error while trying to install the Dutch language packs with the package manager.
But by replacing the old files using an FTP client, I didn't have any problems with upgrading (and the forum recognizes them correctly too).
I did copy the files and the language appears at the language config page. I checked brazilian portuguese and saved but nothing changed. Did you do something else?
I did some digging to figure out what was causing this. The reason is that many language files contain an "agreement.language.txt" file, so you can have a registration agreement in another language if you want. However, SMF does not expect this file to be there, so it's throwing the error.
To fix...
Sources/ManageServer.php
Find
if (strpos($file, '..') !== false || substr($file, 0, 6) != 'Themes')
Replace
if (strpos($file, '..') !== false || (substr($file, 0, 6) != 'Themes' && substr($file, 0, 10) != 'agreement'))
That should fix the problem.
That worked changing
&& substr($file, 0, 10) != 'agreement'))
for
&& substr($file, 0, 9) != 'agreement'))
Than i had to logout for the new language to show.
Thanks for the quick reply! ^_^
I haven't checked it out yet, but it'll be helpfull on further updates.
I still get the error after modifying Sources/ManageServer.php. Language: Romanian.
Quote from: Kakao on September 30, 2008, 09:14:29 PM
That worked changing
&& substr($file, 0, 10) != 'agreement'))
for
&& substr($file, 0, 9) != 'agreement'))
Than i had to logout for the new language to show.
That worked for me, thanks! :)
Quote from: Kakao on September 30, 2008, 09:14:29 PM
That worked changing
&& substr($file, 0, 10) != 'agreement'))
for
&& substr($file, 0, 9) != 'agreement'))
Than i had to logout for the new language to show.
Worked for me too. Thanks!
just installed new forum.. same problem, same solution.
spanish language
Thanks.