Hi there,
After i moved my drupal site to another server i ran into a problem that only the main page works.
I try to login and it takes me a blank page telling me that the url was not found
The same happens to all the links i have in the main page that points to a node within the site
The message error that shows in the main page is:
* warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/web80/html/:/var/www/web80/phptmp/:/var/www/web80/files/:/var/www/web80/atd/:/usr/share/php/) in /var/www/web80/html/cognovis/includes/file.inc on line 190.
* warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/web80/html/:/var/www/web80/phptmp/:/var/www/web80/files/:/var/www/web80/atd/:/usr/share/php/) in /var/www/web80/html/cognovis/includes/file.inc on line 190.
Do i need to amend $base_url in the page /sites/default/settings.php
I tried that but i has not made effect.
cheers,
Comments
.
Some hosts have a different structure. When you move the site from one to another, it's best to check to make sure it's all in the same place (starting from server root).
You might have to flush caches. Dunno exactly if Drupal keeps track of info relevant to this, but it can't hurt. Except that you can't log in, so you'd have to clear them in the database. Not quite fun, that...
Realpath's a PHP function (so not a Drupal one) returning the absolute path of a file. My guess is that it's causing conflicts with something that's in cache, which you brought over when transfering the database. Taking that out of the cache should fix the issue. I'm quite interested to know what exactly's doing this, though.
...
I verified the paths and they are fine. Even because the main is working fine (i.e. css, images, javascripts and etc)
I tried to do what you told "to clean the cache"
However, as i can not log in to clear the cache directly in the new instance.
I cleaned it in the old instance, created the db dump file right after it.
Then i imported the dump to the new instance.
But it didn't work.
any enlightening idea?
Sir, is this solved? Because
Sir, is this solved? Because I'm facing the same problem.