Installed dbfm and when I tried to activate it, it in turn wanted to activate the required modules which are available. Upon activation it creates a parse error and dies, meaning the whole site. Nothing is accessible. Error message is below.

Parse error: parse error, unexpected T_OBJECT_OPERATOR in /shop/modules/dbfm/dbfm.module on line 2261

I'm using Drupal 5.7

Appreciate any help at all.

Comments

rooey’s picture

Interesting. Are you sure you downloaded 5.x.3.0 ? Did you install all of the dependancies?

rooey’s picture

Status: Active » Postponed (maintainer needs more info)
gynther’s picture

Well, I went back and double checked and below is listed the various files I downloaded and installed.

dbfm-5.x-3.0.tar.gz
dapi-5.x-1.0.tar.gz
jstools-5.x-1.0.tar.gz
dbfmgreybox-5.x-2.0.tar.gz

Oh, and also of course drupal-5.7.tar.gz.

Thanks again for any help.

rooey’s picture

Note that DBFM v5.x.3.0 Requires: DAPI 5.x.1.0, DBFMgreybox 5.x.2.0, jstools 5.x.0.6 (doesn't work with other versions).

Installer help is available here:

http://dbfmdemo.lineageone.com/node/4

Is there anything displayed in the drupal logs/watchdog?

gynther’s picture

I changed jstools to the correct version, but the same error message keeps ocurring when i unpack dbfm in the modules folder. It seems as if the module is still "active" even though the folder has been deleted and the administration page has been visited. The only error in the logs that I could find was the following.

Table 'shop_dbfm_file' already exists query: CREATE TABLE shop_dbfm_file ( `fid` int(10) NOT NULL, `fblob` longblob, `fblobmod` datetime NOT NULL, `fmd5` varchar(32) NOT NULL, PRIMARY KEY (`fid`), UNIQUE KEY `fid` (`fid`) ) /*!40100 DEFAULT CHARACTER SET utf8 */ in /shop/includes/database.mysql.inc on line 172.

Wildly confusing error... Again, any help is appreciated.

Thanks!

rooey’s picture

Version 5.x.3.1 was released today - try with that one - it has the corrected installer :)

rooey’s picture

Version: 5.x-3.0 » 5.x-3.1
Assigned: Unassigned » rooey
Priority: Critical » Normal
gynther’s picture

I updated to 5.x.3.1 and the error went away. Sadly it got replaced with another one.

Fatal error: Call to undefined function: stripos() in /shop/modules/dbfm/dbfm.module on line 241

[edit]
I just noticed that strpos() is a php 5 function and that my host runs php 4.x. Anybody know if dbfm is to require php 5 from now on?
[/edit]

gynther’s picture

Status: Postponed (maintainer needs more info) » Fixed

Just an update. I went in and replaced the stripos() function in both dbfm and dbfmgreybox modules with strpos and that made the modules load. It gives me some other grief by doing this but at least the modules gets loaded and the page is loadable.

I'll try and convert the modules to use strpos() instead of stripos(), and I should be all set :)

Thanks for the help. I consider this issue to be fixed.

rooey’s picture

What version of PHP are you running?

gynther’s picture

I'm running 4.3.10-16.

rooey’s picture

DBFM requires PHP5!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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