Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: rigoli on August 27, 2006, 05:21:03 AM

Title: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: rigoli on August 27, 2006, 05:21:03 AM
Hello,

I have problems with cookies (I think so)... I've installed the SMF 1.1 RC3 on my website and I use Flash Chat (the one for $5), although I didn't have problems with SMF 1.1 RC2 version.

The problem is that after I click on chat (initiation of Flash Chat), I get the following error message: "Invalid request variable" and white page. I cannot use forum so long until I delete the cookie of Flash Chat - thereafter I can use forum normally.

What can I do to change that problem?!

Thanks
???
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: xenovanis on August 27, 2006, 05:23:56 AM
Have you checked whether Flash chat can be integrated with 1.1 RC3?
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: rigoli on August 27, 2006, 09:18:25 AM
Quote from: xenovanis on August 27, 2006, 05:23:56 AM
Have you checked whether Flash chat can be integrated with 1.1 RC3?

Hello,

No, as I don't know where I can do that. In the case you are referring to software maker, I doubt that they tested it on your new release.

It was working on previous version 1.1 RC2.

Thanks
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: xenovanis on August 27, 2006, 09:26:33 AM
Maybe here
http://forum.tufat.com/forumdisplay.php?f=30

or here
Tutorial: how to COMPLETELY integrate FlashChat into SMF so you have a cool CHAT (http://www.simplemachines.org/community/index.php?topic=27137.0)
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: rigoli on August 27, 2006, 09:39:08 AM
Quote from: xenovanis on August 27, 2006, 09:26:33 AM
Maybe here
http://forum.tufat.com/forumdisplay.php?f=30

or here
Tutorial: how to COMPLETELY integrate FlashChat into SMF so you have a cool CHAT (http://www.simplemachines.org/community/index.php?topic=27137.0)

Hello,

Thanks, but I already installed it and it was working with previous version of SMF (I will never again make updates or upgrades). I also made changes in updated files, as this update is rewriting most of the files.

I've also registered in Tufat forum and I'm waiting on their confirmation email.

I hope that I won't need to delete the RC3 and install back the RC2!

Thanks anyway
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: ^DooM^ on August 27, 2006, 12:24:00 PM
I wont upgrade to RC3 because I have modified my forum so much :) Go back to RC2 my friend there was nothing wrong with it in my opinion.
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: Thantos on August 27, 2006, 12:57:08 PM
Find
Code (QueryString.php) Select

foreach (array_merge(array_keys($_REQUEST), array_keys($_COOKIE), array_keys($_FILES)) as $key)

Replace with

foreach (array_merge(array_keys($_REQUEST), array_keys($_FILES)) as $key)
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: rigoli on August 27, 2006, 01:31:08 PM
Hi,

Thanks, but it didn't helped.
::)
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: rigoli on August 27, 2006, 02:12:21 PM

PS I would like to add one interesting information... I use FireFox and I've installed additional extension (IE Tab - enables me to use the embedded IE engine within Mozilla/FireFox). One tab is opened in just mentioned mode and one as usual tab. This way I can stay connected or can use forum and at same time Flash Chat.

Why is that so?! I hope that this will help you further, as this Flash Chat is excellent and simple chat software. It's definitely something wrong, because of new version and I intend to delete the RC3 if I will not be able to find a solution for Flash Chat.

Regards
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: Thantos on August 27, 2006, 02:22:34 PM
Ok try this:
Code (QueryString.php) Select

// Same goes for numeric keys.
foreach (array_merge(array_keys($_REQUEST), array_keys($_COOKIE), array_keys($_FILES)) as $key)
if (is_numeric($key))
die('Invalid request variable.');

Comment it out by putting /* before it and */ after it.  Like this:

/*
// Same goes for numeric keys.
foreach (array_merge(array_keys($_REQUEST), array_keys($_COOKIE), array_keys($_FILES)) as $key)
if (is_numeric($key))
die('Invalid request variable.');
*/


There is only one other spot where it'll say Invalid request variable and if it does it there you don't want to be using that mod IMO.
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: rigoli on August 27, 2006, 02:32:06 PM

Where should I paste that?! Anywhere in the QueryString.php?!
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: J. Williams on August 27, 2006, 02:33:27 PM
He said to comment this out
Quote// Same goes for numeric keys.
   foreach (array_merge(array_keys($_REQUEST), array_keys($_COOKIE), array_keys($_FILES)) as $key)
      if (is_numeric($key))
         die('Invalid request variable.');
so replace it with the 2nd code provided byThantos
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: rigoli on August 27, 2006, 02:42:23 PM

Thanks a lot, I really appreciate your FAST help! This last change has helped and you made more then one guy happy with this simple post  :D  I wish you all the best in your business and personal life.

I would also like to thank J J Williams too for jumping in and helping others.

Kind regards

Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: josemrivera on September 29, 2006, 09:28:13 AM
Hello,

I did what Thantos said and its working perfectly.

Awesome. Many thanks!
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: contreras on October 05, 2006, 07:12:43 PM
i'm newbbie...

I commented the section un QueryString.php... but what code must I add in the index.template.php to show flashchat inside smf 1.1 rc3??

thanks
Title: Re: Error message: Invalid request variable (Flash Chat and SMF 1.1 RC3)
Post by: ZeusChicago on December 17, 2006, 02:42:40 PM
FYI.

For anyone that runs into this error message while trying to integrate E107 with SMF, The above fix removing the numeric parameter check  will fix the Invalid Request Variable when trying to load a custom page. Its becasue of the way E107 passes page names , i.e. http://www.yadayada.com/page.php?1

Zeus

p.s sorry for putting this in the thread, but I wanted to leave a searchable string for others that might run into this with E107