Hi there!
I found out a problem with my site installed on third level domain makeup.bounz.net.
The problem is that MODx remembers request variables from first request after cache cleanup, and don’t want to see any other request variables.
Problem is somewhere inside framework. Why? I’ll show you.
I use getPage snippet configured to look for "page" request variable. So, let’s use php_info(32) to see what request variables are there.
First, I insert php_info(32) at the begining of getPage snippet. Save it. Clear site cache. Open the page
http://makeup.bounz.net/?page=2. Ok. Our variable is there:
Variable Value
REQUEST["page"] 2
Let’s go now to
http://makeup.bounz.net/?page=1. And what we see? Still
Variable Value
REQUEST["page"] 2
Strange, yep?
Ok. Let’s insert the same function call in index.php:
$modx->setDebug(E_ALL & ~E_NOTICE);
echo phpinfo(32);
/* Initialize the default 'web' context */
$modx->initialize('web');
Clear cache. Go to
http://makeup.bounz.net/?page=2. Ok, they both are there
Variable Value
REQUEST["page"] 2
and
Variable Value
REQUEST["page"] 2
Let’s go to
http://makeup.bounz.net/?page=1
First php_info output shows
Variable Value
REQUEST["page"] 1
while the second (from snippet) shows
Variable Value
REQUEST["page"] 2
Oops. Value has been changed!
Even if I remove parameter from adress string second php_info() output is
Variable Value
REQUEST["page"] 2
The problem is in versions Revolution RC1 and RC2.
So. What can I do to make it work properly?
Thnx.
P.S. I made a short video.
http://www.youtube.com/watch?v=gCxl_GEXQDE
For now it is still processing by YouTube. I hope it will be avaliable soon.