Hi
Recently I updated the CTools and Services modules and I started to have some problems with the Drupal, caused by a bug in Module Services.
Part of the problems were resolved by the sponsors of the respectives areas and the pillarsdotnet, which helped me a lot (see the topic here: http://drupal.org/node/1141838).
However, there remained a problem involving a core of Drupal. On every page of the site appears the following message:
warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/modules/trigger/trigger.module on line 174.
This error message is displayed on all pages of the site, including the content pages.
I use the module "Front" to define the access to a custom page for each available language in the site, which is called "home". This page is based on views and displays information from the general content of the site in its own language.
These pages are no longer being displayed and the server response is error 404.
Since I never faced problems on this scale, if possible, I would like to receive additional instructions for correcting the mistakes.
Greetings.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | troubleshooting_trigger_hooks-1143174-10.patch | 1.63 KB | pillarsdotnet |
| #2 | trigger-1143174-2-d6.patch | 1.11 KB | pillarsdotnet |
Comments
Comment #1
astutonetComplementing the above message:
This problem affects even other versions of Drupal. In the topic mentioned above, a patch was made available to the Trigger Module by pillarsdotnet, which can be seen here - #8 - and here - trigger-1141838-8.patch.
Notice that I use a different version of the Drupal mentioned above and I need help to solve my problem.
Priority changed: Major areas of the site are partially unavailable.
Greetings.
Comment #2
pillarsdotnet commentedThe patch is against Drupal 6.20.
Comment #3
astutonetThe patch was applied and the message "warning" has been removed. The error 404 was also removed.
The content that should appear on each page is empty. I created a new issue for the Pages module at this address: http://drupal.org/node/1144238.
Thanks.
Comment #4
astutonetThe problem pointed in #3 was solved. Tks.
Comment #5
bleen commented#2 seems to be working fine for us ... RTBC
Comment #6
pillarsdotnet commentedNOT RTBC. The patch in #2 is a work-around, not a fix.
Comment #7
pillarsdotnet commentedUnless someone else can reproduce the error, this issue should be closed.
Comment #8
liliplanet commentedpatch in #2 fixed the problem, thank you!
Comment #9
pillarsdotnet commentedAccording to the hook_hook_info() documentation, this error should not happen.
Comment #10
pillarsdotnet commentedWould anyone who is still experiencing this problem or who has used the patch from #2 to solve it please apply this patch instead?
Then cut-and-paste any generated warning into this issue so we can find the real source of this bug.
Comment #11
gateway69 commentedIm getting this now with my upgrade to 6.22 from 6.20.. tried the patch but seemed to fail, going to manually adjust the code
patch -p0 < troubleshooting_trigger_hooks-1143174-10.patch
patching file b/modules/trigger/trigger.module
Hunk #1 FAILED at 169.
1 out of 1 hunk FAILED -- saving rejects to file b/modules/trigger/trigger.module.rej
Comment #12
gateway69 commentedOk manually changed the page.. here is the full function that removed the warnings, but gave me another issue with another module, not sure if its related, going to look at that next..
drupal 6.22
the new error im getting and not sure if its related to the change in trigger form..
Module "service_links" has defined a hook "group" whose value service_links is not an array.
Module "service_links_alter" has defined a hook "group" whose value service_links is not an array.
which is not an array sorta kinda makes me think it might be related..
Comment #13
gateway69 commentedyea in triggers admin menu, the service links tab is empty..
ST
Comment #14
pillarsdotnet commentedRedirecting...
Comment #15
TheCrow commented#1199322: warning: Invalid argument supplied for foreach()