Jump to content

[résolu] Erreur sur Class PrestaShopAutoload.php


Recommended Posts

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 by ID- (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...