Guest Posted June 10, 2005 Share Posted June 10, 2005 Hi, I've seen a lot of talk out there about renaming my admin, and it seemed to work until I ran a test order today. I got an error, showing that somehow somewhere it's still calling for the ADMIN directory. The error shows up after I click confirm on the test order, when it would normally bring up checkout_success.php (also looked through this as well). Warning: main(/home/kboulet/www/store/admin/includes/languages/english/invoice.php): failed to open stream: No such file or directory in /home/kboulet/public_html/store/includes/modules/email_invoice/email_invoice.php on line 30 Warning: main(/home/kboulet/www/store/admin/includes/languages/english/invoice.php): failed to open stream: No such file or directory in /home/kboulet/public_html/store/includes/modules/email_invoice/email_invoice.php on line 30 Fatal error: main(): Failed opening required '/home/kboulet/www/store/admin/includes/languages/english/invoice.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kboulet/public_html/store/includes/modules/email_invoice/email_invoice.php on line 30 Now I've looked through the mentioned files and can't seem to sort this out. I'll include my configure.php file and the lines calling for the admin section in the file referenced above (email_invoice around line 30)below. If anyone has a clue - I could use one! When I switch back to calling it 'admin' everything works fine. It's only after I change admin to newname that I have this problem so I'm missing something when I make the change... Thanks for any help! section of Admin configure.php // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'https://secure.xxxxx.com/~xxxxxx'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://ideasbymom.ca'); define('HTTPS_CATALOG_SERVER', 'https://secure.xxxxx.com/~xxxxxx'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/kboulet/public_html/store/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/store/newname/'); // absolute path required define('DIR_FS_ADMIN', '/home/kboulet/public_html/store/newname/'); // absolute pate required define('DIR_WS_CATALOG', '/store/'); // absolute path required define('DIR_FS_CATALOG', '/home/kboulet/public_html/store/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); from email_invoice.php around line 30 if (EMAIL_USE_HTML == 'true') { $ei_admin = DIR_FS_ADMIN; $ei_image_dir = HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES; $ei_template_dir = DIR_WS_MODULES . EMAIL_INVOICE_DIR . INVOICE_TEMPLATE_DIR; $ei_template_file = $ei_template_dir . EMAIL_TEMPLATE_FILE; $ei_temp_file = DIR_WS_MODULES . EMAIL_INVOICE_DIR . FILENAME_EMAIL_CACHE_FILE; $ei_css_path = HTTP_SERVER . DIR_WS_CATALOG . $ei_template_dir; require(DIR_FS_ADMIN . DIR_WS_LANGUAGES . $language . "/" . FILENAME_ORDERS_INVOICE); Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2005 Share Posted June 10, 2005 Okay, so I thought I'd try something else, and I changed the name back to newname in the configure.php file, but forgot to change the actual folder name...the confirmation after placing an order worked fine (obviously the admin didn't). When I changed the folder to newname, then I got the error again. Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2005 Share Posted June 10, 2005 this: define('DIR_FS_DOCUMENT_ROOT', '/home/kboulet/public_html/store/'); needs to be: define('DIR_FS_DOCUMENT_ROOT', '/home/kboulet/public_html'); Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2005 Share Posted June 10, 2005 this:define('DIR_FS_DOCUMENT_ROOT', '/home/kboulet/public_html/store/'); needs to be: define('DIR_FS_DOCUMENT_ROOT', '/home/kboulet/public_html'); <{POST_SNAPBACK}> Thanks for the suggestion, John. I made that change and still have the same problem. Any other suggestions? Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2005 Share Posted June 10, 2005 can you post your configure.php without the database connection info Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2005 Share Posted June 10, 2005 Absolutely, although I didn't change anything in the subject file except the folder name from admin to newname...and secured it using my SSL - that part works fine if I change the folder back to admin. (note: changed document root back to original since that didn't change anything) Here is the file: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'https://secure.xxxxx.com/~xxxxx'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://ideasbymom.ca'); define('HTTPS_CATALOG_SERVER', 'https://secure.xxxxx.com/~xxxxx'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/kboulet/public_html/store/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/store/opscntr/'); // absolute path required define('DIR_FS_ADMIN', '/home/kboulet/public_html/store/opscntr/'); // absolute pate required define('DIR_WS_CATALOG', '/store/'); // absolute path required define('DIR_FS_CATALOG', '/home/kboulet/public_html/store/'); // absolute path required 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/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'removed'); define('DB_SERVER_PASSWORD', 'removed'); define('DB_DATABASE', 'removed'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2005 Share Posted June 10, 2005 I already posted this as being incorrect: define('DIR_FS_DOCUMENT_ROOT', '/home/kboulet/public_html/store/'); is: define('DIR_FS_DOCUMENT_ROOT', '/home/kboulet/public_html'); without seeing the full link, not much else i can say, just make cure you have opscntr created under store better off to use $DOCUMENT_ROOT for the definition define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2005 Share Posted June 10, 2005 I already posted this as being incorrect:define('DIR_FS_DOCUMENT_ROOT', '/home/kboulet/public_html/store/'); is: define('DIR_FS_DOCUMENT_ROOT', '/home/kboulet/public_html'); without seeing the full link, not much else i can say, just make cure you have opscntr created under store <{POST_SNAPBACK}> I already changed that, just had a saved copy of the file that I copied into the post. It is definitely called the right name (and what a bar I am for posting it too - trying to be too stealthy removing stuff and forgot something!). Here is the link when I get the error (is that the link you're referring to?): Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2005 Share Posted June 10, 2005 what is the contribution you are using for emailing invoices? that is what is not being found. Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2005 Share Posted June 10, 2005 what is the contribution you are using for emailing invoices? that is what is not being found. <{POST_SNAPBACK}> Yeah...it's fancier invoice and packing slip....I'm just not sure why it works before I change the name. I haven't found a reference to the admin folder in any of the related files, but I will search again in the morning. Clearly if nothing else is wrong with the changes I'm making directly related to renaming the admin, then there must be something wrong in one of those files from the contrib. Thanks for your help so far! Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2005 Share Posted June 10, 2005 i believe the contrib is calling the admin directly rather than thru the osc call. the site looks good, i would suggest an ssl cert of your own, as everything gets so long in the browser, might scare some people away Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2005 Share Posted June 10, 2005 i believe the contrib is calling the admin directly rather than thru the osc call.the site looks good, i would suggest an ssl cert of your own, as everything gets so long in the browser, might scare some people away <{POST_SNAPBACK}> I actually found the culprit. It was in a configure file that was specific to Fancier invoice & packing slip...it required the absolute path, and I somehow missed it the first time (it was late, sorry!) so now it works...thanks for helping me! Thanks also for the feedback on the site, I am looking at some SSL options now. I don't like the look of that shared one for that reason and because it doesn't even have my URL in the link. So, definitely will change it before I launch (and will change the name of the admin again now that I've given it away!!) Have a good weekend! Link to comment Share on other sites More sharing options...
Guest Posted June 10, 2005 Share Posted June 10, 2005 imho, changing the admin, as long as it is protected doesnt make any difference Link to comment Share on other sites More sharing options...
Guest Posted June 14, 2005 Share Posted June 14, 2005 imho, changing the admin, as long as it is protected doesnt make any difference <{POST_SNAPBACK}> So, changing the name was moot to begin with? Glad I went through that fun!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.