Previous Thread
Next Thread
Print Thread
Hop To
#254148 11/30/2013 4:00 AM
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).

Quote
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
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Ditto over several servers; cleared my night to upgrade sites too tongue.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Also, in templates\default\header.tpl

LINE 5
Code
	<meta charset={$lang.CHARSET}" />

SHOULD BE CHANGED TO
Code
	<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.

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
In fact, Also, in templates\default\header.tpl

Line 7 should actually be changed from...
Code
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>

To something such as...
Code
<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.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
So, are we moving away from xHTML verification and going back to HTML4 for some reason?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Originally Posted by usrbingeek
Followed the upgrade instructions but I get the following error when going to /install/upgrade.php (or any page of the forum or CP).

Quote
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...
Code
		if (!$refresh) { $refresh = "";

TO...
Code
		if (!$refresh) $refresh = "";


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
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/download

i 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.. smile

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
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

2c

Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Excellent! SD, Thanks again for the quick followups


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
thank you for the header.tpl catch(es) ! wink

Joined: Jun 2006
Posts: 106
member
member
Joined: Jun 2006
Posts: 106
Thanks, it worked much better this time around. smile

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
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..

eek


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 522 guests, and 99 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)