After installing the new 3.0.2 version of Edit Orders (I was previously using an old 1.0 version), together with the latest super orders 3 add-on, I too get some of the issues mentioned in this thread.
My ZC shop is using latest 1.3.9h version, with several add-ons, and works with French and English languages installed (English = 1, French = 2).
I have the following error message :
Code:
[19-Dec-2010 22:52:47] PHP Warning: require(includes/languages/1.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in *****/web/adm/includes/init_includes/init_languages.php on line 35
[19-Dec-2010 22:52:47] PHP Warning: require(includes/languages/1.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in *****/web/adm/includes/init_includes/init_languages.php on line 35
[19-Dec-2010 22:52:47] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/1.php' (include_path='.:/opt/php/lib/php') in *****/web/adm/includes/init_includes/init_languages.php on line 35
I also noticed that icons are not displayed on the edit_orders.php page, since the link of the icons is wrong, too, as it is for example :
Code:
includes/languages/2/images/buttons/button_back.gif
where "2" should be in fact "french".
Interestingly, part of the problem can be solved by removing lines 28-30 in edit_orders.php
Code:
//Begin Add language support
//$language = (int)$_SESSION['languages_id'];
//End Add language support
Without those lines, the icons are now displayed properly, but I get another problem : If I click on "add products", I get the following error :
Code:
1054 Unknown column 'french' in 'on clause'
in:
[SELECT products_name, p.products_id, categories_name, ptc.categories_id FROM products p LEFT JOIN products_description pd ON (pd.products_id=p.products_id AND pd.language_id= french) LEFT JOIN products_to_categories ptc ON ptc.products_id=p.products_id LEFT JOIN categories_description cd ON (cd.categories_id=ptc.categories_id AND cd.language_id= french) ORDER BY categories_name]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Here, we should have in the code "2" instead of "french".
I believe that all those problems come from a bad handling of the language codes - it should be sometimes the name of the language, like "french", and sometimes the corresponding code letter, like "2" for me.
Hope this will help to advance toward a solution...
Thanks,
sanji
Bookmarks