Closed (fixed)
Project:
Mobile Tools
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
3 Sep 2009 at 22:19 UTC
Updated:
4 Nov 2009 at 04:20 UTC
I uploaded mobile_tools 1.8 to an active drupal site (D6.13/ PHP 4.4.9/ MySql 4.1.21 on an apache server) and received this error, without even activating the module:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ')' in /data/websites/trapple/www/drupal/sites/all/modules/mobile_tools/mobile_tools.module on line 453
Comments
Comment #1
nivelula commentedI had the same problem and looked into the code for mobile_tools.module.
Line 453 was showing:
$rows[] = array(db_fetch_object($result1)->name, db_fetch_object($result2)->name);And I changed it to:
$rows[] = array(db_fetch_object($result1->name), db_fetch_object($result2->name));Similar problem then occurred on lines 962 and 968. I guess it was just a coding slip up.
Hope this helps!
Comment #2
twom commentedHi all,
This is probably caused by the PHP version that does not support this expression.
I am currently working on a big cleanup and upgrade, based on the input I got during the last weeks. This issue will also be solved to ensure compatibility.
Tom
Comment #3
Guzzi commentedThanks, Tom!
Greetings from The Netherlands.
Comment #4
edt-1 commentedI cant fix it this easily.
How can I disable it and get my site working again??
anyone please??
Comment #5
jimurl commentedHi edt,
try accessing the database of your site, with phpmyAdmin for example. Find the system table, and find the mobile_tools entry. Ste the 'status' field to 0 for this module- this will disable the module and revive your site.
Jim
Comment #6
twom commentedThis will not be fixed in 1.8 but is fixed in the dev version of the module. Sorry to all for the inconvenience of this error.
Tom