boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

archives/calendar error
Goto page 1, 2  Next
 
Post new topic   Reply to topic    boardom Forum Index -> PHP help
View previous topic :: View next topic  
Author Message
Lanochka



Joined: 01 Dec 2004
Posts: 20

PostPosted: Wed Dec 22, 2004 5:16 pm    Post subject: archives/calendar error Reply with quote

When I include calendar I get this error

Quote:
Warning: main(./b2-include/b2template.functions.php): failed to open stream: No such file or directory in /home2/vibical/public_html/lana/b2/b2calendar.php on line 34

Fatal error: main(): Failed opening required './b2-include/b2template.functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/vibical/public_html/lana/b2/b2calendar.php on line 34


I have all my b2 stuff in /b2 folder =\ This is probly really simple to fix >.<
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 326

PostPosted: Wed Dec 22, 2004 6:27 pm    Post subject: Re: archives/calendar error Reply with quote

Lanochka wrote:
I have all my b2 stuff in /b2 folder =\ This is probly really simple to fix >.<

All your stuff? You should have some subfolders one of them being b2-include, which is where b2 expects to find b2template.functions.php. Is it there?
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 326

PostPosted: Wed Dec 22, 2004 6:28 pm    Post subject: Re: archives/calendar error Reply with quote

Lanochka wrote:
I have all my b2 stuff in /b2 folder =\ This is probly really simple to fix >.<

All your stuff? You should have some subfolders one of them being b2-include, which is where b2 expects to find b2template.functions.php. Is it there?
Back to top
View user's profile Send private message
Lanochka



Joined: 01 Dec 2004
Posts: 20

PostPosted: Wed Dec 22, 2004 6:29 pm    Post subject: Reply with quote

Yes, it's all there.
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 326

PostPosted: Wed Dec 22, 2004 6:39 pm    Post subject: Reply with quote

So is b2calendar.php in /b2 and b2template.functions.php in /b2/b2-include which is where they should be?
Back to top
View user's profile Send private message
Lanochka



Joined: 01 Dec 2004
Posts: 20

PostPosted: Wed Dec 22, 2004 6:40 pm    Post subject: Reply with quote

Yes everything's where it's supposed to be
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 326

PostPosted: Wed Dec 22, 2004 7:00 pm    Post subject: Reply with quote

Lanochka wrote:
When I include calendar

What do you mean by 'include' here? What code are you using to get b2calendar.php?

Do you get the calendar if you type the URL http://your_domain/b2/b2calendar.php into your browser?
Back to top
View user's profile Send private message
Lanochka



Joined: 01 Dec 2004
Posts: 20

PostPosted: Wed Dec 22, 2004 7:02 pm    Post subject: Reply with quote

Code:
<?php include("b2calendar.php") ?>


And yeah it does work when I type in the full address

http://lana.vibical.com/b2/b2calendar.php
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 326

PostPosted: Wed Dec 22, 2004 7:34 pm    Post subject: Reply with quote

Everything looks OK, so I can't see why it doesn't work. I presume you are putting <?php include("b2calendar.php") ?> in index.php on the right-hand menu bar somewhere near Archives? What is the surrounding code in case that's causing a problem?
Back to top
View user's profile Send private message
Lanochka



Joined: 01 Dec 2004
Posts: 20

PostPosted: Wed Dec 22, 2004 7:40 pm    Post subject: Reply with quote

Code:
<html>
<head>
<title>Lanochka // Version [1] Simplicity</title>

<?php
$action = $_GET['action'];
if ($action == "home") $action2 = "b2/b2";
elseif ($action == "lanochka") $action2 = "lanochka/menu";
elseif ($action == "bio") $action2 = "lanochka/bio";
elseif ($action == "pics") $action2 = "lanochka/pics";
elseif ($action == "joined") $action2 = "lanochka/joined";
elseif ($action == "edits") $action2 = "lanochka/edits";
elseif ($action == "awards") $action2 = "lanochka/awards";

elseif ($action == "site") $action2 = "site/menu";
elseif ($action == "credits") $action2 = "site/credits";
elseif ($action == "history") $action2 = "site/history";
elseif ($action == "pastlayouts") $action2 = "site/pastlayouts";
elseif ($action == "suggestions") $action2 = "site/suggestions";

elseif ($action == "plugrules") $action2 = "site/plugrules";

elseif ($action == "exits") $action2 = "exits/menu";
elseif ($action == "linkme") $action2 = "exits/linkme";
elseif ($action == "linksout") $action2 = "exits/linksout";

else $action2 = "b2/b2";
?>

//**css crap is here**//

</head>

<body bgcolor="#FFFFFF" background="img/v1_002.gif" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<table width="614" height="450" border="0" cellspacing="0" cellpadding="0">
<tr><td><img src="img/v1_003.gif" width="614" height="450" border="0"></td></tr></table>


