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.
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.
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.
** 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
became
Not sure y 
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'))))
Code: Select all
$myCat = explode('_', $request->get('path'));
(int)end($myCat))

Who is online
Users browsing this forum: No registered users and 4 guests