Upgrading 1.2.5 to 1.2.8

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
master811
Posts: 8
Joined: Fri 24. Mar 2006, 11:17
Location: UK

Upgrading 1.2.5 to 1.2.8

Post by master811 »

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.
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

no problems - there is just a little db upgrading. But no deep conversion as with upgrading form 1.1 to newer releases.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
master811
Posts: 8
Joined: Fri 24. Mar 2006, 11:17
Location: UK

Post by master811 »

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?
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

check your PHP version.
$_SERVER['REQUEST_URI'] is not set.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
master811
Posts: 8
Joined: Fri 24. Mar 2006, 11:17
Location: UK

Post by master811 »

Oliver Georgi wrote:check your PHP version.
$_SERVER['REQUEST_URI'] is not set.

Oliver
Sorry i'm still pretty new to this, where would I find this setting, its not in the conf.inc file.
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

check your phpinfo() and/or contact your provider and ask why some general values for your account are not available.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
master811
Posts: 8
Joined: Fri 24. Mar 2006, 11:17
Location: UK

Post by master811 »

Is this a new features as I didn't have the problem before i upgraded?
Am I correct in thinking its not very important as well, could I just remove the line?
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

It's important. As I told! Ask your provider.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
master811
Posts: 8
Joined: Fri 24. Mar 2006, 11:17
Location: UK

Post by master811 »

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.

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'];
}
}
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

If it helps - neccessary to place it in index.php and phpwcms.php only.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply