Dan_ Posted November 8, 2009 Posted November 8, 2009 I have installed a payment module to interface osCommerce with some accounting software and I can download orders from my store and post them into quickbooks, however when I try then to update the status of my order back into quickbooks I get the following error, Client found response content type of 'text/html' but expected 'text/xml' the request failed with the error message: -- <br /> <b>fatal error</b>: Call to undefined function tep_session_save_path() in <b>C:\XAMPP\htdocs\admin\includes\languages\english.php<b> on line <b>594</b><br /> This is the text from line 594, define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Warning: The sessions directory does not exist: ' . tep_session_save_path() . '. Sessions will not work until this directory is created.'); I believe this is looking for a tep directory which I have created but does not seem to recognise. I have written to the developer of the application, however I’m more inclined to believe it's an error on my end. Any assistance is appreciated.
BryceJr Posted November 8, 2009 Posted November 8, 2009 Log in to your osc admin panel >>Configuration>>Sessions->Session Directory - point it to the folder you created.
Dan_ Posted November 8, 2009 Author Posted November 8, 2009 Log in to your osc admin panel >>Configuration>>Sessions->Session Directory - point it to the folder you created. In >>Configuration>>Sessions->Session Directory it already lists tmp as the folder. is tep a typo in the code?
BryceJr Posted November 8, 2009 Posted November 8, 2009 Create a folder called "temp_session" in your htdocs folder. Change session directory from "tmp" to "C:\XAMPP\htdocs\admin\temp_session"
Dan_ Posted November 8, 2009 Author Posted November 8, 2009 Thanks for your assistance, I have made the changes as suggested and it still generates the same error.
BryceJr Posted November 8, 2009 Posted November 8, 2009 You need to find out which addon you installed require a sesssion directory/folder. Stock oscommerce has 302 lines in admin\includes\languages\english.php.
Dan_ Posted November 8, 2009 Author Posted November 8, 2009 You need to find out which addon you installed require a sesssion directory/folder. Stock oscommerce has 302 lines in admin\includes\languages\english.php. Sorry BryceJr can you please clarify the above statement? I'm looking at this website for someone and there is around 1400 lines of code and comments in the admin\includes\languages\english.php here is the nominated line, define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Warning: The sessions directory does not exist: ' . tep_session_save_path() . '. Sessions will not work until this directory is created.'); Should there be a directory in between the brackets here? -----------------------------------------------------------------^
♥FWR Media Posted November 8, 2009 Posted November 8, 2009 The advice so far has been incorrect. <b>fatal error</b>: Call to undefined function tep_session_save_path() in <b>C:\XAMPP\htdocs\admin\includes\languages\english.php<b> on line<b>594</b><br /> This means that the function tep_session_save_path() has not been defined when the file .. admin\includes\languages\english.php calls it. The thing is that admin\includes\languages\english.php should not call that function .. therefore you have by mistake overwritten admin\includes\languages\english.php with the file from catalog\includes\languages\english.php Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Dan_ Posted November 8, 2009 Author Posted November 8, 2009 Many thanks for your response FWR Media, the excerpt is a copy from a store given to me which is yet to have any editing done to it. According to your explanation it would appear as it the two english.php files have been put in the incorrect locations and in essence have been swapped? Is my understanding of this correct? If so is it just a case of swapping them back?
♥FWR Media Posted November 8, 2009 Posted November 8, 2009 Many thanks for your response FWR Media, the excerpt is a copy from a store given to me which is yet to have any editing done to it. According to your explanation it would appear as it the two english.php files have been put in the incorrect locations and in essence have been swapped? Is my understanding of this correct? If so is it just a case of swapping them back? I doubt if they have been swapped, more usual that somebody uploaded the catalog file to the admin side in error thereby overwriting it. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Dan_ Posted November 8, 2009 Author Posted November 8, 2009 I doubt if they have been swapped, more usual that somebody uploaded the catalog file to the admin side in error thereby overwriting it. Thanks again for your kind assistance, I'm currently looking through both of the files side by side and they do appear to be totally different, would it be worth posting the code here, or could you please tell me a way to determine which file should be in which folder (i.e. is there some unique reference which will help clarify the issue?) Scratch that, I have found large sections that almost identical and others which are not, the question is how to clean it up so it's correct?
Dan_ Posted November 9, 2009 Author Posted November 9, 2009 The advice so far has been incorrect. This means that the function tep_session_save_path() has not been defined when the file .. I have had a look at another oscommerce store in both of the english.php files and I can not find in either of those where the tep_session_save_path has been defined. Where in oscommerce is this defined?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.