[Résolu] Changer la variable BaseUrl (temp_directory)

Catégories:

Salut all,

Voila, j’ai migré un site drupal de mon serveur local vers mon hébergeur. Tout s’est bien passé, mais j’ai un petit problème :

ça fait 2 fois que je rencontre un problème de liens de fichiers car il cherche un fichier situé sur C:\wamp.
J’ai eu ce problème avec le module ImageCache et le module Upload.

J’imagine donc qu’une variable n’a pas été changée (plus précisemment la variable baseUrl peut-être ?)

Merci d’avance !!! a+++

EDIT : problème résolu : http://mrphp.com.au/code/project/drupal/drupal-5/found-problem-imagecach…

au cas où le lien meurre :


I was building a site for a client and all imagecache stopped working before I uploaded to the live server.

When I uploaded, all of a sudden imagecache stopped working. I checked the usual things (permissions, original image exists) and everything was fine.

After some debugging I found that :

* imagecache_cache() checks to see if the file exists using file_create_path()
* file_create_path() checks the temp directory before it checks the files/ directory using file_directory_temp()
* file_directory_temp() gets the temp directory using variable_get('file_directory_temp', NULL)

Great ! So I go into the variables table and delete file_directory_temp.

But the problem is still there. Mre debugging :

* variable_get() can load variables from cache and not from the database using cache_get('variables', 'cache')

Ok, so I go into the cache table and delete variables.

Problem Solved !

Syndiquer le contenu