View previous topic :: View next topic |
Author |
Message |
Lanochka
Joined: 01 Dec 2004 Posts: 20
|
Posted: Wed Dec 22, 2004 5:16 pm Post subject: archives/calendar error |
|
|
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 |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 326
|
Posted: Wed Dec 22, 2004 6:27 pm Post subject: Re: archives/calendar error |
|
|
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 |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 326
|
Posted: Wed Dec 22, 2004 6:28 pm Post subject: Re: archives/calendar error |
|
|
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 |
|
 |
Lanochka
Joined: 01 Dec 2004 Posts: 20
|
Posted: Wed Dec 22, 2004 6:29 pm Post subject: |
|
|
Yes, it's all there. |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 326
|
Posted: Wed Dec 22, 2004 6:39 pm Post subject: |
|
|
So is b2calendar.php in /b2 and b2template.functions.php in /b2/b2-include which is where they should be? |
|
Back to top |
|
 |
Lanochka
Joined: 01 Dec 2004 Posts: 20
|
Posted: Wed Dec 22, 2004 6:40 pm Post subject: |
|
|
Yes everything's where it's supposed to be |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 326
|
Posted: Wed Dec 22, 2004 7:00 pm Post subject: |
|
|
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 |
|
 |
Lanochka
Joined: 01 Dec 2004 Posts: 20
|
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 326
|
Posted: Wed Dec 22, 2004 7:34 pm Post subject: |
|
|
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 |
|
 |
Lanochka
Joined: 01 Dec 2004 Posts: 20
|
Posted: Wed Dec 22, 2004 7:40 pm Post subject: |
|
|
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 |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 326
|
Posted: Wed Dec 22, 2004 7:55 pm Post subject: |
|
|
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 |
|
 |
Lanochka
Joined: 01 Dec 2004 Posts: 20
|
Posted: Wed Dec 22, 2004 7:59 pm Post subject: |
|
|
I tried doing that before but it doesn't work thats how I got that template function error. |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 326
|
|
Back to top |
|
 |
Lanochka
Joined: 01 Dec 2004 Posts: 20
|
Posted: Wed Dec 22, 2004 8:18 pm Post subject: |
|
|
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 |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 326
|
Posted: Wed Dec 22, 2004 8:33 pm Post subject: |
|
|
I thought that might happen
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 |
|
 |
|