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 |
Jump to:
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
You need PHP5.
#2
Thanks, just realized that my server defaults to PHP4 on all sites thought PHP 5 is available.
#3
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;
}
}