I have just tried to install DefaultTextForNode on my site. I am running a fully-patched Drupal 5.x installation.

When I attempted to activate the module I got the following:

Fatal error: Call to undefined function: stripos() in /htdocs/cms/sites/all/modules/DefaultTextForNode/defaultTextForNode.module on line 21

My Log entry shows:

Cannot modify header information - headers already sent by (output started at /homepages/15/d159382655/htdocs/cms/sites/all/modules/DefaultTextForNode/defaultTextForNode.module:51) in /homepages/15/d159382655/htdocs/cms/includes/common.inc on line 314.

Comments

vm’s picture

see; http://drupal.org/node/1424
It may help you solve the problem on your own.
Typically this error is thrown when the file is saved with whitespace where it shouldn't be. Though I don't know that I'd implement this module on any production site as according to the project it isn't maintained here on drupal.org and may not be maintained at all any more.

MarcElbichon’s picture

stripos is provided with PHP5, so i think you use PHP4.
I've replaced this function to be compatible with PHP4
I've corrected also the problem with header already sent.

Please download release 1.1 and try again.

MarcElbichon’s picture

Assigned: Unassigned » MarcElbichon
Status: Active » Closed (fixed)