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.
I receive a ton of errors when I enable the tag/mention submodule. Any thoughts? Cleared Cache, tried the Beta and the Dev version too.
Comment | File | Size | Author |
---|---|---|---|
Screen Shot 2013-05-23 at 1.35.28 PM.png | 87.25 KB | TravisJohnston |
Comments
Comment #1
IceCreamYou CreditAttribution: IceCreamYou commentedNot sure. I can't reproduce it in a clean installation, and I can't see how that could happen from the code. The error is about a helper function being called with an array parameter instead of a string, but there isn't any code in the Statuses project that calls it with anything other than a string, and also that function only gets called when a status is being rendered and it shouldn't be rendering anything when you're enabling the module.
Can you do a stack trace on the code to find out where the bad parameter came from?
Comment #2
TravisJohnston CreditAttribution: TravisJohnston commentedLove to help, not sure how to run the trace though.
Also, I am using this with Drupal Commons if that helps.
Comment #3
IceCreamYou CreditAttribution: IceCreamYou commentedIn the statuses module folder go to submodules/statuses_tags/statuses_tags.module and edit _statuses_tags_filter() and put this line after the function declaration:
Then when you enable the module and you see the errors in question, look at the page source and you should see something that looks like this (but much longer). Copy and paste that into a text file and attach it in a comment here.
Thanks
Comment #4
TravisJohnston CreditAttribution: TravisJohnston commentedK I think this is it..
Even though it was in the right spot, im not seeing anything in the array about the tags...
Comment #5
IceCreamYou CreditAttribution: IceCreamYou commentedHmm. Yeah. There should be a lot more to that. Maybe try calling
drupal_set_message(print_r($subject, TRUE));
at the same place to see what value the bad parameter has?I'm sorry, I don't really know what else to tell you. Without a stack trace that actually goes to the function in question, I can't tell what would have been calling it erroneously. And the fact that this is a private function that never gets called from Statuses in a way that would cause this error, on top of the fact that I can't reproduce this in a clean installation, means that this is probably a weird one-off situation.
Comment #6
TravisJohnston CreditAttribution: TravisJohnston commentedYeah I tried that too, no difference. I will keep playing around to see if I can find the issue. When you did a clean install, did you do it with Drupal Commons installed as well?
Comment #7
IceCreamYou CreditAttribution: IceCreamYou commentedNo, I didn't try it with Commons.
One thing you might try is grepping your code base for the function name, e.g.
grep -rn "_statuses_tags_filter" .
-- and then working backwards to see if you can figure out where it's being called incorrectly.Comment #8
IceCreamYou CreditAttribution: IceCreamYou commented