The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I have a php-direct eval page with some drop-downs and a Submit button on the same page / same code. The page sends POST data to/from itself. It has been up running for a month after help I got here.
Now, after 4.0.7 I have problems IF I am logged on to the site, I get the following message after hitting the submit button / posting HTML Code:
vBulletin Messege: Your submission could not be processed because you have logged in since the previous page was loaded. Please push the back button and reload the previous window. If I am NOT logged in, I do not get that message but POST data is not read by the code: PHP Code:
A secuity token is generated like this. PHP Code:
Any clues? The page is here: http://www.41hz.com/forums/content.php?253-TSdb |
|
#2
|
||||
|
||||
|
I keep trying stuff and getting no results. But, to be honest, I have no idea what to select that would give results. Can you tell us what we should select that should give results but isn't.
|
|
#3
|
|||
|
|||
|
Thanks for looking,
Any selection of drop-downs should be valid, if you use just one single drop-down. For example brand name only (for example Beyma, which there are about 100 record in the db) or nominal size only (for examlpe size 12 which there are about 300 records). The drop-downs are directly based on SQL "Select Distinct" queries on the db, which is a single table, so they must excist, or they would not be in the drop-down. Selections do not return any results because values of the drop-down POST values are for some reason empty in php now. For example the drop-down named "brand" and the value should be read by: PHP Code:
PHP Code:
I can also verify that by assigning a value to $brand in the code, then all works as expected. I have also tried adding arguments to the URL, but that does not work either. I think I could do a direct url of type <mypage>&brand=Beyma before, but not now. And it has worked for a month..... So my conclusion so far is that something changed that makes this php code invalid: PHP Code:
|
|
#4
|
||||
|
||||
|
Have you tried just $vbulletin->input->clean_gpc or $db->input->clean_gpc or any other variations there?
|
|
#5
|
|||
|
|||
|
what's the code you're using?
Could you post an link to your page so we could check it? |
|
#6
|
|||
|
|||
|
Quote:
PHP Code:
Fatal error: Call to a member function clean_gpc() on a non-object in /var/www/41hz/forums/tsdb/read_post.php on line 2 and PHP Code:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /var/www/41hz/forums/tsdb/read_post.php on line 2 and PHP Code:
--------------- Added [DATE]1285241373[/DATE] at [TIME]1285241373[/TIME] --------------- Ragtek, you helped me with this one before: https://vborg.vbsupport.ru/showthread.php?t=249002 It worked. The link to the site / page is in a previous post. This code reads the various posted variables: PHP Code:
PHP Code:
PHP Code:
Right now, the code types out the query string on the web page, at the bottom, to verify this. |
|
#7
|
|||
|
|||
|
I have found now that this is a caching problem. Not solved. There is cached content displayed, even when the cache time has been set to zero, and POST arguments have changed.
A new thread, trying to isolate the problem, not yet solved: https://vborg.vbsupport.ru/showthread.php?t=251402 |
![]() |
|
|