News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[2.0 beta3p] editing languages error

Started by Owdy, March 19, 2008, 03:40:18 AM

Previous topic - Next topic

Owdy

If i hit Finnish, i get this:

QuoteFatal error: require() [function.require]: Failed opening required '/var/www/fs1/0/public_html/foorumi/Themes/default/languages/index.finnish.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/fs1/0//public_html/foorumi/Sources/ManageServer.php on line 1193

It tryes to open index.finnish.php, should try index.finnish-utf8.php.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

karlbenson

Sorry Owdy. I had to congratulate you on your 12,000th post

SleePy

Are you using finnish or finnish-utf8?
Are you using caching?
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Owdy

#3
finnish-utf8 . Caching or not, same error. English works. Like i sayd, error message says it tryes to find index.finnish.php, but it should try to find UTF version.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

SleePy

Open ManageServer.php
Find:
    // Clean the ID - just in case.
    preg_match('~([A-Za-z0-9_]+)~', $context['lang_id'], $matches);

Replace:
    // Clean the ID - just in case.
    preg_match('~([A-Za-z0-9_-]+)~', $context['lang_id'], $matches);

Does that solve it?

I think the devs missed a character when cleaning the input id.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

SleePy

#6
Ok, For Team reference this bug is http://dev.simplemachines.org/mantis/view.php?id=1791
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: