Page turn blank after changing a translation 2.7.0

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
yeeyaa
Posts: 4
Joined: Sun Oct 23, 2011 5:54 pm

Page turn blank after changing a translation 2.7.0

Post by yeeyaa »

Dear All,

I have just had phpMyFAQ 2.7.0 installed and everything worked like a charm. However, after I changed an interface translation, I cannot open any page of the site now.
The main URL is blank, the admin URL is blank.
I did follow an FAQ from the FAQs and enabled DEBUG mode but nothing more shows up on the page.

Can somebody please direct me how do I get this working again?
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Page turn blank after changing a translation 2.7.0

Post by Thorsten »

Hi,

which language did you changed?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
yeeyaa
Posts: 4
Joined: Sun Oct 23, 2011 5:54 pm

Re: Page turn blank after changing a translation 2.7.0

Post by yeeyaa »

Thorsten wrote:Hi,

which language did you changed?

bye
Thorsten
Thanks for the reply.

It's Chinese (Simplified)
and I picked one random entry.
Not 100% sure it's caused by that but it did happen after I clicked the save button.
yeeyaa
Posts: 4
Joined: Sun Oct 23, 2011 5:54 pm

Re: Page turn blank after changing a translation 2.7.0

Post by yeeyaa »

oh, it it helps, I had lang auto detection turned off before changing the translation.
But the issue didn't happen right after that.
yeeyaa
Posts: 4
Joined: Sun Oct 23, 2011 5:54 pm

Re: Page turn blank after changing a translation 2.7.0

Post by yeeyaa »

I can get the English interface to load by inserting a

Code: Select all

$LANGCODE = 'en';
right after the following code from index.php and admin/index.php.

Code: Select all

$Language = new PMF_Language();
$LANGCODE = $Language->setLanguage($faqconfig->get('main.languageDetection'), $faqconfig->get('main.language'));
// Preload English strings
require_once 'lang/language_en.php';
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Page turn blank after changing a translation 2.7.0

Post by Thorsten »

Hi,

please use the "old" language file from the 2.7 package but please send me your changed file by email to thorsten AT phpmyfaq DOT de and I'll check the file.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply