The site_name in pages generated to anonymous users are showing 'Drupal' in stead of my own site name. Defining the site_name variable in \sites\default\settings.php doesn't make any difference. No new modules have been installed or uninstalled before this occurred, nor have been any changes to the website itself.

The strange thing is that the 'Drupal' site name is only displayed to anonymous users, logged in users see the correct site name displayed next to the page title. Couldn't find anything related in user permissions.

I don't think it's an database issue because logged in users see everything correctly. Does anyone have an idea or suggestion?

Comments

dave reid’s picture

So you have the site name set in admin/settings/site-information? Try going to admin/settings/performance and hitting the 'Clear cache' button.

ainigma32’s picture

Status: Active » Fixed

I'm going to assume that Dave Reid provided the needed info. Setting to fixed.

Feel free to reopen if you think that is wrong.

- Arie

Simx0r’s picture

Hi guys,

I've run the update.php, cleared caches, didn't help. That is why I posted this. The website have been running for a long time. Did not install any new modules or change something important. I had to hack core to put the sitename there :( At this time I have a upgrade to 6.8 planned so I'll see what that does. It has to do with the site_name variable wich isn't correctly fetched for anonymous users.
Keep you posted..

ainigma32’s picture

Status: Fixed » Postponed (maintainer needs more info)

OK setting back to active.

Good luck with the update.

- Arie

dave reid’s picture

Based on the fact that none of us have had this problem, I'm inclined to say this is probably either a problem with a contrib module, or your hack to core. You'll be able to help us if you remove the hack and let us know if your site name is shown properly in admin/settings/site-information.

ainigma32’s picture

@simx0r: Did you manage to update to the latest version of D6? And did that resolve the issue?

- Arie

ainigma32’s picture

Status: Postponed (maintainer needs more info) » Fixed

Looks like simx0r won't be posting any feedback so I'm setting this to fixed.

Feel free to reopen if you think that is wrong.

- Arie

proutledge’s picture

Status: Fixed » Active

Hi guys

I am experiencing the same issue as simx0r.

Fresh install. Latest version of Drupal (6.9) PHP (4.4.9) MySql (5.1)

On 'Site Information' Page when any other field is modified it is comitted and applied ok. When page reloads value is present in field.

However when I enter Name: xyz (Replacing My Drupal Site) and click save, the page reloads with Name = My Drupal Site.

I have tried flushing the cache and running update.php. I have made no hacks to the core and am to be honest stumped.

Any help greatly appreciated.

Thanks

Pete

ainigma32’s picture

Status: Active » Postponed (maintainer needs more info)

Check your settings.php file. Do you see anything that looks like:

$conf = array(
   'site_name' => 'My Drupal Site',

In stead of

#$conf = array(
#   'site_name' => 'My Drupal Site',

- Arie

proutledge’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

DOH!

Fxed. Thank you! My mind forgot about that once I had configured it to work with the database.

Thanks Again.

Pete.

Closed.