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

nivelula’s picture

I 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!

twom’s picture

Assigned: Unassigned » twom
Status: Active » Needs work

Hi 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

Guzzi’s picture

Thanks, Tom!

Greetings from The Netherlands.

edt-1’s picture

I cant fix it this easily.

How can I disable it and get my site working again??

anyone please??

jimurl’s picture

Hi 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

twom’s picture

Status: Needs work » Fixed

This 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

Status: Fixed » Closed (fixed)

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