Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

wrong DIR_FS_CATALOG definition


Recommended Posts

Hello 

 

I would like to know how to setup  DIR_FS_CATALOG definition,

I have it like this 

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');

Is it wrong definition? if it is wrong  what it  should be?

 

Joe

Link to comment
Share on other sites

It's not wrong but it doesn't work on all servers. I suggest you use the full path like this.

define('DIR_FS_CATALOG', '/home/YOUR USER NAME/public_html/');

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Thank you @@Jack_mcs  

 

Do you have any idea why if I add this   

require(DIR_FS_CATALOG . 'includes/classes/hooks.php');

 get a blank page on the whole site..  I fixed the DIR_FS_CATALOG definition, but still same..

 

Joe

Link to comment
Share on other sites

Does the file includes/classes/hooks.php exist on your server? Install it if it's not there.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...