Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to include path correctly


Tidbeck

Recommended Posts

Posted

New at html and this is prob easy. After installing an add on OptionTypes i get the following error on for example my product_info.php:

 

Fatal error: require() [function.require]: Failed opening required 'includes/column_left.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/myownart/public_html/product_info.php on line 68

 

how to properly write this path?

 

Seem to get the same error in several of the php files

 

Anyone?

 

think the code needing editing is below:

 

 

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

Posted

You've installed a v2.2 contribution on a v2.3.1 site.

 

It won't work without recoding.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

In version 2.3.1 as "Germ" stated

Failed opening required 'includes/column_left.php' is no more used.

Its replaced by require(DIR_WS_INCLUDES . 'template_top.php');

 

So which ever contrib needs left column or right column will need some code modification.

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

any other add ons or configurations that might give me the feature of customers uploading files during or after checkout?

 

Thanks

Elin

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...