Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I hit save the page refreshes and I get the form back empty. $conf['locale_custom_strings_en'] is not overidden in settings.php. I've tried to replace "The following provides a quick and easy way of replacing text.", but it is not replaced, so nothing is saved. What can I do to locate the problem?
Comments
Comment #1
cbrody CreditAttribution: cbrody commentedI have a similar issue, in that I can't save any overrides. I get the message "Your changes have been saved." but nothing is actually saved.
Comment #2
chris-cmfi CreditAttribution: chris-cmfi commented+1
Comment #3
zincdesign CreditAttribution: zincdesign commentedSame here.
Comment #4
williammikewhite CreditAttribution: williammikewhite commentedplease take a look at your settings.php file... here is an example of mine.
$conf["locale_custom_strings_en"] = array(
"string to be replaced" => "replaced string","another one to replace" =>"its replaced"
);
Comment #5
zincdesign CreditAttribution: zincdesign commentedThanks for the reply williammikewhite.
Do you have to edit the settings.php file in order for this module to work? I didn't see this in the documentation and I am sure I've used this module before without having to do so.
Comment #6
vitaleg CreditAttribution: vitaleg commented--
Comment #7
jasonabc CreditAttribution: jasonabc commentedGetting this also. Hit save, it says it saved successfully, but nothing is there. Agree with #5 - if you need to edit settings.php for this module to work why isn't this mentioned anywhere?? Bumping to major.
Comment #8
RobLoachHow's the Troubleshooting section on http://drupal.org/project/stringoverrides ? If you provide any written docs, I'd be more than happy to place them somewhere.
Comment #9
henrikdelphin CreditAttribution: henrikdelphin commentedI had a slight variation on this problem; it just wouldn't save anything. I got no messages, when I hit save, the page reloaded and the strings were back to whatever they had been before I edited them.
For some seemingly magic reason the strings were saved after I removed "overlay=" from the URL, and viewed the string override page at www.mysite.com/admin/config/regional/stringoverrides, instead of as an overlay to another page on my site.
I don't know if this is a solution to the bug posted here, but I'm posting it anyway, because this issue listing is the best hit on google for searches related to string overrides save problems, and it might be a solution for someone else too.
Comment #10
RobLoachThanks, added a note about Overlay to the project page too. Think there's anything else we should add before setting this issue to fixed? Thanks again!
Comment #11
inventlogic CreditAttribution: inventlogic commentedGot this bug on two sites using the overlay but not on a 3rd site.
I can confirm not using the overlay lets you save the String Overrides.
Comment #12
phire CreditAttribution: phire commentedI'm getting the same bug even without "overlay=", manually editing settings.php for now.
Comment #13
RobLoachI am not putting any code into this module that has to do with hand-hold Overlay. If anything, I'd recommend removing Overlay entirely #2088121: Remove Overlay.
Comment #14
pmichelazzoI'm using the 7.x-1.8+4-dev version and I can't save the strings too.
Also, my #conf['locale_custom_strings_en'][''] = array(.. is commented.
Any clue about this issue?
Thanks
Comment #15
RobLoachhttps://drupal.org/node/2225633