Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie error no doubt

Status
Not open for further replies.

matanzas

Technical User
Apr 15, 2006
184
CA
Can somone tell me what this error means
Fatal error: main(): Failed opening required '' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pencils/public_html/cart/includes/templates/bsd/templates/tpl_gallery_default.php on line 37
Looking at line 37 isn't telling me anything as it looks like it's supposed to look.

Thanks
 
Insufficient data for a meaningful answer.

What does the script look like from the beginning of the script up to that line 37?


Want the best answers? Ask the best questions! TANSTAAFL!
 
Here is the page
Code:
?>
<table  width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td class="breadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></td>
  </tr>
  <tr>
    <td class="pageHeading" align="center"><h1><?php echo HEADING_TITLE; ?></h1></td>
  </tr>
<?php if (TEXT_INFORMATION) { ?>
  <tr>
    <td class="main"><?php echo TEXT_INFORMATION; ?></td>
  </tr>
<?php } ?>
<?php if (DEFINE_GALLERY_STATUS == '1') { ?>
  <tr>
    <td class="plainBox"><?php require($define_gallery); ?></td>
  </tr>
<?php } ?>
  <tr>
    <td class="main"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></td>
  </tr>
</table>
 
It looks to me like you've neglected to include some code at the beginning.

If the offending line is:

<td class="plainBox"><?php require($define_gallery); ?></td>

Then I'd gues that $define_gallery doesn't have a value in it.


Want the best answers? Ask the best questions! TANSTAAFL!
 
I second Sleipnir observation.

What is supposed to be in $define_gallery???

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks for the intput. It's resolved now.
Sorry for the delay, had to leave town unexpectedly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top