KJ666 Posted October 29, 2008 Posted October 29, 2008 Getting this area any help please ?? Fatal error: require() [function.require]: Failed opening required '/home/YOUR_DOMAIN/public_html/catalog/admin/includes/languages/english/invoice.php' (include_path='.:/usr/local/php52/pear') in /home/kjexotic/public_html/includes/modules/email_invoice/email_invoice.php on line 30 I have moved my shop into a diffrent folder not long ago from the root folder to a subfolder eg from www.domain.com to www.domain.com/shop
web-project Posted October 29, 2008 Posted October 29, 2008 this error shows incorrect path to your file. Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you.
arietis Posted October 30, 2008 Posted October 30, 2008 you need to update both copies of your configure.php files to indicate that the shop is now in the /shop directory and not in root.
KJ666 Posted October 30, 2008 Author Posted October 30, 2008 O dear i cant edit them files. [a fatal error or timeout occurred while processing this directive] Also what do i edit :blink: Admin one define('HTTP_SERVER', 'http://kjexotics.co.uk'); define('HTTP_CATALOG_SERVER', 'http://kjexotics.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://kjexotics.co.uk'); define('ENABLE_SSL_CATALOG', false); define('DIR_FS_DOCUMENT_ROOT', '/home/kjexotic/public_html/'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/home/kjexotic/public_html/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home/kjexotic/public_html/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
Guest Posted October 30, 2008 Posted October 30, 2008 how are you trying to edit them? You need to use ftp to download the file - then edit - then re-upload
KJ666 Posted October 30, 2008 Author Posted October 30, 2008 Which parts do i need to edit need it so it like this /public_html/shop/ define('HTTP_SERVER', 'http://kjexotics.co.uk'); define('HTTPS_SERVER', 'https://kjexotics.co.uk'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'kjexotics.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'kjexotics.co.uk'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/kjexotic/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); You lot work far to fast lol
Guest Posted October 30, 2008 Posted October 30, 2008 shop/includes/configure.php define('HTTP_SERVER', 'http://kjexotics.co.uk'); define('HTTPS_SERVER', 'https://kjexotics.co.uk'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'kjexotics.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'kjexotics.co.uk'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/shop/'); define('DIR_WS_HTTPS_CATALOG', '/shop/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/kjexotic/public_html/shop/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
Guest Posted October 30, 2008 Posted October 30, 2008 admin/includes/configure.php define('HTTP_SERVER', 'http://kjexotics.co.uk'); define('HTTP_CATALOG_SERVER', 'http://kjexotics.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://kjexotics.co.uk'); define('ENABLE_SSL_CATALOG', false); define('DIR_FS_DOCUMENT_ROOT', '/home/kjexotic/public_html/shop/'); define('DIR_WS_ADMIN', '/shop/admin/'); define('DIR_FS_ADMIN', '/home/kjexotic/public_html/shop/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home/kjexotic/public_html/shop/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
KJ666 Posted October 30, 2008 Author Posted October 30, 2008 Thanks, though how come you changed the define('ENABLE_SSL', true); from false, in admin/inculdes ???
Guest Posted October 30, 2008 Posted October 30, 2008 that was not the admin one but the shop one. I saw you had a https:// address configured but you have SSL turned off thus disabling it - if you haven't install a SSL cert then leave this at false (for the short period) until you get one (essential)
KJ666 Posted October 30, 2008 Author Posted October 30, 2008 Thanks, not got one though in the process just sorting moving around first. Thanks. EDIT: i now get this on the .co.uk/shop/ Warning: I am able to write to the configuration file: /home/kjexotic/public_html/shop/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.
Guest Posted October 30, 2008 Posted October 30, 2008 You need to change the permissions on the configure.php file to make it read only - on some hosts you can do this with you ftp client, on others you need to use cPanel or similar. The permissions need to be set to 644 or lower. Be sure to read this thread to secure your site
KJ666 Posted October 30, 2008 Author Posted October 30, 2008 Thanks i just found out to change the permissions i forgot about that. Next thing is i just relised i have another configure.php file in includes//local/configure.php Looks the same do i just edit that the same as the others ?? define('HTTP_SERVER', 'http://kjexotics.co.uk'); define('HTTPS_SERVER', 'https://kjexotics.co.uk'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'kjexotics.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'kjexotics.co.uk'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/kjexotic/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); But it has this on the end // Folder Definitionsdefine('DIR_FS_ADMIN', '/home/kjexotic/public_html/shop/admin/'); // absolute path requireddefine('EMAIL_INVOICE_DIR', 'email_invoice/');define('INVOICE_TEMPLATE_DIR', 'templates/');// Email Invoice File Definitionsdefine('FILENAME_EMAIL_INVOICE', 'email_invoice.php');define('FILENAME_EMAIL_CACHE_FILE', 'temp_cache.php');define('FILENAME_ORDERS_INVOICE', 'invoice.php');
Recommended Posts
Archived
This topic is now archived and is closed to further replies.