Download & Extend

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

Project:DraggableViews
Version:6.x-3.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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?

Comments

#1

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

#2

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

Version:6.x-3.2» 6.x-3.x-dev
Status:active» closed (works as designed)

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

Status:closed (works as designed)» closed (fixed)

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