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
Comment #1
rooey commentedInteresting. Are you sure you downloaded 5.x.3.0 ? Did you install all of the dependancies?
Comment #2
rooey commentedComment #3
gynther commentedWell, 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.
Comment #4
rooey commentedNote 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?
Comment #5
gynther commentedI 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!
Comment #6
rooey commentedVersion 5.x.3.1 was released today - try with that one - it has the corrected installer :)
Comment #7
rooey commentedComment #8
gynther commentedI 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]
Comment #9
gynther commentedJust 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.
Comment #10
rooey commentedWhat version of PHP are you running?
Comment #11
gynther commentedI'm running 4.3.10-16.
Comment #12
rooey commentedDBFM requires PHP5!
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.