Record Creation problem PLEASE help!

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

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

Post by Thorsten »

Hi,

okay, I think, I got the problem but we have to test it together. Is this possible?

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

Post by Thorsten »

Hi,

please add the following code into the file index.php:

Code: Select all

print_r($_REQUEST);

/* debug mode:
 * - FALSE	debug mode disabled
 * - TRUE	debug mode enabled
 */
define("DEBUG", FALSE);

if (DEBUG == TRUE) {
	error_reporting(E_ALL);
	}
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
boogie
Posts: 7
Joined: Mon Apr 19, 2004 7:15 am

Post by boogie »

Ok, I added the code.

So now I'm getting the information at the top, ie
Array ( [sid] => 35 [aktion] => artikel [rubrik] => 001 [id] => 1 [lang] => en )

I assume that's what you were looking for?

Now that everything is working, do you need me to try to recreate the issue, or is that all you needed?

Just let me know if you need me to do anything else.

My url, so you don't have to go back to the previous post.
http://matrixcompsys.com/phpmyfaq
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

it would be great if you can try to recreate the issue so we can find a soulution for this randomly bug.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
boogie
Posts: 7
Joined: Mon Apr 19, 2004 7:15 am

Post by boogie »

Ok, not a problem.

I won't be able to get to it until early next week, but I think I know how to get it to do it again. I'll let you know then.
boogie
Posts: 7
Joined: Mon Apr 19, 2004 7:15 am

Post by boogie »

Ok... so I was able to recreate.

Actually, I didn't have to recreate, it just did it again. :)

This is what I found. If I delete the cookie for matrixcompsys.com that sets the language to english it will work fine.

So, if I go to http://matrixcompsys.com, which is a phpnuke site, it sets the cookie, then if I go to http://matrixcompsys.com/phpmyfaq, the article text will not work and the output at the top is:

Code: Select all

Array ( [sid] => 43 [aktion] => artikel [rubrik] => 001 [id] => 1 [lang] => english )
Then I delete the cookie that phpnuke creates for language english, then go back to phpmyfaq, and it will give me the article text and the output is:

Code: Select all

Array ( [sid] => 43 [aktion] => artikel [rubrik] => 001 [id] => 1 [lang] => en )
The cookie that phpnuke sets is as follows:
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

okay, we've found the bug. I'll write a fix for this issue.

Thank you!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Majestic
Posts: 3
Joined: Fri May 28, 2004 5:00 pm

Post by Majestic »

is the bug fixed in 1.3.13? i also facing the same problem where the cookie from phpnuke conflict with phpmyfaq lang setting
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

it should be fixed. If not, please post here!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Majestic
Posts: 3
Joined: Fri May 28, 2004 5:00 pm

Post by Majestic »

i using 1.3.13 now, but it seems that phpmyfaq is taking the lang = english setting set by phpnuke's cookie instead of "lang = en" as required by phpmyfaq
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

okay. Please edit the file artikel.php and remove the following

Code: Select all

if (isset($_REQUESTT["lang"])) {
	$lang = $_REQUEST["lang"];
	}
and insert this:

Code: Select all

if (isset($_GET["lang"])) {
	$lang = $_GET["lang"];
	}
if (isset($_POST["lang"]) && $_POST["lang"] != "") {
	$lang = $_POST["lang"];
	}
This should work.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Majestic
Posts: 3
Joined: Fri May 28, 2004 5:00 pm

Post by Majestic »

that works.. however there are some other php, like printer friendly and pdf and some other php files that uses $_REQUEST["lang"] including the admin section and also not taking the "lang = en"
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I'll fix this everythere and release a new version as soon as possible.

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