|
Joined: Jun 2006
Posts: 106
member
|
member
Joined: Jun 2006
Posts: 106 |
Followed the upgrade instructions but I get the following error when going to /install/upgrade.php (or any page of the forum or CP). Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /usr/www/virtual/usrbingeek/www.bowlingcommunity.com/b/libs/html.inc.php on line 2141 The server is running PHP Version 5.2.17, MySQL Version 5.0.37
|
|
|
|
Joined: Jun 2006
Posts: 16,292 Likes: 116
|
Joined: Jun 2006
Posts: 16,292 Likes: 116 |
Ditto over several servers; cleared my night to upgrade sites too .
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
Also, in templates\default\header.tpl LINE 5 <meta charset={$lang.CHARSET}" /> SHOULD BE CHANGED TO <meta charset="{$lang.CHARSET}" /> I also noticed that while smarty version 2.6.25-dev is now being used in UBBT v7.5.8 (as an upgrade from smarty 2.6.19 in UBBT v7.5.7) I have been using smarty 2.6.27 RELEASE without problems. Should an older development version really be used instead of a newer, release version? As of October 1, 2013, the current version of smarty v2 is actually 2.6.28. I haven't upgraded to it yet, but just comparing the code to 2.6.27, the change is only 3 lines of code in one file, "Smarty_Compiler.class.php."
Last edited by id242; 11/30/2013 4:33 AM.
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
In fact, Also, in templates\default\header.tpl Line 7 should actually be changed from... <meta name="viewport" content="width=device-width, initial-scale=1.0"/> To something such as... <meta name="viewport" content="width=100%" /> or all together, left out. I admin a few fixed-width UBBT sites, so using a viewport "width=960" or even "width=1140" works well on those. I've pulled up https://www.ubbcentral.com/forums/ on the iPhone 2G, 3GS, 5s and several Android devices using both Firefox Chrome/ChromeBeta and the stock 4.x browser... and it navigates awful with those default viewport setting. Every page requires the user to zoom out and the header is still all scrunched up.
|
|
|
|
Joined: Jun 2006
Posts: 16,292 Likes: 116
|
Joined: Jun 2006
Posts: 16,292 Likes: 116 |
So, are we moving away from xHTML verification and going back to HTML4 for some reason?
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
Followed the upgrade instructions but I get the following error when going to /install/upgrade.php (or any page of the forum or CP). Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /usr/www/virtual/usrbingeek/www.bowlingcommunity.com/b/libs/html.inc.php on line 2141 The server is running PHP Version 5.2.17, MySQL Version 5.0.37 In /libs/html.inc.php Change line 238 FROM... if (!$refresh) { $refresh = ""; TO... if (!$refresh) $refresh = "";
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
change to html.inc.php made as above. my mistake, since i had changed it in production, but not dev. smarty is really latest .zip from smarty.net, even though the mismatch. the version is 2.6.28 from the downloaded .tar.gz or the .zip. they have the official version in smarty.class.php, but not the compiler or other file there ( i assume they didn't change in the SVN ) i edited the version. now if you can find me one where they properly updated the @version in all files, point the way. my d/l came from http://www.smarty.net/downloadi also went over to the google.code SVN and note that it is the same over there, but the 2.6.28 is in the 1 file. viewport taken out of header.tpl and also the charset has proper quoting. uploaded new .zip to Brooks, and will await his saying it's been transferred over. and the html we are using is html5... hence the simple doctype... see 'html5 boilerplate' for more info..
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
Brooks just confirmed to me that it is in the member's area for d/l
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
Excellent! SD, Thanks again for the quick followups
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
thank you for the header.tpl catch(es) !
|
|
|
|
Joined: Jun 2006
Posts: 106
member
|
member
Joined: Jun 2006
Posts: 106 |
Thanks, it worked much better this time around.
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
it was 'lucky' that it didn't work, so i could get the header.tpl changes in too..
|
|
|
|
|