lonewolf007 Posted April 19, 2007 Share Posted April 19, 2007 I manage a website for rockinkaye.com This was transfered to me after the origanal designer wasn't able to keep up. My problem is this. From every link in the GALLERY section when you click on Upcoming shows and Galleries it shows this. error. Warning: main(_includes/header/header.php) [function.main]: failed to open stream: No such file or directory in /home/rockinka/public_html/gallery/show_gallery.php on line 43 Warning: main(_includes/header/header.php) [function.main]: failed to open stream: No such file or directory in /home/rockinka/public_html/gallery/show_gallery.php on line 43 Warning: main(_includes/header/header.php) [function.main]: failed to open stream: No such file or directory in /home/rockinka/public_html/gallery/show_gallery.php on line 43 Warning: main() [function.include]: Failed opening '_includes/header/header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rockinka/public_html/gallery/show_gallery.php on line 43 Warning: main(_includes/navigation/internal/internal_nav.htm) [function.main]: failed to open stream: No such file or directory in /home/rockinka/public_html/gallery/show_gallery.php on line 44 Warning: main(_includes/navigation/internal/internal_nav.htm) [function.main]: failed to open stream: No such file or directory in /home/rockinka/public_html/gallery/show_gallery.php on line 44 Warning: main(_includes/navigation/internal/internal_nav.htm) [function.main]: failed to open stream: No such file or directory in /home/rockinka/public_html/gallery/show_gallery.php on line 44 Warning: main() [function.include]: Failed opening '_includes/navigation/internal/internal_nav.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rockinka/public_html/gallery/show_gallery.php on line 44 then after that Warning: main(_includes/footer/footer.php) [function.main]: failed to open stream: No such file or directory in /home/rockinka/public_html/gallery/show_gallery.php on line 131 Warning: main(_includes/footer/footer.php) [function.main]: failed to open stream: No such file or directory in /home/rockinka/public_html/gallery/show_gallery.php on line 131 Warning: main(_includes/footer/footer.php) [function.main]: failed to open stream: No such file or directory in /home/rockinka/public_html/gallery/show_gallery.php on line 131 Warning: main() [function.include]: Failed opening '_includes/footer/footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rockinka/public_html/gallery/show_gallery.php on line 131 Can anyone help me please? I'm still new to PHP and I really want to make this site shine like it should. Quote Link to comment Share on other sites More sharing options...
trq Posted April 19, 2007 Share Posted April 19, 2007 Can we see 10-15 lines of code before and after line 43 of show_gallery.php? Quote Link to comment Share on other sites More sharing options...
lonewolf007 Posted April 19, 2007 Author Share Posted April 19, 2007 Sure. And thank you! starting on line 21 ending on line 44 function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}} } //--> </script> <title>Rockin K' Stoneworks - Stone Lamps By Kevin Kaye</title> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#cccc99" onLoad="MM_preloadImages('../images/gif/index_nav01_.gif','../images/gif/index_nav05_.gif','../images/gif/index_nav08_.gif');"> <table align="center" border="0"> <tr> <td> <table border="0" cellpadding="5" cellspacing="0" align="center"> <tr> <td colspan="2" width="100%" align="center"> <?php include("_includes/header/header.php"); ?> <?php include("_includes/navigation/internal/internal_nav.htm"); ?> thanks again Quote Link to comment Share on other sites More sharing options...
only one Posted April 19, 2007 Share Posted April 19, 2007 the files your trying to include dont exists... check the files for capitals, every letter case makes a difference Quote Link to comment Share on other sites More sharing options...
trq Posted April 19, 2007 Share Posted April 19, 2007 Yeah, either the files don't exist or the directories do not have the correct (read/write) permissions. Quote Link to comment Share on other sites More sharing options...
lonewolf007 Posted April 19, 2007 Author Share Posted April 19, 2007 Sorry I forgot to include the other part of the code. I'm going to post EVERYTHING thats in show_gallery.php ----------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <META name="description" Content="Hand carved stone lamps using Lake Superior stones. Stone lamps to fit any decor-from rustic to contemporary."> <META name="keywords" Content="stonework, stone, furniture, lamps, traverse city, suttons bay, leelanau, grand traverse, ruth kaye, kevin kaye, antique, rock, kaye,"> <script language="JavaScript"> <!-- function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}} } //--> </script> <title>Rockin K' Stoneworks - Stone Lamps By Kevin Kaye</title> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#cccc99" onLoad="MM_preloadImages('../images/gif/index_nav01_.gif','../images/gif/index_nav05_.gif','../images/gif/index_nav08_.gif');"> <table align="center" border="0"> <tr> <td> <table border="0" cellpadding="5" cellspacing="0" align="center"> <tr> <td colspan="2" width="100%" align="center"> <?php include("_includes/header/header.php"); ?> <?php include("_includes/navigation/internal/internal_nav.htm"); ?> </td> </tr> <tr> <td valign="middle"> <div class="base"> <span class="basehead4"><b>Upcoming Shows<br>2007 SHOW SCHEDULE</b><br> Applications are going out for the 2007 season,<br> check back often for updates of shows near you</span> <hr width="60%" align="left" class="border1"> March 23-25<br> <b>The Craftmen's Spring Classic<br> Chantilly, Virginia</b><br> <u><a href="http://www.gilmoreshows.com"></u>www.gilmoreshows.com</a><br> <p> April 13-15<br> <b>The Craftmen's Spring Classic<br> Greensboro, North Carolina</b><br> <u><a href="http://www.gilmoreshows.com">www.gilmoreshows.com</a></u><br> <p> June 9th<br> <b>Central Lake Art Festival</b><br> <b>Central Lake, Michigan</b><br> <u><a href="http://www.artfestival.com">www.artfestival.com</a></u><br> <p> June 16-17<br> <b>Francisco's Farm Art Festival</b><br> <b>Midway, Kentucky</b><br> <u><a href="http://www.franciscosfarm.org">www.franciscosfarm.org</a></u><br> <p> June 30th-July 1st<br> <b>46th Annual Grand Haven Art Festival<br></b> <b>Grand Haven, Michigan<br></b> <u><a href="http://www.artfestival.com">www.artfestival.com</a></u><br> <p> August 4th-5th<br> <b>20th Annual Beaver Creek Arts Festival<br> Beaver Creek Resort, Colorado</b><br> <u><a href="http://www.artfestival.com">www.artfestival.com</a></u><br> <p> August 17-18<br> <b>Frankfort Art Fair<br> Frankfort, Michigan</b><br> <u><a href="http://www.frankfort-elberta.com">www.frankfort-elberta.com</a></u><br> <p> July 21-22 <b>Down Town Boulder Art Fair<br> Boulder, Colorado</b><br> <u><a href="www.boulderdowntown.com/events">www.boulderdowntown.com/events</a></u><br> <p> Sept 7-9<br> <b>Arts & Apples Festival</b><br> <b>Rochester, Michigan.</b><br> <u><a href="www.artandapplesfestival.com">www.artandapplesfestival.com</a></u> <br><br> </div> <img src="sg_lamp1.jpg" class="border1"> </td> <td rowspan="2" valign="top"> <br><br> <img src="sg_vase1.jpg" class="border1"> <br><br> <div class="base"> <span class="basehead4">Gallery Features</span> <hr width="75%" align="left" class="border1"> <a href="http://www.michiganartistsgallery.com">Michigan Artists Gallery</a><br> Downtown Suttons Bay, MI<br> <br><br> MacBeth & Co.<br> 8011 First St.<br> Onekama, Mi 49675 <p> Adams Madams<br> Downtown Central Lake, Michigan <p> <b>Attention: ROCK LOVERS</b><br> Check out our friends at <a href="http://annivorystudios.com/RockKnobs.htm">Ann Ivory Studios</a><br> for more high quality, functional stone products.<br> <p> </div> </td> </tr> </table> </td> </tr> <tr> <td colspan="2" align="center"> <?php include("_includes/footer/footer.php"); ?> </td> </tr> </table> </body> </html> Hopefully this will help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.