ID- Posted August 12, 2014 Share Posted August 12, 2014 (edited) Bonjour, Depuis quelques jours j'ai cette erreur qui s'affiche. Warning: tempnam(): open_basedir restriction in effect. File(/var/www/idgolfcache) is not within the allowed path(s): (/var/www/idgolf:/tmp) in /var/www/idgolf/classes/PrestaShopAutoload.php on line 151 Voila un extrait du fichier PrestshopAutoload.php 149 // Write classes index on disc to cache it 150 $filename = _PS_ROOT_DIR_.PrestaShopAutoload::INDEX_FILE; 151 $filename_tmp = tempnam(dirname($filename), basename($filename.'.')); 152 if ($filename_tmp !== false && file_put_contents($filename_tmp, $content) !== false) 153 { 154 if (!@rename($filename_tmp, $filename)) 155 unlink($filename_tmp); 156 else 157 @chmod($filename, 0666); 158 } 159 // $filename_tmp couldn't be written. $filename should be there anyway (even if outdated), no need to die. Si vous aviez une idée ! Merci, Laurent Edited August 12, 2014 by ID- (see edit history) Link to comment Share on other sites More sharing options...
fapyfapo Posted August 12, 2014 Share Posted August 12, 2014 Bonjour, regarde sur ce post : http://www.prestashop.com/forums/topic/349404-r%C3%A9solu-message-erreur-warning-tempnam/ je pense que c'est la même chose. Link to comment Share on other sites More sharing options...
ID- Posted August 12, 2014 Author Share Posted August 12, 2014 Merci pour l'info. C'est parfait l'erreur n'apparait plus. Bonne journée, Laurent 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