DariusClay Posted July 30, 2011 Share Posted July 30, 2011 Ok, so I've been playing around today installing Prestashop version 1.4.4 on my localhost (using WampServer version 2.1) and just could not get past step 2. I've found the cause and a quick fix in case someone else comes across the same problem. Basically the configuration tests were failing while checking to see if directories were writable. Reviewing the apache error logs it was giving results like below (where mysite.com is the name of the folder where PrestaShop is located, and mysite.loc is the server name of the virtual host) : [Fri Jul 29 19:53:49 2011] [error] [client 127.0.0.1] PHP Warning: filetype() [<a href='function.filetype'>function.filetype</a>]: Lstat failed for D:\\wamp\\sites\\mysite.com\\install/../translations/itpdf.php in D:\\wamp\\sites\\mysite.com\\classes\\ConfigurationTest.php on line 113, referer: http://www.mysite.loc/install/ [Fri Jul 29 19:53:49 2011] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://www.mysite.loc/install/ [Fri Jul 29 19:53:49 2011] [error] [client 127.0.0.1] PHP 1. {main}() D:\\wamp\\sites\\mysite.com\\install\\model.php:0, referer: http://www.mysite.loc/install/ [Fri Jul 29 19:53:49 2011] [error] [client 127.0.0.1] PHP 2. include_once() D:\\wamp\\sites\\mysite.com\\install\\model.php:71, referer: http://www.mysite.loc/install/ [Fri Jul 29 19:53:49 2011] [error] [client 127.0.0.1] PHP 3. ConfigurationTestCore::check() D:\\wamp\\sites\\mysite.com\\install\\xml\\checkConfig.php:67, referer: http://www.mysite.loc/install/ [Fri Jul 29 19:53:49 2011] [error] [client 127.0.0.1] PHP 4. ConfigurationTestCore::run() D:\\wamp\\sites\\mysite.com\\classes\\ConfigurationTest.php:34, referer: http://www.mysite.loc/install/ [Fri Jul 29 19:53:49 2011] [error] [client 127.0.0.1] PHP 5. call_user_func() D:\\wamp\\sites\\mysite.com\\classes\\ConfigurationTest.php:40, referer: http://www.mysite.loc/install/ [Fri Jul 29 19:53:49 2011] [error] [client 127.0.0.1] PHP 6. ConfigurationTestCore::test_translations_dir() D:\\wamp\\sites\\mysite.com\\classes\\ConfigurationTest.php:40, referer: http://www.mysite.loc/install/ [Fri Jul 29 19:53:49 2011] [error] [client 127.0.0.1] PHP 7. ConfigurationTestCore::test_dir() D:\\wamp\\sites\\mysite.com\\classes\\ConfigurationTest.php:194, referer: http://www.mysite.loc/install/ [Fri Jul 29 19:53:49 2011] [error] [client 127.0.0.1] PHP 8. ConfigurationTestCore::test_dir() D:\\wamp\\sites\\mysite.com\\classes\\ConfigurationTest.php:114, referer: http://www.mysite.loc/install/ [Fri Jul 29 19:53:49 2011] [error] [client 127.0.0.1] PHP 9. filetype() D:\\wamp\\sites\\mysite.com\\classes\\ConfigurationTest.php:113, referer: http://www.mysite.loc/install/ It gets down to the root cause : the php function filetype() failed in classes/ConfigurationTest.php on line 113. Still not sure why perhaps the parameter it was being passed is a mix between absolute and relative paths (D:\\wamp\\sites\\mysite.com\\install/../translations/itpdf.php), but the function is_dir() works perfectly. It's a quick fix though, just change line 113 from this if (@filetype($dir.$file) == 'dir' AND $file != '.' AND $file != '..') to this if ($file != '.' AND $file != '..' AND @is_dir($dir.$file)) Rerun the install script and goes thru smoothly Link to comment Share on other sites More sharing options...
olea Posted July 30, 2011 Share Posted July 30, 2011 You should post in the bugtracker Link to comment Share on other sites More sharing options...
DariusClay Posted August 3, 2011 Author Share Posted August 3, 2011 Just did, thanks for the tip... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now