• Welcome to Simple Machines Community Forum. Please login or sign up.

2.0b4 Language Package contains illegal paths

Started by Kakao, September 28, 2008, 06:17:36 PM

Previous topic - Next topic

Kakao

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.

Trifon

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).

zeroandone

ASP.NET developer
Drupal fan
Joomla fan
Ubuntu newbie
http://www.codingbeaver.com

Kakao

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?

Oldiesmann

September 30, 2008, 07:56:43 PM #4 Last Edit: September 30, 2008, 07:58:17 PM by Oldiesmann
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
Code (Line 508) Select
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.
Michael Eshom
Cincy Space - now open!

Kakao

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.

Trifon

Thanks for the quick reply! ^_^
I haven't checked it out yet, but it'll be helpfull on further updates.

mwPaul

I still get the error after modifying Sources/ManageServer.php. Language: Romanian.

Bancherd

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! :)

mwPaul

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!

miguelito

just installed new forum.. same problem, same solution.

spanish language

Thanks.

http://foro.cometas.info [nofollow] - SMF beta 3 public

Advertisement: