Hi,

When i try to change a setting for a specific domain on any of the settings pages for drupal and select the domain i want to save the changes for it says it saved successfully but the changes are not saved

if i select save for all domains it works fine, i have tried uninstalling domain config and domains settings completely and reinstalling them and it does not change anything i have also tried using the more recent domain access modules with the change

using drupal 7.19

Comments

human1101’s picture

I am able to change the the value for the default domain from the default domain. but even from there i cannot change any other values

i guess i could change the default domain to the one i want to change every time i want to change something

aslo i changed to the dev version to see if that made a difference and it did not.

human1101’s picture

also as a test i truncated the domain_conf table and tried to save for a domain. it added a new entry for the domain. so it seems to be writing the settings in but not recalling them correctly instead inheriting the settings from the default domain

agentrickard’s picture

Category: bug » support

The settings form will pull the settings for whatever domain you are currently on. If you are one domain 1 and save to domain 3, domain 1's settings will be shown in the form when it refreshes.

That is by design. It is an advanced (and useful) shortcut feature that expects you to be able to keep track of the settings you are saving.

You can always disable the Domain Settings module and just use Domain Conf.

human1101’s picture

hi agentrickard, i have been using this module for a while now and understand that it works like this, the problem is that it is not saving the settings, if i save for domain 3 or 16 or 1 or whichever when i navigate to that form on the other domain that i saved for the settings have not been saved

if it was working like you stated i would have been happy and not posted, it appears to be the same for all editions i the 7.3 tree

thanks for your time

agentrickard’s picture

Category: support » bug

Odd. What form, for example, is not working for you?

human1101’s picture

all forms seem to not work but the one i noticed it on was paypal webstandard settings for ubercart, it seems to save the settings but not recall them back. eg changes the domain_conf table but when i load the domain i expect to have changed it just gives me the settings from the default domain if you like i can set up a test account as some of the dev is available to look at

agentrickard’s picture

Category: bug » support

Take a look at the PHP code for that paypal form, if the form uses any submit handler other than system_settings_form_submit(), then there is processing that will not work with the Domain Settings module.

There are settings for this module that allow you to disable the per-domain settings form on incompatible forms like this one, and there is no way to "fix" it. Domain Settings only works by mirroring the logic in system_settings_form_submit(). There is no practical way for it to account for other submit handlers that other modules may introduce,

In this case, you probably need custom code to enable per-domain settings, because the other module is not compatible.

human1101’s picture

it dont think thats the problem as its not just that form having a problem, and the paypal settings form always worked in the past is it possible that the form submit handler has changed in the new version of drupal 7. this is a big issue for me as its completely rendered alot of time worth of development useless as i cannot continue without the ability to have dfferent settings on different domains

i just want to say again. this is happening on all forms i have tried. it has never been a problem on any form till now and i cannot continue till i have a solution

thanks again

agentrickard’s picture

Status: Active » Postponed (maintainer needs more info)

Then I need a list of the forms that these fail for so I can replicate the issue.

agentrickard’s picture

For reference, this problem can also occur when another module also alters the settings form. The system_date_time_settings() form works fine until you install Date module, which introduces another submit handler.

You need to provide the name of the module and the path to the form that does not work as expected.

human1101’s picture

Hi Agent Rickard

After further testing i have norrowed the problem down to ubercart forms only as far as i can tell

still looking into it though

i will let you know if i come up with something

human1101’s picture

the version of ubercart in question is 7.3.2 i am updating to 7.3.3 to see if that helps with the problem

human1101’s picture

I have tracked down the problem to domain variable
http://drupal.org/project/domain_variable

thanks for the help, your comment about the date module put me in the right direction

agentrickard’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

OK. I don't believe that Domain Settings and Domain Variable are compatible. Use one or the other, not both.

human1101’s picture

it was compatible with 7.2 but has not had an upgrade maybe the dependancy tree needs to be more specific, i was trying to use domain variable to try and get some things to work

thanks for the help anyway