Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Include_path and require_once


goldoi

Recommended Posts

Posted

Hello everyone,

I try to make a new box with dynamenu included in! All my code is ready but i must to fix something before.

My box is here: /wsb5375180001/shop/includes/modules/boxes/bm_flyout.php

For working, i need to call files with:

 

require_once'includes/functions/dynamenu/lib/PHPLIB.php';
or
require_once(DIR_WS_FUNCTIONS . './dynamenu/lib/layersmenu-common.inc.php');

 

In: /wsb5375180001/shop/includes/functions/dynamenu/lib/PHPLIB.php

 

I got the error :

 

Warning: require_once(includes/functions/dynamenu/lib/PHPLIB.php) [function.require-once]: failed to open stream: No such file or directory in /homepages/46/d289027439/htdocs/wsb5375180001/shop/includes/modules/boxes/bm_flyout.php on line 27

 

Fatal error: require_once() [function.require]: Failed opening required 'includes/functions/dynamenu/lib/PHPLIB.php' (include_path='.:/usr/lib/php5') in /homepages/46/d289027439/htdocs/wsb5375180001/shop/includes/modules/boxes/bm_flyout.php on line 27

 

I know that include_path doesn't work how to solve the problem ?

Thanx for your help!

 

Goldoi

Posted

Yes, but in fact normally this addon when working on 2.2 have the box.php file in includes/boxes instead of includes/modules/boxes.

So, i have check the path another time, but it still be the same. See the file attached on line 27&28.

And this pictures for the content of dynamenu file. Where should i place this libraries ?

 

pppppppppppm.png

bm_flyout.php

Posted

Yes it's works fine with 2.3.1 if i include it in header or footer. But it's why i want to rewrite the code to use in a box.

Archived

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

×
×
  • Create New...