Welcome, Guest. Please Login or Register.
November 18, 2024, 12:20:20 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Parse Error on upgrade.php « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Parse Error on upgrade.php  (Read 343 times)
japheth
Noobie
*
Posts: 11


I'm a llama!

ICQ - 38665871 WWW
Parse Error on upgrade.php
« on: April 11, 2003, 05:36:38 PM »
Reply with quote

I'm upgrading a friends YaBB SE 1.4.1 board to 1.5.1 for him.

The first thing I did was take a dump of his database and download his php files and then I tested the upgrade locally and it worked fine and dandy.  That was on Apache 1.3, MySQL 3.23, PHP 4.3.1 and XP Pro.

I then uploaded all the appropriate upgrade files into their directories (Sources into Sources, all the other stuff to the root of the forum and the Packages files into the Packages directory).

However, when I browsed to upgrade.php, I received this error:


Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /usr/local/etc/httpd/forums.db-forge.com/forgottenwars/upgrade.php on line 371

Parse error: parse error, expecting `']'' in /usr/local/etc/httpd/forums.db-forge.com/forgottenwars/upgrade.php on line 438


Just to double-check, I re-uploaded upgrade.php and made absolutely sure it was in ASCII mode.  But the same error occurred.

The server he is on is Linux using Apache 1.3.27, PHP 4.2.3 and MySQL 3.23.39.

Any help is appreciated.
Logged

'Power tends to corrupt, and absolute power corrupts absolutely. Great men are almost always bad men' - Lord Acton
Japh's Jungle
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Parse Error on upgrade.php
« Reply #1 on: April 11, 2003, 05:44:01 PM »
Reply with quote

PHP files should be in Binary.  The .js files in ASCII.
Logged

japheth
Noobie
*
Posts: 11


I'm a llama!

ICQ - 38665871 WWW
Re:Parse Error on upgrade.php
« Reply #2 on: April 11, 2003, 05:50:38 PM »
Reply with quote

PHP files in binary is just for these files in particular I take it?

A quick look at SmartFTP's ASCII file extensions has PHP files defaulted to ASCII.  Which sort of makes sense since PHP files are simply text files.
Logged

'Power tends to corrupt, and absolute power corrupts absolutely. Great men are almost always bad men' - Lord Acton
Japh's Jungle
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Parse Error on upgrade.php
« Reply #3 on: April 11, 2003, 06:00:55 PM »
Reply with quote

Hmm, I guess you are right.  I just use auto select in SmartFTP.  Try binary and see if it works.
Logged

japheth
Noobie
*
Posts: 11


I'm a llama!

ICQ - 38665871 WWW
Re:Parse Error on upgrade.php
« Reply #4 on: April 11, 2003, 06:06:07 PM »
Reply with quote

Actually, I think I may know what's going on.  I think that the single quotes might have to be escaped with another ' rather than a backslash.  I'll give it a shot and see what happens.
Logged

'Power tends to corrupt, and absolute power corrupts absolutely. Great men are almost always bad men' - Lord Acton
Japh's Jungle
japheth
Noobie
*
Posts: 11


I'm a llama!

ICQ - 38665871 WWW
Re:Parse Error on upgrade.php
« Reply #5 on: April 11, 2003, 08:35:38 PM »
Reply with quote

Well, I figured it out. It wasn't the quotes, it was the short open tag in this little snippet:


<?
global $errornum, $continue;
$continue = (isset($continue) ? $continue : $HTTP_GET_VARS['continue']);

@set_time_limit(300);


Just as a suggestion, I'd change all short open tags in your PHP files to <?php to make it a bit more portable.  I'm having to go through each PHP files one by one to make sure.

japh
« Last Edit: April 11, 2003, 08:37:08 PM by japheth » Logged

'Power tends to corrupt, and absolute power corrupts absolutely. Great men are almost always bad men' - Lord Acton
Japh's Jungle
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Parse Error on upgrade.php
« Reply #6 on: April 11, 2003, 10:21:07 PM »
Reply with quote

Quote from: japheth on April 11, 2003, 08:35:38 PM
Well, I figured it out. It wasn't the quotes, it was the short open tag in this little snippet:


<?
global $errornum, $continue;
$continue = (isset($continue) ? $continue : $HTTP_GET_VARS['continue']);

@set_time_limit(300);


Just as a suggestion, I'd change all short open tags in your PHP files to <?php to make it a bit more portable.  I'm having to go through each PHP files one by one to make sure.

japh

Don't worry.  Only the upgrade uses short tags.

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Parse Error on upgrade.php « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.068 seconds with 20 queries.