Unable to install

dhw1179 - June 23, 2008 - 16:21
Project:DataBase File Manager
Version:5.x-4.3
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have tried installing DBFM on two sites: a freshly built and an existing. Both times I received an error of "Fatal error: Call to undefined function: stripos() in /nfs/c02/h02/mnt/19665/domains/website.website.net/html/modules/CONTRIB/dbfm/dbfm.module on line 242" I have installed the appropriate supporting modules required. The only way to regain access to the site is to delete the module. Any ideas what could be causing this?

#1

rooey - June 23, 2008 - 16:27

You need PHP5.

#2

dhw1179 - June 23, 2008 - 16:57
Status:active» closed

Thanks, just realized that my server defaults to PHP4 on all sites thought PHP 5 is available.

#3

breitner - March 31, 2009 - 12:36
Title:Unable to install» Unable to install
Version:5.x-3.3» 5.x-4.3
Status:closed» active

For PHP4:

Search in dbfm.module and dbfmgreybox.module for the line with the function stripos().
Insert following code (in the line befor stripos):

if (!function_exists('stripos')) {
function stripos($string,$word){
$retval = false;
for($i=0;$i<=strlen($string);$i++) {
if (strtolower(substr($string,$i,strlen($word))) == strtolower($word)) {
$retval = true;
}
}
return $retval;
}
}

 
 

Drupal is a registered trademark of Dries Buytaert.