Open sandboxhack opened 7 years ago
Same issue
.. Kindly assist.
I'm typically a Linux/UNIX user but I just quickly installed WAMP to test this and was successful in uploading using upload.php
I installed the inventory system to: http://localhost/warehouse-inventory-system-master/
So i'd recommend downloading the latest branch, and latest WAMP and trying again.
Otherwise you can manually set these 2 lines (this is what is failing for you):
public $userPath = SITE_ROOT.DS.'..'.DS.'uploads/users'; public $productPath = SITE_ROOT.DS.'..'.DS.'uploads/products';
It sounds like your PHP version or configuration is unable to determine the SITE_ROOT
(based off of defined('SITE_ROOT')? null: define('SITE_ROOT', realpath(dirname(__FILE__)));
in includes/load.php)
or its unable to determine the Directory Seperator (or DS) (based off of define("DS", DIRECTORY_SEPARATOR);
in includes/load.php)
Parse error: syntax error, unexpected '.', expecting ',' or ';' in C:\wamp\www\inventory\warehouse-inventory-system\includes\upload.php on line 10 Call Stack
Time Memory Function Location
1 0.0005 136064 {main}( ) ..\index.php:0 2 0.0009 157688 require_once( 'C:\wamp\www\inventory\warehouse-inventory-system\includes\load.php' ) ..\index.php:3