Post by pcsxk » Thu Apr 03, 2008 12:28 pm

I'm a newbie to this system. A friend of mime asked me to help him solve a small problem.
He always get a php notice, the notice is as follows:
PHP Notice: Undefined index: REQUEST_URI in [FULL_PATH]\library\session\session.php on line 67
So I made a tiny test ---  print_r($_SERVER), the conclusion is that his host(IIS 5.1) does not support variable $_SERVER['REQUEST_URI'].
At last, I replaced $_SERVER['REQUEST_URI'] with empty string '' or with variable $_SERVER['SCRIPT_NAME'] temporarily, it worked fine.
Last edited by pcsxk on Thu Apr 03, 2008 12:32 pm, edited 1 time in total.

Newbie

Posts

Joined
Thu Apr 03, 2008 12:08 pm

Post by bruce » Thu Apr 03, 2008 1:23 pm

Your friend would be better off using apache, even on a windows host. Have a look at xampp http://www.apachefriends.org/en/xampp-windows.html as an easy setup for Apache, MySQL and PHP on windows machines. OpenCart does not like IIS, as you have seen.

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by pcsxk » Thu Apr 03, 2008 2:54 pm

many thanx, bruce
I doesn't like IIS, either. ;D

Newbie

Posts

Joined
Thu Apr 03, 2008 12:08 pm

Post by lev » Fri May 09, 2008 12:59 am

Bruce, I am in an environment where i am attached to IIS (not by choice :)) but need to have open cart working..
can you tell me the issues you have incountered with IIS and OpenCart; I guess Ill have to make some workarounds :-\

lev
New member

Posts

Joined
Wed Apr 30, 2008 10:47 pm

Post by pim » Fri May 09, 2008 3:40 am

try this workaround on IIS.

pim
Newbie

Posts

Joined
Fri Mar 14, 2008 5:52 am

Post by Luvz2drv » Fri May 09, 2008 7:02 am

ISS you can still point to a virtual IP and port..  set xamp it run on port 81 or something and point ot the virtual ip

as i have a inhouse server here with iss and xamp using ISS to point to the right place.

Global Moderator

Posts

Joined
Fri Mar 21, 2008 10:58 am

Post by lev » Thu May 15, 2008 12:27 am

** For Anyone running OpenCart on IIS will need to follow pim's workaround (http://neosmart.net/blog/2006/100-apach ... d-windows/)

I had also encountered several places in the opencart package where iis would not allow me to do nested array parsing so statements like

Code: Select all

(int)end(explode('_', $request->get('path'))))
became

Code: Select all

$myCat = explode('_', $request->get('path'));
(int)end($myCat))
Not sure y ???

lev
New member

Posts

Joined
Wed Apr 30, 2008 10:47 pm
Who is online

Users browsing this forum: No registered users and 3 guests