I am getting this error on a few different pages, one being when I edit a content type (admin/structure/types/manage/). I get enough of the errors that I need to (unfortunately) disable this module to manage my site. Here is the error message that I get many times over:

Warning: array_walk_recursive(): recursion detected in collapse_text_preprocess_page() (line 613 of /var/www/mysite/sites/all/modules/collapse_text/collapse_text.module).

The site is just a small demo site...please let me know if you need anything to help track this down.

Comments

joel_osc’s picture

Status: Active » Closed (cannot reproduce)

This seems to have gone away...closing.

liquidcms’s picture

Status: Closed (cannot reproduce) » Active

error appears on admin/config/content/formats/filtered_html

liquidcms’s picture

error seems to be due to the odd code in the function collapse_text_preprocess_page().

pretty sure none of that is needed so i simply removed it all and left:

function collapse_text_preprocess_page(&$variables) {
  drupal_add_library('system', 'drupal.collapse');
}

and module seems to work fine now.

jvdkolk’s picture

We got a different error

[Mon Jun 18 14:59:44 2012] [error] [client xx.xx.xx.xxx] PHP Fatal error:  Class 'Database' not found in /var/www/drupal7.wmmrc.nl/drupal-7.14/sites/all/modules/collapse_text/collapse_text.module on line 605

(Line 605 being inside collapse_text_preprocess_page).

Applying the change as suggested by #3 seemed to work.

pukku’s picture

Status: Active » Fixed

Hi! I'm about to release a new version which will get rid of all the attempting-to-be-smart code, so that should fix this error.

Status: Fixed » Closed (fixed)

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