Please try the 7.x-2.x-dev version. The error you are reporting happens when the module is looking at the entire page to determine if it needs to add the collapsing library, and is not actually a bug in collapse_text. But the dev version changes how this code works a bit, which might fix the problem.
My mistake. Getting too tired. Didn't use the 7.x-2.x-dev on the drupal installation where the error occured...
Now confirming again... 7.x-2.x-dev version works.
Closing this issue and going to sleep! ;-)
Hm. Presuming the error is now thrown at line 613 (if still at 605, then something has cached an old version of the code), the issue is that while the array walks through the $page variable, it's coming across some kind of object that is broken. I don't believe this is actually a problem with the collapse_text module, but rather some other module that has an error that is only coming to light because I'm walking through the entire page tree.
You could try installing the devel module, and then changing the code at line 612 from
Comments
Comment #1
Nikdilis commentedComment #2
pukku commentedPlease try the 7.x-2.x-dev version. The error you are reporting happens when the module is looking at the entire page to determine if it needs to add the collapsing library, and is not actually a bug in collapse_text. But the dev version changes how this code works a bit, which might fix the problem.
Ricky
Comment #3
Nikdilis commented[Hi Ricky, the 7.x-2.x-dev version worked. Thank you.]
Edit: First it worked, but finally the error shows up again.
Comment #4
Nikdilis commentedComment #5
Nikdilis commentedComment #6
Nikdilis commentedMy mistake. Getting too tired. Didn't use the 7.x-2.x-dev on the drupal installation where the error occured...
Now confirming again... 7.x-2.x-dev version works.
Closing this issue and going to sleep! ;-)
Comment #7
pukku commentedHm. Presuming the error is now thrown at line 613 (if still at 605, then something has cached an old version of the code), the issue is that while the array walks through the $page variable, it's coming across some kind of object that is broken. I don't believe this is actually a problem with the collapse_text module, but rather some other module that has an error that is only coming to light because I'm walking through the entire page tree.
You could try installing the devel module, and then changing the code at line 612 from
to
This will then print out the page variable, allowing you to look into it and see what is breaking things.
While the code is changed this way, collapsing text won't work, because it will never add the appropriate javascript library.
Ricky
Comment #8
Nikdilis commentedHi Ricky, thanks again for your help. See #6 - 7.x-2.x-dev version works.
Closing this issue.