user4088 Från Okänd Medlem sedan dec. -0001 user4088 4 maj 2017 21:48 I installed on Mac IOS localhost this software but I m getting error: Warning: require_once(/Library/WebServer/Documents/Users/user/Sites/litecart-dev/public_html/includes/compatibility.inc.php): failed to open stream: No such file or directory in /Users/user/Sites/litecart-dev/public_html/includes/app_header.inc.php on line 17 Fatal error: require_once(): Failed opening required '/Library/WebServer/Documents/Users/user/Sites/litecart-dev/public_html/includes/compatibility.inc.php' (include_path='.:/usr/local/php5/lib/php') in /Users/user/Sites/litecart-dev/public_html/includes/app_header.inc.php on line 17 How do I resolve this? I am getting blank screen if I replace the below lines: // File System define('FS_DIR_HTTP_ROOT', rtrim(str_replace("\\", '/', realpath($_SERVER['DOCUMENT_ROOT'])), '/')); // Web System define('WS_DIR_HTTP_HOME', str_replace(FS_DIR_HTTP_ROOT, '', str_replace("\\", '/', realpath(dirname(__FILE__) . '/' . '..') . '/')));
tim Founder Från Sweden Medlem sedan maj 2013 tim 4 maj 2017 23:53 §8.1 I assume you have an invalidly configured php.ini if /Library/WebServer/Documents/Users/user/Sites/litecart-dev/public_html/ is not your document root.
user4088 Från Okänd Medlem sedan dec. -0001 user4088 5 maj 2017 00:04 // File System define('FS_DIR_HTTP_ROOT', rtrim(str_replace("\\", '/', realpath($_SERVER['DOCUMENT_ROOT'])), '/')); // Web System define('WS_DIR_HTTP_HOME', str_replace(FS_DIR_HTTP_ROOT, '', str_replace("\\", '/', realpath(dirname(__FILE__) . '/' . '..') . '/')));
user4088 Från Okänd Medlem sedan dec. -0001 user4088 5 maj 2017 00:06 this is config file after install. Not sure what I have to change to make it work It does works on live server but not on local
tim Founder Från Sweden Medlem sedan maj 2013 tim 5 maj 2017 00:07 You are not supposed to "need to change" LiteCart's include/config.inc.php. I'm talking about your servers PHP.ini. I assume you have an invalidly configured php.ini if /Library/WebServer/Documents/Users/user/Sites/litecart-dev/public_html/ is not your document root.
tim Founder Från Sweden Medlem sedan maj 2013 tim 5 maj 2017 00:10 If you need to set your document root to a custom folder in litecart because your web server doesn't resolve it correctly: includes/config.inc.php define('FS_DIR_HTTP_ROOT', '/Your/actual/path/to/litecart'); define('WS_DIR_HTTP_HOME', '/');
user4088 Från Okänd Medlem sedan dec. -0001 user4088 5 maj 2017 00:15 hmm..all default settings in php.ini. Haven't change any details in there. Do you know which part I have to change or include in php.ini file?
tim Founder Från Sweden Medlem sedan maj 2013 tim 5 maj 2017 01:00 Where is your actual document root, meaning your machine's path to the web root? Is it in /Library/WebServer/Documents/Users/user/Sites/litecart-dev/public_html/ where you find your content in Finder?
Raderad Från Okänd 5 maj 2017 02:04 TiM, I can't offer any technical support here, but, Ive been following your work here for a while now and I have to commend you for your quick reaction and willing to support people. Well done.
tim Founder Från Sweden Medlem sedan maj 2013 tim 5 maj 2017 02:07 Thank you ginboomerang :) Tell me, what is a buck reaction? :b
user4088 Från Okänd Medlem sedan dec. -0001 user4088 5 maj 2017 12:43 Sorry was away. so my localhost server root is: /Users/user and website is placed in folder: /Users/user/Sites/litecart-dev Do I include into this into config.inc.php or php.ini file? define('FS_DIR_HTTP_ROOT', '/Users/user/Sites/'); define('WS_DIR_HTTP_HOME', '/'); Thank you!
tim Founder Från Sweden Medlem sedan maj 2013 tim 5 maj 2017 13:41 If your site is http://localhost/ define('FS_DIR_HTTP_ROOT', '/Users/user/Sites/litecart-dev'); define('WS_DIR_HTTP_HOME', '/'); If your site is http://localhost/litecart-dev/ define('FS_DIR_HTTP_ROOT', '/Users/user/Sites'); define('WS_DIR_HTTP_HOME', '/litecart-dev/');
user4088 Från Okänd Medlem sedan dec. -0001 user4088 5 maj 2017 13:58 Thank you for your help. define('FS_DIR_HTTP_ROOT', rtrim(str_replace("\", '/', realpath($_SERVER['DOCUMENT_ROOT'])), '/')); // Web System define('WS_DIR_HTTP_HOME', str_replace(FS_DIR_HTTP_ROOT, '', str_replace("\", '/', realpath(dirname(FILE) . '/' . '..') . '/'))); the above lines I replaced with two below lines: define('FS_DIR_HTTP_ROOT', '/Users/user/Sites/'); define('WS_DIR_HTTP_HOME', '/litecart-dev/public_html/'); My site is: http://localhost/~user/litecart-dev/public_html/ now I m getting different error: "Content Encoding Error The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. Please contact the website owners to inform them of this problem."
tim Founder Från Sweden Medlem sedan maj 2013 tim 6 maj 2017 03:16 Try turning off GZIP compression in Admin -> Settings -> Advanced. Most likely an early error is output before the output buffer initates. See logs/errors.log. I am unsure if LiteCart will function properly with username mounting. In fact I don't think it does. Try creating a virtualhost instead so /var/www/litecart-dev/ or similar points to http://localhost/litecart-dev/ Btw, you are not supposed to upload the folder public_html but the contents inside it.