<div style="position:absolute; left:70; top:455; width:150; cursor: default>
<div class="nav">
<div class="table">


<div class="table">The Girl</div>
<p style="text-align: justify;">Lanochka. 15. Femail. USA. Pennsylvania. Ukrainian. Christian. September. Libra. 5FT. Short. Curly. Brunette. Hazel Eyes. Swimming. Mascara. Lipgloss. Design. Chad Michael Murray. Josh Hartnet. Candy. Christmas. Pro-Life. Naiv. Curious. Ambitious. Confused <i>easily</i>. Not an early bird. Sleeping. Summer.
<br><a href=http://lana.vibical.com/index.php?action=bio>More</a>
<br><a href=http://x.isolaria.net/raffle.php?ID=57 target="_blank">Try this hawt raffle! Good luck =D</a>
<p>

<div class="table">Navigation</div>
<p style="text-align: right;"><a href=http://lana.vibical.com/index.php?action=lanochka>Lanochka</a>
<br><a href=http://lana.vibical.com/index.php?action=site>Site</a>
<br><a href=http://lana.vibical.com/index.php?action=exits>Exits</a>
<br><a href=http://lana.vibical.com/index.php?action=home>Clear</a>
<br>
<br>

<div class="table">Calendar</div>
<p><center><?php include("b2calendar.php") ?>
<p>

<div class="table">Lana.vibical.com</div>
<p style="text-align: justify;">Hosted since October 18, 2004 by <a href=http://www.vibical.com target="_blank">Becca</a>. It's a personal blog for my own leasure. Best resolution is 1024x768. Mozilla and Internet Explorer friendly. PHP. Ages 13 and up!
<p>

<div class="table">Layout</div>
<p style="text-align: justify;">Version 1. Simplicity. Since 12.21.04. Black White and Gray. Very plain and simple just like my life.
<br><a href=http://www.google.com target="_blank">x</a> <a href=http://www.jasc.com target="_blank">x</a>
 <a href=http://lana.vibical.com/index.php?action=credits>Credits</a>
<p>

<div class="table">Contact</div>
<p><center><FORM METHOD="POST" ACTION="http://cgi46.Freedback.com/mail.pl">
<INPUT TYPE="hidden" NAME="to" VALUE="[email protected]">
<INPUT TYPE="hidden" name="subject" VALUE="Lanochka // Contact">
<INPUT TYPE="hidden" NAME="form" VALUE="http://lana.vibical.com">
<INPUT TYPE="hidden" NAME="admin" VALUE="Lana">
<INPUT TYPE="hidden" NAME="audience" VALUE="67656e6572616c47">
<INPUT TYPE="hidden" NAME="language" VALUE="en">
<INPUT TYPE="text" NAME="name" VALUE="Name: " SIZE="20" MAXLENGTH="">
<br><INPUT TYPE="text" NAME="email" VALUE="Email: " SIZE="20" MAXLENGTH="">
<br><INPUT TYPE="text" NAME="url" VALUE="URL: " SIZE="20" MAXLENGTH="">
<br><SELECT NAME="About" SIZE="1">
   <OPTION VALUE="About?" SELECTED> About?
   <OPTION VALUE=" "> 
   <OPTION VALUE="Question"> Question
   <OPTION VALUE="Request"> Request
   <OPTION VALUE="Bug"> Bug
   <OPTION VALUE="Tutorial"> Tutorial
   <OPTION VALUE="Link Exchange"> Link Exchange
   <OPTION VALUE="Other"> Other
</SELECT>
<br><TEXTAREA NAME="Comment" ROWS="3" COLS="18" WRAP="hard">Dear Lanochka,
</TEXTAREA>
<br><INPUT TYPE="submit" NAME="Yes" VALUE="Send">
<INPUT TYPE="reset" VALUE="Clear">
</FORM></center>
<p>

<div class="table">Stats</div>
<p style="text-align: right;"><script src=http://fastonlineusers.com/online.php?d=http://lana.vibical.com></script> Online</a>
<br><script language='javascript'> ac=388352 ; lang= 'en';  view = 1; </script>
<script language='javascript' src='http://okcounter.com/js/okcounter.js'></script>
<p>


<div class="table">Loved</div>
<p style="text-align: justify;">
<p>

<div class="table">Link Me</div>
<p><center><img src=exits/link4.gif border=0> <img src=exits/link5.gif border=0>
<br><a href=http://lana.vibical.com/index.php?action=linkme>More</a></center>
<p>

<div class="table">Tagboard</div>
<p><center><SCRIPT LANGUAGE="Javascript" TYPE="text/javascript" SRC="http://www.tag-board.com/tagboard.js?boardname=lanochka"></SCRIPT>
<table width="150" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td width="150" height="200" valign=top>
      <iframe src="http://www.tag-board.com/my.tag?name=lanochka" name="tag" width="150" height="200"
