Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Failed opening required 'DIR_WS_FUNCTIONScompatibility.php'


ron123

Recommended Posts

Posted

Hi,

 

After installing Fancier Invoice I've got the next error at my shops page:

 

Fatal error: require() [function.require]: Failed opening required 'DIR_WS_FUNCTIONScompatibility.php' (include_path='.:/usr/local/php5/lib/php') in /data/home/inyo01/domains/webshop.nl/public_html/oscommerce/includes/application_top.php on line 41

 

File application_top.php is on the right place

File compatibility.php is: \catalog\includes\functions\compatibility.php

Line 40 and 41 in application.php:

// some code to solve compatibility issues

require(DIR_WS_FUNCTIONS . 'compatibility.php');

 

I tried multiple solutions, but I dont get it.

My webshop (testversion) is offline due the error.

Admin is working Fancier Invoice is working very fancy.

osC 2.3.1. version.

Thanks for your reply!

 

Ron

Posted

You've lost the define for DIR_WS_FUNCTIONS in your config file.

 

  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

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

Thanks! that problem is solved! I changed your line in: define('DIR_WS_FUNCTIONS', 'functions/'); But I think there's an problem with the configure.php I downloaded with this contribution. Beacause the next error is:

 

Fatal error: require() [function.require]: Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/local/php5/lib/php') in /data/home/inyo01/domains/inyoga.nl/public_html/oscommerce/includes/application_top.php on line 56

 

So ofcourse I tried editing: define('DIR_WS_INCLUDES', 'filenames./'); to the configure.php, but it didn't work.

 

Anyone knows to solve this of maybe have a complete working configure.php (catalog/includes/local/configure.php)

Posted
  define('DIR_WS_INCLUDES', 'includes/');

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

yeah tried that:

 

// Folder Definitions

define('DIR_FS_ADMIN', '/home/http://www.website.nl/public_html/oscommerce/'); // absolute path required

define('EMAIL_INVOICE_DIR', 'email_invoice/');

define('INVOICE_TEMPLATE_DIR', 'templates/');

define('DIR_WS_FUNCTIONS', 'functions/');

define('DIR_WS_INCLUDES', 'includes/');

 

// Email Invoice File Definitions

define('FILENAME_EMAIL_INVOICE', 'email_invoice.php');

define('FILENAME_EMAIL_CACHE_FILE', 'temp_cache.php');

define('FILENAME_ORDERS_INVOICE', 'invoice.php');

 

 

But still the same error! :(

 

edit: Oh okay, my connection went loose. Jim , it worked (I think), the new error: Unable to connect to database server!

Posted

I checked the absolute path in my osC admin/tools/server info / environment / SCRIPT_FILENAME = /home/inyo01/domains/website.nl/public_html/oscommerce/admin/server_info.php

 

But maybe this is wrong? Or is it because this Fancier Invoice is not made for osC 3.2.1?

 

Thank you for your reply!

Posted

I don't see a 2.3.1 compliant version.

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

So from your expertise it wouldn't work?

 

Okay thanks for your time!

 

If you know an other invoice contri wich makes invoicenumbers and invoicedates, please let me know.

 

Another thanks!

 

thumbsup.gif

  • 1 month later...
Posted

Add thesee to your includes/config.php (do not create a new one in local as instructed) and it works fine, the only problem at the moment is the account_history_info.php file that needs modifying for 2.3.1 (column left / right layout issues)

 

define('EMAIL_INVOICE_DIR', 'email_invoice/');

define('INVOICE_TEMPLATE_DIR', 'templates/');

 

// Email Invoice File Definitions

define('FILENAME_EMAIL_INVOICE', 'email_invoice.php');

define('FILENAME_EMAIL_CACHE_FILE', 'temp_cache.php');

define('FILENAME_ORDERS_INVOICE', 'invoice.php');

Archived

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

×
×
  • Create New...