Hey guys,

Awesome work on this module, it's a cracker!!

I have it all setup and working correctly (I think), but whenever I view domains on sites other then my primary, I get this message before any content (only once).

"You are viewing . This form may need to be entered from
"

Where is my domain and
is the primary domain.

Any way of turning this message off? I searched through the issues but couldn't find a mention of it.

Thanks!

CommentFileSizeAuthor
#5 stupid-typo.patch876 bytesagentrickard

Comments

sn0rcha’s picture

Tags got ommited.. should read;

"You are viewing 'domain'. This form may need to be entered from 'primary domain'"

Where 'domain' is my domain and 'primary domain' is the primary domain.

bennos’s picture

same problem, after update from RC6 to RC 7.

no config changes.

agentrickard’s picture

Assigned: sn0rcha » Unassigned

This message should only be displayed on form pages -- it is implemented through hook_form_alter() -- and does not appear on default Drupal.

Are you using some module or custom code that causes a form to appear on these pages?

For debugging, watch the function domain_warning_check().

These are the forms on which this message should appear by default:

Array ( 
[0] => system_admin_theme_settings 
[1] => system_date_time_settings 
[2] => system_site_information_settings 
[3] => system_site_maintenance_settings 
[4] => locale_languages_overview_form 
[5] => menu_configure 
[6] => system_themes_form 
[7] => system_theme_settings ) 
mischan’s picture

I think the reason for this message always showing up is that you are using the assignment operator instead of the comparison (==) in the if where you check for the form_id = 'domain_batch_form'. After changing it in domain_warning_check to "==" everything works fine.

agentrickard’s picture

Status: Active » Fixed
StatusFileSize
new876 bytes

I hate typos. Dammit.

agentrickard’s picture

After a day or two, I'll roll a new rc, or maybe a point release.

sn0rcha’s picture

Thanks for the responses guys, glad it wasn't just me!

Applied the patch, working a treat. Thanks again for such a wonderful module!

VinceW’s picture

Just another confirmation to let you guys know you where on the right track.

Had the same message. Applied the patch on RC7 today. Worked like a charm.

Tnx for all the fab. work agentrickard
You have a gem in your hands and making it into a jewel :-)

Best,
VinceW

-=[ Your Information Matters ]=-

rornelas’s picture

Are there instructions or a file name that needs to be changed? Looking to apply the fix to my sites as well, but am not sure which file needs to be updated. thanks

mischan’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.