Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/pojack1/public_html/learntheinternet/modules/taxonomy_vtn/taxonomy_vtn.pages.inc on line 16

I run site www.learntheinternet.com
I've been using it to experiment with drupal 6.
I loved the idea of your module, but I get this error.
I tried to disable everything in the admin page but still get the error.

The site is very simple. No custom modules, but several added, like views etc.
I wonder if I should try to disable all modules except yours.

Antonio

Antonio

Comments

tomaszx’s picture

Status: Active » Postponed (maintainer needs more info)

This is in line 16:
$cache_data = cache_get('taxonomy_vtn_show_vocs')->data;

Strange effect. I don't know why you got this error...

What is your version of php ?

What is your settings for Caching? (Please try turn on Caching)
Tell me if still is the error.

Anyone can help?

cgdigitaltreats’s picture

I tried it on and off. Either way did not help.
On the admin page, I am copying some of the info.

HOpe it helps.

Your server not support setlocale.
This mean that sort index alphabetical with specific letters like ą ę ń can't be really sorted with your language.

Use setlocale
If you have some trouble, turn off this option.

The seletion is greyed out, so I can't check or uncheck it.

Antonio

tomaszx’s picture

setlocale is never mind here.

Caching is important. Turn off Caching and test again.

cgdigitaltreats’s picture

Turning it on or off doesn't do anything, both states have the same error.

Antonio

cgdigitaltreats’s picture

I use cirtex hosting, they have 4.3 version of php. They also use 5 but you have to do something funky like change the .htaccess, or php.ini or .php5 extention etc.

tomaszx’s picture

this look like a problem with php4 ... i dont know why only with this line.

anyone know what is a different?

@vitovonantwon try change this line with:

$cc = cache_get('taxonomy_vtn_show_vocs');
$cache_data = $cc->data;

and tell me what's happen.

cgdigitaltreats’s picture

Hi,

Ok, I added that line, and now I get this error.
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/pojack1/public_html/learntheinternet/modules/taxonomy_vtn/taxonomy_vtn.pages.inc on line 169

169 is $cache_data = cache_get('taxonomy_vtn_show_terms_'. $own_vid)->data;

Turned cache on and then off, and the problem is the same.

Antonio

cgdigitaltreats’s picture

Interesting, the vtn block works.
I'll leave it enabled for you to see. On the right. (but if you click on one the links, it gets the same error on line 169.)

Antonio

tomaszx’s picture

Hi,

then try change too this line like before in 16 line.
Tell me if this help.

cgdigitaltreats’s picture

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/pojack1/public_html/learntheinternet/modules/taxonomy_vtn/taxonomy_vtn.pages.inc on line 409

Trying to do the same on this line also.

OK, got it. Seems to work now. Not sure why it needed to be that way.

Your good. Very patient.

Antonio

tomaszx’s picture

Assigned: Unassigned » tomaszx
Status: Postponed (maintainer needs more info) » Fixed

Thanks for testing, no problem.
I want make better my module :)

regards.

cgdigitaltreats’s picture

Thanks for your help.

Antonio

Anonymous’s picture

Status: Fixed » Closed (fixed)

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