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.
First of all, I love the Domain Access module. Thanks for all the effort.
After upgrading to 7.x-3.10 I keep getting the following error after enabling/disabling a module:
Notice: Undefined index: path in domain_nav_menu() (regel 51 van drupal\sites\all\modules\domain\domain_nav\domain_nav.module).
I currently have the following Domain Access modules installed:
- Domain Access
- Domain Configuration
- Domain Content
- Domain Navigation
- Domain Settings
- Domain Views
I'm not using any other node access modules.
PHP version: 5.4.3
Database: MySQL 5.5.24
Any ideas on what might be causing this issue? I didn't have this issue in the 7.x-3.9 version.
Thanks in advance.
Comment | File | Size | Author |
---|---|---|---|
#8 | domain_init_check-2012410-8.patch | 813 bytes | Yaron Tal |
Comments
Comment #1
Bob_Vdl CreditAttribution: Bob_Vdl commentedThe error shows up every time I save a configuration, instead of just on the modules screen.
Comment #2
agentrickardI'll have to take a look.
Comment #3
Funksmaname CreditAttribution: Funksmaname commentedI have the same problem - very interested in this...
It doesn't seem to be causing problems as far as I can see - just appears 4 times on cron run.
thanks!
Comment #4
agentrickardThe error suggests that hook_domain_load() is not being called properly. I cannot reproduce the error, so anyone who can provide steps to replicate would be a hero.
I suppose it is possible that the change to domain_api() in the 3.10 release causes this issue for older sites.
Comment #5
Funksmaname CreditAttribution: Funksmaname commentedfyi, mine is not an 'old' site - it's in recent dev so using latest dev versions of modules...
Comment #6
agentrickardSteps to reproduce, please.
Comment #7
rancidl CreditAttribution: rancidl commented*Subscribing
Same issue here too, can't find help online, unsure if it's a major issue or a small notice than can be hidden/prevented by isset or something similar.
Comment #8
Yaron Tal CreditAttribution: Yaron Tal commentedThis happened to me when installing from an install profile and having domain_nav as a dependency. Looks like it also happens when you forget to put the domain bootstrap in your settings.php.
The solution for me was to do an extra check if the $_domain variable is properly loaded as is also done in domain_init() in the domain module.
Comment #9
Yaron Tal CreditAttribution: Yaron Tal commentedpatch was created on latest dev
Comment #10
ExTexan CreditAttribution: ExTexan commentedIs that patch really the correct approach?
In my case, it seems that the modules are installed correctly, including the domain bootstrap in my settings.php, so if there really is a problem somewhere, wouldn't that patch just hide it?
Comment #11
agentrickardWell, hiding the error is kind of the point, here. We should probably log an error, however, rather than silently suppressing.