henkbart Posted November 19, 2013 Share Posted November 19, 2013 (edited) After installing PS 1.5.6.1 i got the following errors: [Wed Nov 20 00:10:06 2013] PHP Warning: is_dir(): open_basedir restriction in effect. File/httpdocs/modules/.htaccess/) is not within the allowed path(s): (/httpdocs/:/tmp/) in /httpdocs/classes/module/Module.php on line 1261, referer: http://shop3.signalsoft.nl/admin9197/index.php?controller=AdminModules&token=9222af6f57063109da1331d2861d8200[Wed Nov 20 00:10:06 2013] PHP Warning: is_dir(): open_basedir restriction in effect. File(/httpdocs/modules/index.php/) is not within the allowed path(s): (/shop3/httpdocs/:/tmp/) in /httpdocs/classes/module/Module.php on line 1261, referer: http://shop3.signalsoft.nl/admin9197/index.php?controller=AdminModules&token=9222af6f57063109da1331d2861d8200 I didn't had them in 1.5.6.0 Is this a bug or...... Edited November 19, 2013 by henkbart (see edit history) Link to comment Share on other sites More sharing options...
sebweb Posted November 25, 2013 Share Posted November 25, 2013 Edit classes/module/Module.php on line 1261 and add @ if (@is_dir(_PS_MODULE_DIR_.$name.DIRECTORY_SEPARATOR) && Tools::file_exists_cache(_PS_MODULE_DIR_.$name.'/'.$name.'.php')) 2 Link to comment Share on other sites More sharing options...
maesal Posted November 26, 2013 Share Posted November 26, 2013 It didn't work for me Link to comment Share on other sites More sharing options...
henkbart Posted November 26, 2013 Author Share Posted November 26, 2013 Works for me!!! :rolleyes: Thanks Link to comment Share on other sites More sharing options...
mlarbi Posted December 3, 2013 Share Posted December 3, 2013 Thanks!! you are a fenomenon sebweb!! Link to comment Share on other sites More sharing options...
iwor111 Posted December 7, 2013 Share Posted December 7, 2013 Great It work Error message gone Thankz Link to comment Share on other sites More sharing options...
WDacrentas Posted December 12, 2013 Share Posted December 12, 2013 Thanks Link to comment Share on other sites More sharing options...
JayBEE Posted December 25, 2013 Share Posted December 25, 2013 (edited) In PHP, prefixing a function call with '@' hides any errors returned by that call. This is not good practice. Better practice is to handle the error in the code. However in this case, I believe the problem is with settings in your php.ini. Some webhosts sadly do not allow you to maintain a php.ini in your domain. Edited December 25, 2013 by JayBEE (see edit history) Link to comment Share on other sites More sharing options...
pppplus Posted January 2, 2014 Share Posted January 2, 2014 I think it's an error : line with problem in 1.5.6.1 : if (is_dir(_PS_MODULE_DIR_.$name.DIRECTORY_SEPARATOR) && Tools::file_exists_cache(_PS_MODULE_DIR_.$name.'/'.$name.'.php')) same line on 1.5.6.0 if (is_dir(_PS_MODULE_DIR_.$name) && Tools::file_exists_cache(_PS_MODULE_DIR_.$name.'/'.$name.'.php')) Le .DIRECTORY_SEPARATOR (/) appliqué au fichier .htaccess pose problème !! So, as JayBEE said, it's not a good idea to put @, because it only hide the error I think it's better to take back the line in 1.5.6.0 Link to comment Share on other sites More sharing options...
arnolem Posted January 14, 2014 Share Posted January 14, 2014 Hello, I have the same problem after updating from 1.5.1 to 1.5.6. I correct the problem by adding the following line on classes/module/Module.php : // Line 1261 // Start Patch if(is_file(_PS_MODULE_DIR_.$name)){ continue; } // End of Patch if (is_dir(_PS_MODULE_DIR_.$name.DIRECTORY_SEPARATOR) && Tools::file_exists_cache(_PS_MODULE_DIR_.$name.'/'.$name.'.php')) 1 Link to comment Share on other sites More sharing options...
Pronux Posted January 17, 2014 Share Posted January 17, 2014 Had the same problem, went back to 1.5.6.0 and now it works again Link to comment Share on other sites More sharing options...
noideawhoami Posted January 17, 2014 Share Posted January 17, 2014 Silencing errors with @ is very bad for performance aswell Link to comment Share on other sites More sharing options...
Pronux Posted January 17, 2014 Share Posted January 17, 2014 The question is: if this is an error, will it be fixed in PS 1.5.6.2 or 1.5.7 ....? Link to comment Share on other sites More sharing options...
JeffV Posted February 16, 2014 Share Posted February 16, 2014 worked for me, thank you! Link to comment Share on other sites More sharing options...
Recommended Posts