osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Add new page probs

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 05-04-2007, 06:40 PM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 129
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 7
ozstar is on a distinguished road
Default Add new page probs

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 05-04-2007, 07:21 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,091
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Add new page probs

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


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 05-04-2007, 07:30 PM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 129
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 7
ozstar is on a distinguished road
Default Re: Add new page probs

Yes I did that and am currently double checking everything.

I'll be back with the results.. hopefully good!

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 05-04-2007, 07:44 PM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 129
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 7
ozstar is on a distinguished road
Default Re: Add new page probs

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 05-04-2007, 08:17 PM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 298
Thanks: 23
Thanked 35 Times in 34 Posts
Rep Power: 6
bkpie has a spectacular aura aboutbkpie has a spectacular aura about
Default Re: Add new page probs

Change

$content_template = TEMPLATENAME_ABOUT_US;
or
$content_template = TEMPLATENAME_SUPPORT;

to

$content_template = TEMPLATENAME_STATIC;

That should fix your problem

Blayne
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to bkpie For This Useful Post:
ozstar (05-04-2007)
  #6  
Old 05-04-2007, 08:25 PM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 129
Thanks: 12
Thanked 0 Times in 0 Posts
Rep Power: 7
ozstar is on a distinguished road
Default Re: Add new page probs

Thanks bkpie.

You certainly do deserve a pie for that!

'preciate it!

oz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 03:12 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax