Ran Available updates and I came up with needing the newest version of Views dated 24 Oct 2009. Downloaded it to the server which is running PHP 5.2.10, MySQL version 5.0.81-community on an Apache server 2.2.13 (Unix). As soon as I untared it and overwrote the previous version I got this message.

'Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /www.example.com/public_html/sites/all/modules/views/plugins/views_pl'

How do I fix this, Please?

CommentFileSizeAuthor
#8 views_plugin_style.zip2.74 KBjdsason

Comments

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Can you please paste the whole error message, the important part is the file which was cuttet :)

jdsason’s picture

I am sorry, I guess my fingers were to slow at putting in the whole message.

''Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /www.example.com/public_html/sites/all/modules/views/plugins/views_pl at line 236'

In the mean time I deleted the folder from the server and reinstalled the previous version. That took care of the immediate problem, but since this is my favorite module I use, I would like to see if I am doing something wrong here.

Thank you for responding so fast.

dawehner’s picture

/www.example.com/public_html/sites/all/modules/views/plugins/views_pl

This cannot be a valid path, or? There is missing something :) Or you uploaded views wrong :)

jdsason’s picture

Again, sorry.

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/example.com/public_html/sites/all/modules/views/plugins/views_plugin_style.inc on line 236

dawehner’s picture

I would try to upload the file.

Here my file is only 235 lines long.

jdsason’s picture

Ok, the file that I am working with is the one that was persented to me thru the uodate system, so I do not understand where it is adding another line to it.

I tried uploading the zip file itself but it is 1.48 MBS making it .48 megs too large.

If you want to contact me thru my contact info I can email it to you.

dawehner’s picture

you only have to upload the single file.

jdsason’s picture

StatusFileSize
new2.74 KB

Ok, maybe it is time for me to play some Solitare. Here is the one file you need. Again, thanks.

jdsason’s picture

Just downloaded the same file to another one of my accounts on a different server and had no problems with it.

The only difference I could find was that this server is running PHP 5.2.9 not PHP 5.2.10.

Could this small a difference make this big a problem?

jdsason’s picture

Ok, after running a line by line comparison of the two files from the two different servers and not finding any poblems or differences between the two, I tried the simple procedure of deleting the one file from the one server, uploading the file from the server that did work and trying it that way.

Now there is no problem with the file at all.

Wonder if there is a ghost in the machine here?

I would like to know if anyone else has this problem and if you find something I did not. Again, thanks for the help.

dawehner’s picture

merlinofchaos’s picture

Status: Postponed (maintainer needs more info) » Fixed

This kind of thing can happen with opcode caches such as APC and eAccelerator when they mess up for other, unrelated reasons. There's nothing much we can do about it, and it sounds like you've got it sorted.

If I were you I'd keep a close watch on your server as this could recur and possibly with other files.

Status: Fixed » Closed (fixed)

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