I have just tried updating the Views 6.x-3.x-dev module which was released 12 April.
After updating I went to the homepage and saw the following error
"Parse error: syntax error, unexpected T_CLASS, expecting T_FUNCTION in /home/username/public_html/sites/all/modules/views/handlers/views_handler_field.inc on line 1117"
I have now reverted to the version which was released 11 April.
Incidentally I also went to the site report logs and noticed that I am getting alot "Invalid argument supplied for foreach() in /home/username/public_html/sites/all/modules/views/includes/view.inc on line 1859." messages during the update process.
I also found these errors yesterday when I updated the same module which you released yesterday
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedWhoops. Committed a typo. Fixed and pushed.
Comment #2
jerdiggity CreditAttribution: jerdiggity commented@Bob3009 (and anyone else having this problem):
In the meantime (until the new dev version is rolled), adding a
}
to line 303 ofviews/handlers/views_handler_field.inc
should hold you over if you'd rather avoid reverting back.Basically (starting with line 300) you want it to go from this:
to this:
@merlin: feel free to yell at me if that's incorrect... Either way, worked for me as a temp fix.
:)
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedIt's correct. THis is the commit that fixed it: http://drupalcode.org/project/views.git/commitdiff/a9805282577da8c647611...
Comment #4
HTF CreditAttribution: HTF commentedHi Jerdiggity
Thanks for that, I think I will wait until it is next released though.
Any idea about the "Invalid argument supplied for foreach() in /home/username/public_html/sites/all/modules/views/includes/view.inc on line 1859." messages during the update process
I get this about 24 times after I re-enable the views module follwed by one of the following:
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY vid, position' at line 1 query: SELECT * FROM views_display WHERE vid IN () ORDER BY vid, position in /home/username/public_html/sites/all/modules/views/includes/view.inc on line 1410."