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

Information importante

En raison d'un grand nombre d'inscriptions de spammers sur notre site, polluant sans relache notre forum, nous suspendons la création de compte via le formulaire de "sign up".

Il est néanmoins toujours possible de devenir adhérent•e en faisant la demande sur cette page, rubrique "Inscription" : https://www.drupal.fr/contact


De plus, le forum est désormais "interdit en écriture". Il n'est plus autorisé d'y écrire un sujet/billet/commentaire.

Pour contacter la communauté, merci de rejoindre le slack "drupalfrance".

Si vous voulez contacter le bureau de l'association, utilisez le formulaire disponible ici, ou envoyez-nous un DM sur twitter.

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!

Version de Drupal :