Parse Error(NEW ONE) in page_tail.php newest CVS release

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
Lorddraco98
Registered User
Posts: 49
Joined: Mon Jan 14, 2002 1:38 am

Parse Error(NEW ONE) in page_tail.php newest CVS release

Post by Lorddraco98 » Wed Jan 23, 2002 8:51 pm

I just got the newest CVS and on the bottom of every page on my board i get this: Parse error: parse error, expecting `')'' in c:\program files\apache group\apache\htdocs\phpbb2\includes\page_tail.php on line 50

How do I fix this? i tried finding line 50 and editing but couldn't :(

Maverik
Registered User
Posts: 2
Joined: Wed Jan 23, 2002 8:23 pm

Post by Maverik » Wed Jan 23, 2002 9:26 pm

I know I'll probably get flamed for this, but where can i DOWNLOAD CVS. I know what it is and such, but the only link i see at sourceforge is RC-2.

Lorddraco98
Registered User
Posts: 49
Joined: Mon Jan 14, 2002 1:38 am

Post by Lorddraco98 » Wed Jan 23, 2002 10:53 pm

here http://phpbb.sourceforge.net/phpBB2/vie ... hlight=faq
now anyone have a fix for my prob??

logicgate
Registered User
Posts: 1
Joined: Sun Jan 20, 2002 1:58 pm

Parse Error(NEW ONE) in page_tail.php newest CVS release

Post by logicgate » Wed Jan 23, 2002 10:59 pm

Lorddraco98 wrote: I just got the newest CVS and on the bottom of every page on my board i get this: Parse error: parse error, expecting `')'' in c:\program files\apache group\apache\htdocs\phpbb2\includes\page_tail.php on line 50

How do I fix this? i tried finding line 50 and editing but couldn't :(


Send the file to linuxtiger@hotmail.com and I will fix it for you and email it back.

LogicGate

Lorddraco98
Registered User
Posts: 49
Joined: Mon Jan 14, 2002 1:38 am

Post by Lorddraco98 » Wed Jan 23, 2002 11:04 pm

e-mail is messed on here :cry: here's the file's contents, what do I add to make it work?

<?php
/***************************************************************************
* page_tail.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: page_tail.php,v 1.23 2002/01/16 17:56:46 psotfx Exp $
*
*
***************************************************************************/

/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/

//
// Show the overall footer.
//
if($userdata['user_level'] == ADMIN)
{
$admin_link = "<a href=\"" . append_sid("admin/index.$phpEx") . "\">" . $lang['Admin_panel'] . "</a><br /><br />";
}
else
{
$admin_link = "";
}
$current_time = time();

if( empty($gen_simple_header) )
{
$template->set_filenames(array(
"overall_footer" => "overall_footer.tpl")
);
}
else
{
$template->set_filenames(array(
"overall_footer" => "simple_footer.tpl")
);
}

$template->assign_vars(array(
<<<<<<< page_tail.php
"PHPBB_VERSION" => "2.0 RC-2",
"ADMIN_LINK" => $admin_link));
=======
"PHPBB_VERSION" => "2.0 CVS",
"TRANSLATION_INFO" => $lang['TRANSLATION_INFO'],
"ADMIN_LINK" => $admin_link)
);
>>>>>>> 1.23

$template->pparse("overall_footer");

//
// Output page creation time
//
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);

$gzip_text = ($board_config['gzip_compress']) ? "GZIP compression enabled" : "GZIP compression disabled";
$debug_mode = (DEBUG) ? " : Debug Mode" : "";

printf("<br /><center><font size=\"-2\">phpBB Created this page in %f seconds : " . $db->num_queries . " queries executed : $gzip_text".$debug_mode."</font></center>", $totaltime);

//
// Close our DB connection.
//
$db->sql_close();

//for($i=0;$i<count($db->query_array);$i++)
// echo $db->query_array[$i] . "<BR>";

//
// Compress buffered output if required
// and send to browser
//
if($do_gzip_compress)
{
//
// Borrowed from php.net!
//
$gzip_contents = ob_get_contents();
ob_end_clean();

$gzip_size = strlen($gzip_contents);
$gzip_crc = crc32($gzip_contents);

$gzip_contents = gzcompress($gzip_contents, 9);
$gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);

echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
echo $gzip_contents;
echo pack("V", $gzip_crc);
echo pack("V", $gzip_size);
}

exit;

?>

trumpet
Registered User
Posts: 94
Joined: Sun Dec 09, 2001 5:28 pm
Contact:

Post by trumpet » Thu Jan 24, 2002 4:23 am

<<<<<<< page_tail.php wtf is that?
take it out and it will work

>>>>>>> 1.23

and that on 58

User avatar
ZapZap
Registered User
Posts: 102
Joined: Sat Dec 15, 2001 1:02 am

Post by ZapZap » Thu Jan 24, 2002 4:29 am

trumpet wrote: <<<<<<< page_tail.php wtf is that?
take it out and it will work

>>>>>>> 1.23

and that on 58


no not only that .......

you use cvsudate commande to upgrade that why ....
you have to replace this :

Code: Select all

<<<<<<< page_tail.php 
"PHPBB_VERSION" => "2.0 RC-2", 
"ADMIN_LINK" => $admin_link)); 
======= 
"PHPBB_VERSION" => "2.0 CVS", 
"TRANSLATION_INFO" => $lang['TRANSLATION_INFO'], 
"ADMIN_LINK" => $admin_link) 
); 
>>>>>>> 1.23 
by :

Code: Select all

"PHPBB_VERSION" => "2.0 CVS", 
"TRANSLATION_INFO" => $lang['TRANSLATION_INFO'], 
"ADMIN_LINK" => $admin_link) 
); 

and learn how to use CVS :)
zapzap

User avatar
Faejon
Registered User
Posts: 22
Joined: Thu Aug 16, 2001 12:57 am
Location: Portland, Oregon USA
Contact:

Post by Faejon » Thu Jan 24, 2002 11:15 am

This happened to me as well. If you check your log while updating your CVS you will see a merge conflict for that file. I also goto one for /admin/page_footer_admin.php. Just rename the files that had a conflict and do the update again. This will get the current version of the file.
Faejon Dorunrun
Captain / Webmaster
Battle Cry of Terris-Thule

an Everquest guild

Lorddraco98
Registered User
Posts: 49
Joined: Mon Jan 14, 2002 1:38 am

Post by Lorddraco98 » Thu Jan 24, 2002 1:07 pm

ZapZap wrote:
trumpet wrote: <<<<<<< page_tail.php wtf is that?
take it out and it will work

>>>>>>> 1.23

and that on 58


no not only that .......

you use cvsudate commande to upgrade that why ....
you have to replace this :

Code: Select all

<<<<<<< page_tail.php 
"PHPBB_VERSION" => "2.0 RC-2", 
"ADMIN_LINK" => $admin_link)); 
======= 
"PHPBB_VERSION" => "2.0 CVS", 
"TRANSLATION_INFO" => $lang['TRANSLATION_INFO'], 
"ADMIN_LINK" => $admin_link) 
); 
>>>>>>> 1.23 
by :

Code: Select all

"PHPBB_VERSION" => "2.0 CVS", 
"TRANSLATION_INFO" => $lang['TRANSLATION_INFO'], 
"ADMIN_LINK" => $admin_link) 
); 

and learn how to use CVS :)
zapzap

Could you explain to me then, once I've downloaded the files(CVS phpBB2 files) once, how do I go about updating them? I've had trouble doing this. Thanks

Locked

Return to “2.0.x Support Forum”