This is a discussion on Add new page probs within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi, I have added a new page support.php After click on the link to new page I get this Fatal ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, I have added a new page support.php After click on the link to new page I get this Fatal error: require() [function.require]: Failed opening required '' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/crxindus/public_html/templates/aabox/main_page.tpl.php on line 127 This is that line in main_page.tpl.php line 127 <?php require (bts_select ('content')); // BTSv1.5 ?> ------------------------------------------- If you need the full code, I'll post it. Thanks oz |
| Sponsored Links | ||
| ||
| |
|
#2
| ||||
| ||||
| Did you create the corresponding support.tpl.php file in your templates content directory? Did you also define it in filenames.php?
__________________ Michael Sasek osCMax Developer
|
|
#3
| |||
| |||
| Yes I did that and am currently double checking everything. I'll be back with the results.. hopefully good! Thanks |
|
#4
| |||
| |||
| Looks like I may have the problem area. In the new aboutus.php file I have this.. require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US)); $content = CONTENT_ABOUT_US; $content_template = TEMPLATENAME_ABOUT_US; include (bts_select('main', $content_template)); // BTSv1.5 ------------------ The problem is here.. $content_template = TEMPLATENAME_ABOUT_US; If I change this to say.. $content_template = TEMPLATENAME_SHIPPING; it shows me the Shipping Page's content with an 'About us' title as I was wanting to change the shipping text to about us stuff. When I have it as $content_template = TEMPLATENAME_ABOUT_US; I get the error.. Fatal error: require() [function.require]: Failed opening required '' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/crxindus/public_html/templates/aabox/main_page.tpl.php on line 127 ------------------- I do have an aboutus content page in fallback/content and I have checked it text and it seems correct. Thanks oz |
|
#5
| |||
| |||
| Change $content_template = TEMPLATENAME_ABOUT_US; or $content_template = TEMPLATENAME_SUPPORT; to $content_template = TEMPLATENAME_STATIC; That should fix your problem Blayne |
| The Following User Says Thank You to bkpie For This Useful Post: | ||
ozstar (05-04-2007) | ||
|
#6
| |||
| |||
| Thanks bkpie. You certainly do deserve a pie for that! 'preciate it! oz |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| not receiving confirmation emails checkout_process.php probs | girlguidegeek | osCMax v2 Features Discussion | 2 | 09-19-2006 02:23 PM |
| Printable catalog probs | humanode | osCommerce 2.2 Modification Help | 0 | 12-01-2005 11:24 PM |
| EP Probs | Milmod | osCommerce 2.2 Modification Help | 4 | 02-28-2005 04:36 PM |
| Need help with some probs. ASAP! | genu | osCommerce 2.2 Modification Help | 5 | 02-06-2005 08:07 PM |
| Step 2: osCommerce Configuration Probs | SonOSatan | osCommerce 2.2 Installation Help | 1 | 02-10-2003 05:56 AM |