Installation of module breaks my site

MedMan - March 22, 2009 - 16:07
Project:DefaultTextForNode
Version:5.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:MarcElbichon
Status:closed
Description

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.

#1

VM - March 22, 2009 - 16:10

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.

#2

MarcElbichon - March 24, 2009 - 08:16

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.

#3

MarcElbichon - March 24, 2009 - 08:24
Assigned to:Anonymous» MarcElbichon
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.