Parse error (?!) unexpected T_OBJECT_OPERATOR in draggableviews.module

vronkdaut - August 31, 2009 - 15:50
Project:DraggableViews
Version:6.x-3.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

As soon as I enable DraggableViews module in admin/build/modules the pages is broken with message:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/rm000007/www/home/_rmahps/sites/all/modules/draggableviews/draggableviews.module on line 135

the line says:
if (strcmp($display->handler->get_plugin('style')->definition['handler'], 'draggableviews_plugin_style_draggabletable') == 0) {

Does it possibly have something to do with the style-plugin?
Do I have to install any other modules (haven't found any dependencies information)?
Or rather the other side: some modules conflict?

#1

sevi - August 31, 2009 - 16:21

MMM.
This line probably needs more error checking.
Which version of php do you use. php4?

#2

vronkdaut - August 31, 2009 - 21:04

yes, PHP Version 4.4.7

Is it very bad, doc? ;)

+ Views 6.x-2.6
+ Insert view 6.x-1.0
(+ couple of other modules ...)

#3

sevi - September 2, 2009 - 11:01
Version:6.x-3.2» 6.x-3.x-dev
Status:active» by design

I want support php 4.x anyway.. but I don't think it's php4 causing this error.
It seems that a style-plugin has not been configured. This shouldn't be, I guess.

Anyway, I added more error-checking to prevent errors like this.

Try the attached patch.
You'll have to update to the latest dev-version before you add this patch.

AttachmentSize
draggableviews-564484.patch 672 bytes

#4

sevi - September 15, 2009 - 22:21
Status:by design» closed

The concerned code has been removed due to some theme-related refactoring (see #541130: Theme registery issues).

Your error should be gone too. The development snapshot contains the changes.

Setting status to "closed",
greetings,
sevi

 
 

Drupal is a registered trademark of Dries Buytaert.