Upgrading 1.2.5 to 1.2.8
Upgrading 1.2.5 to 1.2.8
I would like to update a site from 1.2.5 -DEV to 1.2.8, but want to check before hand if there is anything I should know about upgrading the datebase and files.
I have already deleted phpwcms_codesnippets and know to keep a copy of the conf.inc file and css files.
Is there any known problems before i upgrade, and can i just copy all other files over existing structure?
Thanks very much.
I have already deleted phpwcms_codesnippets and know to keep a copy of the conf.inc file and css files.
Is there any known problems before i upgrade, and can i just copy all other files over existing structure?
Thanks very much.
- Oliver Georgi
- Site Admin
- Posts: 9900
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
After upgrading database and copying files over, I now have this error upon logging into backend:
"Notice: Undefined index: REQUEST_URI in D:\root\include\inc_lib\backend.functions.inc.php on line 249"
and this shows up on the website itself:
"Notice: Undefined index: REQUEST_URI in D:\root\include\inc_module\mod_bad-behavior\bad-behavior\core.inc.php on line 116"
Does anyone know why this has happened?
"Notice: Undefined index: REQUEST_URI in D:\root\include\inc_lib\backend.functions.inc.php on line 249"
and this shows up on the website itself:
"Notice: Undefined index: REQUEST_URI in D:\root\include\inc_module\mod_bad-behavior\bad-behavior\core.inc.php on line 116"
Does anyone know why this has happened?
- Oliver Georgi
- Site Admin
- Posts: 9900
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
- Oliver Georgi
- Site Admin
- Posts: 9900
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
- Oliver Georgi
- Site Admin
- Posts: 9900
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Ok thanks for the help, is this a new feature?
I never encountered the problem before and I didn't originally setup the site, so would have to do some digging around to find out what the problem is. It doesn't show in phpinfo() and am running PHP 5.1.2, so I can only think that I must have overwritten some setting when I updated the files.
Edit: Doing some searching I have found that when running on windows, I need to replace the 'REQUEST_URI' with 'SCRIPT_NAME' as windows doesn't support it.
This fixes the problem if you add this to the top of any affected PHP files.
I never encountered the problem before and I didn't originally setup the site, so would have to do some digging around to find out what the problem is. It doesn't show in phpinfo() and am running PHP 5.1.2, so I can only think that I must have overwritten some setting when I updated the files.
Edit: Doing some searching I have found that when running on windows, I need to replace the 'REQUEST_URI' with 'SCRIPT_NAME' as windows doesn't support it.
This fixes the problem if you add this to the top of any affected PHP files.
Code: Select all
// IIS Fix for 'REQUEST_URI' error
if (!isset($_SERVER['REQUEST_URI'])) { $_SERVER['REQUEST_URI'] = $_SERVER["SCRIPT_NAME"];
if (isset($_SERVER['QUERY_STRING'])) { $_SERVER['REQUEST_URI'] =
$_SERVER['REQUEST_URI']."?".$_SERVER['QUERY_STRING'];
}
}
- Oliver Georgi
- Site Admin
- Posts: 9900
- Joined: Fri 3. Oct 2003, 22:22
- Contact: