1.4.0 alpha2

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

chriskrash
Posts: 12
Joined: Wed May 19, 2004 4:06 pm

1.4.0 alpha2

Post by chriskrash »

I've setup the latest phpmyfaq, but seem to have a problem with the language files.

I got 1.3.11a and 1.4.0 M2 running on the same server (different database) without any problems whatsoever
- does 1.4.0 have different requirements ?

[1.3.11a]
http://www.faq.northq.com/
- beware : it's in Danish

[1.4.0 M2]
http://www.faq.northq.com/int/

[1.4.0 alpha2]
http://www.faq.northq.com/alpha2/

[I'm running Debian Stable]
Apache 1.3.26-0woo
Php 4.1.2-6wood
Mysql 3.23.49-8.6
.chris
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

did you use your old language file? It seems so. You cannot use your old language file from 1.3 for 1.4.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
chriskrash
Posts: 12
Joined: Wed May 19, 2004 4:06 pm

Post by chriskrash »

[quote="Thorsten"]Hi,

did you use your old language file? It seems so. You cannot use your old language file from 1.3 for 1.4.

bye
Thorsten[/quote]

Well, to be honest I did try and see if they were compatible.

But realised that it didn't work and unzipped the entire project again.
.chris
chriskrash
Posts: 12
Joined: Wed May 19, 2004 4:06 pm

Post by chriskrash »

I tried echo'ing out some of the language strings, but only gets single charecters ???

Was curious to see if it had something to do with me unzipping on my windows xp computer and ftp'ing to our debian linux server.

example (cope of language_en.php):

http://www.faq.northq.com/alpha2/lang/wierd.php (output)
http://www.faq.northq.com/alpha2/lang/wierd.txt (php file)
.chris
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you change your weird.php file with this code:

Code: Select all

print "<pre>";
print_r($LANG);
print "</pre>";
thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
chriskrash
Posts: 12
Joined: Wed May 19, 2004 4:06 pm

Post by chriskrash »

I've changed the code (deleted wierd.txt and copied it from wierd.php just to make sure they corespond)

but still just generating a "P" :(

.chris

ps put up an php info - http://www.faq.northq.com/alpha2/lang/info.php
.chris
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Chris,

please move a file test.php with the following content on your server:

Code: Select all

<?php
$LANG["metaCharset"] = "iso-8859-1";
$LANG["metaLanguage"] = "en";
$LANG["language"] = "english";
$LANG["dir"] = "ltr"; 
$LANG["msgCategory"] = "Categories";
$LANG["msgShowAllCategories"] = "Show all categories";
$LANG["msgSearch"] = "Search";
$LANG["msgAddContent"] = "Add content";
$LANG["msgQuestion"] = "Ask question";
$LANG["msgOpenQuestions"] = "Open questions";
$LANG["msgHelp"] = "Help";
$LANG["msgContact"] = "Contact";
$LANG["msgHome"] = "Home";
$LANG["msgNews"] = "FAQ-News";
$LANG["msgUserOnline"] = "User online";
$LANG["msgXMLExport"] = "XML-File";
$LANG["msgBack2Home"] = "back to home page";
print "<pre>";
print_r($LANG);
print "</pre>";
?>
thanks
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
chriskrash
Posts: 12
Joined: Wed May 19, 2004 4:06 pm

Post by chriskrash »

.chris
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

this is really strange. I'll google for a solution.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

please add to my example the following lines:

Code: Select all

print "<hr>";
highlight_file(__file__);
bye
arty
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

the next test, please try this code:

Code: Select all

<?php 
$LANG["metaCharset"] = "iso-8859-1"; 
$LANG["metaLanguage"] = "en"; 
$LANG["language"] = "english"; 
$LANG["dir"] = "ltr"; 
$LANG["msgCategory"] = "Categories"; 
$LANG["msgShowAllCategories"] = "Show all categories"; 
$LANG["msgSearch"] = "Search"; 
$LANG["msgAddContent"] = "Add content"; 
$LANG["msgQuestion"] = "Ask question"; 
$LANG["msgOpenQuestions"] = "Open questions"; 
$LANG["msgHelp"] = "Help"; 
$LANG["msgContact"] = "Contact"; 
$LANG["msgHome"] = "Home"; 
$LANG["msgNews"] = "FAQ-News"; 
$LANG["msgUserOnline"] = "User online"; 
$LANG["msgXMLExport"] = "XML-File"; 
$LANG["msgBack2Home"] = "back to home page"; 
print "<pre>"; 
print_r($LANG); 
print "</pre>"; 
print "<hr>"; 
print "<pre>"; 
var_dump($LANG); 
print "</pre>"; 
print "<hr>"; 
highlight_file(__file__);
?>
thanks
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
chriskrash
Posts: 12
Joined: Wed May 19, 2004 4:06 pm

Post by chriskrash »

http://www.faq.northq.com/alpha2/lang/test3.php

strange, it seems to print the first charter in the last entry
- in this case "b" from "back to home"

I'll try a debian unstable tomorrow at work with a more recent apache and php
.chris
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

a friend of mine in an IRC chat discovered that this is a bug in PHP 4.1.2 on Debian Woody.

I'll change the variable name for the language code to fix this Debian Woody specific bug.

Please wait for phpMyFAQ 1.4.0 alpha3!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

we found a way to solve the problem. Set the register_globals in the php.ini file off and it works.

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