 | [Solved] Calender lite error |  |
Posted: 05/03/2007 8:14 AM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 2:48 PM
Location: west midlands:uk
|

|
|
|
|
 |
Iv tried to install the calender iv got on my toddler forum onto my teddies forum, i had to do some ammendments, but finally installed ok, but now i get this error:
| Code:
|
Parse error: syntax error, unexpected '}' in /home/kteddies/public_html/phpBB2/includes/page_header.php on line 71
|
Think i know what the problem is, but i dunno how to fix it, i can get my site working by uploading the page header from my pc, but then the calender aint working so thought i best let you take a look! |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Calender lite error |  |
Posted: 05/03/2007 3:44 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:48 AM
Location: St Pete, FL
|

|
|
|
|
 |
The MOD author made a mistake in the instructions for modifying the page_header.php file. I've corrected the file and all seems to be working now. Let me know if you encounter any other problems. I didn't test anything after I got the forum to display again...
This is what I had to fix:
OPEN
includes/page_header.php
FIND
| Code:
|
else
{
// Mod Calendar
if (isset($caluser)) {
$u_login_logout = 'login.'.$phpEx.'?redirect=cal_lite.'.$phpEx;
}
else {
$u_login_logout = 'login.'.$phpEx;
}
// End Mod for Calendar
$l_login_logout = $lang['Login'];
}
if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') )
{
if ( extension_loaded('zlib') )
{
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
header('Content-Encoding: gzip');
}
}
}
}
|
REPLACE WITH
| Code:
|
else
{
// Mod Calendar
if (isset($caluser))
{
$u_login_logout = 'login.'.$phpEx.'?redirect=cal_lite.'.$phpEx;
}
else
{
$u_login_logout = 'login.'.$phpEx;
}
// End Mod for Calendar
$l_login_logout = $lang['Login'];
if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') )
{
if ( extension_loaded('zlib') )
{
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
header('Content-Encoding: gzip');
}
}
}
}
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Calender lite error |  |
Posted: 05/03/2007 3:50 PM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 2:48 PM
Location: west midlands:uk
|

|
|
|
|
 |
ok, i remembe rhaving this prob the last time, i just can never remember how to deal with some of them as it was so long ago!
I clicked on calender and i get the error:
| Code:
|
Couldn't query calendar config table
DEBUG MODE
SQL Error : 1146 Table 'kteddies_kteddies.phpbb_cal_config' doesn't exist
SELECT * FROM phpbb_cal_config
Line : 151
File : cal_lite.php
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: Calender lite error |  |
Posted: 05/03/2007 4:01 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:48 AM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, this means that the database wasn't updated because the MOD author didn't include the SQL queries in the MOD script. Instead, he included a cal_install.php file that you can upload to your phpBB forum folder and run from your browser. Once you update the database, this error will go away...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Calender lite error |  |
Posted: 05/03/2007 4:37 PM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 2:48 PM
Location: west midlands:uk
|

|
|
|
|
 |
| oh i remember now lol!! Its working fine now! Thanks for your help, i should try to remember these for the future! |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Calender lite error |  |
Posted: 05/03/2007 5:25 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:48 AM
Location: St Pete, FL
|

|
|
|
|
 |
LOL They say that practice makes perfect. There will come a time that when you see that error, you will know exactly what needs to be done...
Congratulations on getting it installed ~^Karen^~!!!
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Calender lite error |  |
Posted: 05/03/2007 5:36 PM |
|
|
|
|
|
| Citation |
| Posts |
556 |
| Word Cnt. |
20,326 |
| BDay |
Jan 26 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Nov 26, 2006
Local time: 2:48 PM
Location: west midlands:uk
|

|
|
|
|
 |
| Sometimes, i can fix things when i see the error, as i remember from a previous mod, but there's times when my mind just goes blank lol!! I really dont know how you remember how to fix so many mods! |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Calender lite error |  |
Posted: 05/03/2007 5:45 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:48 AM
Location: St Pete, FL
|

|
|
|
|
 |
Practice makes perfect. Once you have installed as many MODs as I have, you probably will be able to figure out almost any problem that arises...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|