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?
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | views_plugin_style.zip | 2.74 KB | jdsason |
Comments
Comment #1
dawehnerCan you please paste the whole error message, the important part is the file which was cuttet :)
Comment #2
jdsason commentedI 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.
Comment #3
dawehnerThis cannot be a valid path, or? There is missing something :) Or you uploaded views wrong :)
Comment #4
jdsason commentedAgain, 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
Comment #5
dawehnerI would try to upload the file.
Here my file is only 235 lines long.
Comment #6
jdsason commentedOk, 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.
Comment #7
dawehneryou only have to upload the single file.
Comment #8
jdsason commentedOk, maybe it is time for me to play some Solitare. Here is the one file you need. Again, thanks.
Comment #9
jdsason commentedJust 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?
Comment #10
jdsason commentedOk, 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.
Comment #11
dawehnerPerhaps http://php.syntaxerrors.info/index.php?title=Syntax_error,_unexpected_T_... helps you
Comment #12
merlinofchaos commentedThis 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.