Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Failed opening required 'DIR_WS_FUNCTIONScompatibility.php'


  • You cannot reply to this topic
8 replies to this topic

#1 ron123

  • Community Member
  • 12 posts
  • Real Name:ronron

Posted 11 December 2011, 12:04

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

Edited by ron123, 11 December 2011, 12:05.


#2 germ

  • Community Member
  • 13,587 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 11 December 2011, 14:21

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.

"Headers already sent" - The definitive help

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

SSL Implementation Help

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

#3 ron123

  • Community Member
  • 12 posts
  • Real Name:ronron

Posted 11 December 2011, 16:10

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)

#4 germ

  • Community Member
  • 13,587 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 11 December 2011, 16:33

  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.

"Headers already sent" - The definitive help

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

SSL Implementation Help

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

#5 ron123

  • Community Member
  • 12 posts
  • Real Name:ronron

Posted 11 December 2011, 16:42

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!

Edited by ron123, 11 December 2011, 16:48.


#6 ron123

  • Community Member
  • 12 posts
  • Real Name:ronron

Posted 11 December 2011, 17:24

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!

#7 germ

  • Community Member
  • 13,587 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 11 December 2011, 19:30

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.

"Headers already sent" - The definitive help

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

SSL Implementation Help

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

#8 ron123

  • Community Member
  • 12 posts
  • Real Name:ronron

Posted 12 December 2011, 12:10

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!

[img]http://forums.oscommerce.com//public/style_emoticons/default/thumbsup.gif[/img]

#9 ShaGGy

  • Community Member
  • 59 posts
  • Real Name:Les

Posted 24 January 2012, 04:06

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');