I searched the forums for this but I can't seem to find a solution.

I have a brand new install of 4.6.2 and any time that I update something in the administration section, "The configuration options have been saved" repeats itself and sticks on every page I go to afterwards. If I update something else I will now have it repeated twice. And a third. And so on until I logout and log back in. Quite annoying.

I've uninstalled all my modules, turned cacheing on and off, but can not seem to fix this...

Comments

benshell’s picture

It sounds like drupal_set_message() in bootstrap.inc works, but drupal_get_messages() isn't clearing the $_SESSION['messages'] variable. I'm guess that this is related to your PHP.ini settings, but I'm sorry I can't be more specific. I haven't seen this problem before.

maxferrario’s picture

The same occurs in my installation. I'm running Drupal 4.6.2 on windows XP + apache 2.0.54 and PHP 5.0.4.

The only way to remove the annoying messages repetition is to put register_globals 1 in .htaccess file. See also http://drupal.org/node/24807.

It's not clear to me wether Drupal should be running with register_globals On or Off: the documentation say it should be Off, as is the .htaccess file shipped with Drupal.

To remove the messages, i will temporarily skip to register_globals = Off.

Gabriel R.’s picture

Max, I also have this issue with a fresh 4.6.2 installation. Changing "php_value register_globals" to "1" didn't fix the problem.

Please help.

-- NO, don't read this signature!

harry slaughter’s picture

lest anyone be mislead. turning register globals on will prevent this bug from appearing.

you need to set:

register_globals = On

in your /etc/php.ini file and then restart apache.

the repeated messages will go away.

whether or not you want to run with register_globals on is another matter. it's generally not a good idea to use register_globals.

the correct solution is for the author of the bootstrap module to fix the bug.

in a perfect world, developers would use default php and apache settings.

if a module requires modification of these settings it would be documented along with the module (and the module wouldn't ship with the core package).

but, surprise, it's an imperfect world.

--
Devbee - http://devbee.net/

rooey’s picture

i see this issue in 4.5.3 - register_globals On is set for me.

Perhaps we've overlooked something... I'll keep looking.

lotherius’s picture

Any news on this? Very annoying....

harry slaughter’s picture

it should be fixed in the upcoming 4.7 if someone doesn't re-break it.

meanwhile, i'd comment that section out of whatever template your site uses so that it's always hidden.

--
Living in fear of patch hell?
Want a stable development environment?
Support Dev Releases: http://drupal.org/node/30903
Support Code cleanup too: http://drupal.org/node/28540

--
Devbee - http://devbee.net/

thegleek’s picture

my register_globals has been turned on for years, and it still don't
make your solution work. this is a snippet of my php.ini:

; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.

register_globals = On

mind you - everyone isn't running the latest php or apache.

my specs are:

PHP Version 4.1.2
Apache/1.3.26

but drupal 4.6.3 works flawlessly with my setup, all except
the repeated admin comments...

so yeah i tried this modification out and NOW it works, well
it doesnt display ANY comments... but i dont care, it's less
annoying then seeing 100s of comments....:

Lines 632-638 from ../includes/bootstrap.inc:

function drupal_get_messages() {
  $_SESSION['messages'] = "";
  $messages = drupal_set_message();
  $_SESSION['messages'] = array();

  return $messages;
}

i added the $_SESSION['messages'] = ""; line...
hopefully this doesnt break the comment or content system...

thank you

thegleek’s picture

fixed - the right way!

ok i know i'm replying on my own post, but i need to rectify
something here.... whilest the solution i provided above works,
it's not the right way to go about this...

instead, edit your .htaccess file and change:

# Override PHP settings. More exist in sites/default/settings.php, but
# the following cannot be changed at runtime. The first IfModule is
# for Apache 1.3, the second for Apache 2.
<IfModule mod_php4.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                1
  php_value session.auto_start              0
</IfModule>

php_value register_globals from 0 to 1

and dont forget to restart yer apache, the way i do it is:

sudo apachectl graceful

...using debian linux. thats it! and it works!

maxferrario’s picture

Sorry, I made a mistake in my post: I really meant "I will temporarily skip to register_globals = On" in my last sentence :-(

pgregg’s picture

RikiB’s picture

This is such an old post to be brining up, but Im having the exact same problem with drupal 6.13. It just started happeneing and turning register globals on I dont think is an option anymore.

If anyone has any idea bout this very annoying problem, please help!!

- Riki

RikiB’s picture

well I tracked it down to the administration menu module, grrrr.

jayboodhun’s picture

After 2 days of fighting with this bug the administration menu indeed was the one causing the problem. Thanks Riki.
That was really really helpful

ocking’s picture

Thanks for your findings. I would appreciate it if you can tell me how to resolve it.
btw, why it also affected user with no admin menu permission ?
many thx riki

genfoch01’s picture

I see the above issue has been closed. I am having this issue and have found that turning off the admin menu does seem to fix my problem. too bad, it was/is a time saver. Since the issue with admin menu is closed, where do I go from here?

I have drupal 6.22 and admin menu 6.x.1.8

thanks.

ycwjjjj’s picture

I got this problem as well with Drupal 6.15 and in xampp in Windows.

zdean’s picture

subscribe

tandersonmd’s picture

subscribe