Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] Calender lite error
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] Calender lite error
PostPosted: 05/03/2007 8:14 AM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 2:04 PM
Location: west midlands:uk
greatbrE.gif
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
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
Re: Calender lite error
PostPosted: 05/03/2007 3:44 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:04 AM
Location: St Pete, FL
peace.gif
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');
         }
      }
   }
}

Shocked
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Calender lite error
PostPosted: 05/03/2007 3:50 PM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 2:04 PM
Location: west midlands:uk
greatbrE.gif
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
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
Re: Calender lite error
PostPosted: 05/03/2007 4:01 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:04 AM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Calender lite error
PostPosted: 05/03/2007 4:37 PM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 2:04 PM
Location: west midlands:uk
greatbrE.gif
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
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
Re: Calender lite error
PostPosted: 05/03/2007 5:25 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:04 AM
Location: St Pete, FL
peace.gif
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^~!!!

Applause
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Calender lite error
PostPosted: 05/03/2007 5:36 PM Reply with quote
Citation
~^Karen^~
Citation
Posts 556
Word Cnt. 20,326
BDay Jan 26
Sign Aquarius
Sex Sex:Female
Joined: Nov 26, 2006
Local time: 2:04 PM
Location: west midlands:uk
greatbrE.gif
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
View user's profile Find all posts by ~^Karen^~ Send private message   Visit poster's website Yahoo Messenger MSN Messenger
Re: Calender lite error
PostPosted: 05/03/2007 5:45 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:04 AM
Location: St Pete, FL
peace.gif
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...

banana  banana  banana  banana  banana  banana
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0722s (PHP: 67% - SQL: 33%) - SQL queries: 52 - GZIP disabled - Debug on