marginwidth="0" marginheight="0"></iframe>
      <script>netscape_support();</script>
    </td>
  </tr>
  <tr>
    <td>
      <a href="http://www.tag-board.com/" target="_new">No Spamming or else =P</a>
    </td>
  </tr>
  <tr>
    <td>
      <form action="http://www.tag-board.com/add.tag" method="post" name="tagform" target="tag">
        <input type="hidden" name="name" value="lanochka">
        Name<br>
        <input name="tagname" maxlength="20"><br>
        URL or Email<br>
        <input name="tagurl" maxlength="100"><br>
        Messeges(<a href="http://www.tag-board.com/smilies/smilies.htm" onClick="return pop_up_smilies();" target="_blank">smilies</a>)
        <br>
        <textarea cols="24" rows="3" name="message" wrap></textarea><br>
        <input class=button type="submit" value="TAG" onclick="return Clear_Last_Message_on_Submit();">
      </form>
      <script>rememberme()</SCRIPT>
    </td>
  </tr>
</table></center>

<div class="table">Ignore This</div>
<p style="text-align: right;">
<a href=b2/b2login.php target="_blank">B2</a>
<a href=http://www.livejournal.com/~x___lana target="_blank">LJ</a>
<a href=http://www.whimit.com/profile.php?username=xToxicxBlissx target="_blank">WH</a>
<a href=http://profiles.myspace.com/users/10001605 target="_blank">MS</a>
<a href=http://www.buddyprofile.com/viewprofile.php?username=xtoxikxblissx&u=xtoxikxblissx[ target="blank">AP</a>
<a href=http://www.tag-board.com/admin/posts.tag target="_blank">TB</a>

<div class="table">Disclaimer</div>
<p style="text-align: justify;">All content on <a href=http://lana.vibical.com>Lanochka</a> is copyright to Svetlana Sivchuk unless otherwise stated. All rights reserved. Steal and I shall be forced to kick your ass. =]
<p>

</div>
</div>
 
<div style="position:absolute; left:246; top:300; width:360; cursor: default">

<?php include("$action2.php"); ?>

</div>
</body>
</html>


I just put the calander in you can check it out yourself

http://lana.vibical.com
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 326

PostPosted: Wed Dec 22, 2004 7:55 pm    Post subject: Reply with quote

Aha! You haven't got everything in /b2! Your index.php is in the directory above b2 , so it can't find b2calendar.php which is in /b2. Try replacing
Code:
<?php include("b2calendar.php") ?>
by
Code:
<?php include("b2/b2calendar.php") ?>

It may produce other errors but try that first.
Back to top
View user's profile Send private message
Lanochka



Joined: 01 Dec 2004
Posts: 20

PostPosted: Wed Dec 22, 2004 7:59 pm    Post subject: Reply with quote

I tried doing that before but it doesn't work thats how I got that template function error.
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 326

PostPosted: Wed Dec 22, 2004 8:12 pm    Post subject: Reply with quote

The problem now is that index.php is in the wrong place to see the other files. A number of things you can try:
1. move index.php to /b2 and then redirect http://lana.vibical.com/index.php to http://lana.vibical.com/b2/index.php
or
2. In b2config.php change
Code:
$b2inc = './b2-include';

to
Code:
$b2inc = './b2/b2-include';

though I haven't tested it.

Read the issues involved by having index.php in a different place to the rest of b2, at
http://cafelog.com/board/viewtopic.php?t=2014 mirrored at http://www.sigg3.net/cafelog/files/b2_sep_dir.txt
Back to top
View user's profile Send private message
Lanochka



Joined: 01 Dec 2004
Posts: 20

PostPosted: Wed Dec 22, 2004 8:18 pm    Post subject: Reply with quote

I get this error after I update the template

Quote:
Warning: main(./b2/b2-include/b2template.functions.php): failed to open stream: No such file or directory in /home2/vibical/public_html/lana/b2/b2header.php on line 4

Fatal error: main(): Failed opening required './b2/b2-include/b2template.functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/vibical/public_html/lana/b2/b2header.php on line 4


Ugh I keep getting an error eventhough I changed it back =\
Back to top
View user's profile Send private message
stevem



Joined: 15 Mar 2003
Posts: 326

PostPosted: Wed Dec 22, 2004 8:33 pm    Post subject: Reply with quote

I thought that might happen Sad
Read http://www.sigg3.net/cafelog/files/b2_sep_dir.txt and implement what it says there as that's exactly the case you have ie index.php outside the b2 directory.

Or take the easy way out and move index.php as in 1 of my previous post
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> PHP help All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can 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


Powered by phpBB 2 © 2001, 2002 phpBB Group