Previous Thread
Next Thread
Print Thread
Hop To
#254148 11/30/2013 4:00 AM
Joined: Jun 2006
Posts: 106
member
OP Offline
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,185
Likes: 102
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,185
Likes: 102
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,917
Likes: 140
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,917
Likes: 140
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 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2004
Posts: 1,917
Likes: 140
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,917
Likes: 140
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 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Jun 2006
Posts: 16,185
Likes: 102
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,185
Likes: 102
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,917
Likes: 140
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,917
Likes: 140
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 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
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
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
Brooks just confirmed to me that it is in the member's area for d/l

2c

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


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

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

Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
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
You've already posted
by Baldeagle - 08/06/2022 1:12 PM
Default Group(s) for New Members
by Morgan - 08/02/2022 10:54 AM
Webhook to DISCORD
by TGCsanderson - 08/01/2022 6:42 AM
Is it possible to restore a single forum from backup?
by Baldeagle - 07/19/2022 1:18 PM
Who's Online Now
1 members (AllenQ33), 73 guests, and 73 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 7.7.5