philrey212 Posted October 15, 2013 Share Posted October 15, 2013 Hello, I upgraded my site from 1.3.7 all the way to 1.5.6. I did it step by step (1.3.7--> 1.4.1 --> 1.4.2.5 --> 1.4.9 --> 1.5.2 --> 1.5.5). First in a TEST environment (folder and DB), online but it was too slow, then locally. When everything worked locally (and it took quite some time), I uploaded everything (files and DB) online in TEST. Everything was working fine. I then copied the DB to PROD and did the same for the files. I modified the settings for the URI and the DB connectivity in the DB itself. I was so happy that everything worked finally. Unfortunately, the product details give me a blank page in the Back Office. (see print screen) Nothing wrong in Front Office. I searched the forum but did not find any help. So here I am. If you have any idea where I can look to solve this, it would help me a lot. I don't want to start the whole thing again. Many thanks. Link to comment Share on other sites More sharing options...
NemoPS Posted October 16, 2013 Share Posted October 16, 2013 Hi, and welcome to the forums! Can you try turning on errors as described in my signature and visit the broken page again? Link to comment Share on other sites More sharing options...
philrey212 Posted October 16, 2013 Author Share Posted October 16, 2013 Hello Nemo, Thanks for your reply. I already tried to turn on errors but I don't see any error. Just a blank page. I turned it off again to avoid the "deprecated Display() ..." in the Front Office. What file does display the Product Details in BO? Is it part of the theme? Cheers Phil Link to comment Share on other sites More sharing options...
NemoPS Posted October 16, 2013 Share Posted October 16, 2013 Product tabs content is generated via ajax. Can you open the debug console of your browser and check if you have any error on that page? Link to comment Share on other sites More sharing options...
philrey212 Posted October 16, 2013 Author Share Posted October 16, 2013 OK. Some errors indeed. See attached files Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2013 Share Posted October 16, 2013 it looks like issue with jquery, can you check sources of your website (right click > show page source) is there jquery library attached? Link to comment Share on other sites More sharing options...
philrey212 Posted October 16, 2013 Author Share Posted October 16, 2013 OK. What am I looking for in the page source? I know a little bit but when it becomes too technical, it goes "above my head" Here is the info in the HEAD tag: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 lt-ie6 " lang="en"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8 ie7" lang="en"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9 ie8" lang="en"> <![endif]--> <!--[if gt IE 8]> <html lang="fr" class="no-js ie9" lang="en"> <![endif]--> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="robots" content="NOFOLLOW, NOINDEX" /> <title>Produits - PrestaShop™</title> <script type="text/javascript"> var help_class_name = 'AdminProducts'; var iso_user = 'fr'; var country_iso_code = 'BE'; var _PS_VERSION_ = '1.5.6.0'; var helpboxes = 1; var roundMode = 2; var youEditFieldFor = ''; var autorefresh_notifications = ''; var new_order_msg = 'Une nouvelle commande a été passée sur votre boutique.'; var order_number_msg = 'Numéro de la commande :'; var total_msg = 'Total :'; var from_msg = 'De :'; var see_order_msg = 'Voir la commande'; var new_customer_msg = 'Un nouveau client s'est inscrit sur votre boutique.'; var customer_name_msg = 'Nom du client :'; var see_customer_msg = 'Voir le client'; var new_msg = 'Un nouveau message a été publié sur votre boutique.'; var excerpt_msg = 'Extrait :'; var see_msg = 'Lire le message'; var token_admin_orders = '633128a02398dd806f4ed991ebe882c1'; var token_admin_customers = '63a6ab9cf0ec72a6995ea457b6c78215'; var token_admin_customer_threads = '095d226560ed585687ed84226c635192'; var currentIndex = 'index.php?controller=AdminProducts'; var choose_language_translate = "Choisir la langue"; </script> <link href="/www/admin123/../css/admin.css" rel="stylesheet" type="text/css" media="all" /> <link href="/www/admin123/../admin123/themes/default/css/admin.css" rel="stylesheet" type="text/css" media="all" /> <link href="/www/admin123/../js/jquery/plugins/treeview-categories/jquery.treeview-categories.css" rel="stylesheet" type="text/css" media="all" /> <link href="/www/admin123/../js/jquery/plugins/timepicker/jquery-ui-timepicker-addon.css" rel="stylesheet" type="text/css" media="all" /> <script type="text/javascript" src="/www/admin123/../js/admin.js"></script> <script type="text/javascript" src="/www/admin123/../js/toggle.js"></script> <script type="text/javascript" src="/www/admin123/../js/tools.js"></script> <script type="text/javascript" src="/www/admin123/../js/ajax.js"></script> <script type="text/javascript" src="/www/admin123/../js/toolbar.js"></script> <script type="text/javascript" src="/www/admin123/../js/notifications.js"></script> <script type="text/javascript" src="/www/admin123/../js/helpAccess.js"></script> <script type="text/javascript" src="/www/admin123/../js/productTabsManager.js"></script> <script type="text/javascript" src="/www/admin123/../js/admin-products.js"></script> <script type="text/javascript" src="/www/admin123/../js/attributesBack.js"></script> <script type="text/javascript" src="/www/admin123/../js/price.js"></script> <script type="text/javascript" src="/www/admin123/../js/tiny_mce/tiny_mce.js"></script> <script type="text/javascript" src="/www/admin123/../js/tinymce.inc.js"></script> <script type="text/javascript" src="/www/admin123/../js/fileuploader.js"></script> <script type="text/javascript" src="/www/admin123/../js/admin-dnd.js"></script> <script type="text/javascript" src="/www/admin123/../js/jquery/plugins/treeview-categories/jquery.treeview-categories.js"></script> <script type="text/javascript" src="/www/admin123/../js/jquery/plugins/treeview-categories/jquery.treeview-categories.async.js"></script> <script type="text/javascript" src="/www/admin123/../js/jquery/plugins/treeview-categories/jquery.treeview-categories.edit.js"></script> <script type="text/javascript" src="/www/admin123/../js/admin-categories-tree.js"></script> <script type="text/javascript" src="/www/admin123/../js/jquery/ui/jquery.ui.progressbar.min.js"></script> <script type="text/javascript" src="/www/admin123/../js/jquery/plugins/timepicker/jquery-ui-timepicker-addon.js"></script> <script type="text/javascript" src="/www/admin123/../js/form.js"></script> <link rel="icon" type="image/vnd.microsoft.icon" href="/img/favicon.ico" /> <link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico" /> <!--[if IE]> <link type="text/css" rel="stylesheet" href="http://www.culturejeux.be/css/admin-ie.css" /> <![endif]--> <style type="text/css"> div#header_infos, div#header_infos a#header_shopname, div#header_infos a#header_logout, div#header_infos a#header_foaccess {color:#383838} </style> </head> I'm not sure what to look for in here. Would it be possible to "upgrade" from 1.5.6 to 1.5.6? So to "clean" the installation? I tried to install a bright new store on 1.5.5 and all work fine. As soon as I import the tables, I get the same result. May be a setting I have to change. In any case, thanks for your feedback. Philippe Link to comment Share on other sites More sharing options...
philrey212 Posted October 18, 2013 Author Share Posted October 18, 2013 (edited) Any help? Or thought? Could I install a clean 1.5.6 and either - copy some files (like admin)? In that case, which folder should I consider? or - import main tables (without any config to make sure I keep the clean setup)? In that case, which tables (customer, orders, products, etc.)? Please, any hint would help. Edited October 18, 2013 by philrey212 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 18, 2013 Share Posted October 18, 2013 i checked sources above and there is no jquery library! this is the main problem in this case you have to add jquery library there Link to comment Share on other sites More sharing options...
philrey212 Posted October 18, 2013 Author Share Posted October 18, 2013 Thanks Vekia. And how do I do that? Link to comment Share on other sites More sharing options...
vekia Posted October 18, 2013 Share Posted October 18, 2013 open controllers/admin/AdminProductsController.php in setMedia() function add $this->addJquery(); hope this will work, if not - i suggest to check your prestashop filesystem for file: /js/jquery/jquery-1.7.2.min.js Link to comment Share on other sites More sharing options...
philrey212 Posted October 19, 2013 Author Share Posted October 19, 2013 Hello Vekia, OK. I investigated a bit more.Ì did a bright new installation in a new folder, then pointed that install to my DB and all worked fine. I then decided to rename de folder to match the normal one and it stopped working again. Some time ago, I created a sub-domain to point to the www folder (where is PS located) It seems that this sub-domain is gone, hence my problems. I changed now the physical URL to point to www/ (instead of / with sub-domain defined before). I'll now have to check with my hosting provider why this happened. I still have to do some fine tuning (like copy images, etc.) but the site BO is now working correctly. Cheers, Philippe Link to comment Share on other sites More sharing options...
Ganesh Hipparkar Posted November 12, 2013 Share Posted November 12, 2013 (edited) Hi everyone, i have some thing different problem then above when i click on Catlog->product->add new it show only loading image .it can't show add new product form? can anyone give me solution for this Thanks, Ganesh Edited November 12, 2013 by Ganesh Hipparkar (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 12, 2013 Share Posted November 12, 2013 please turn on browser console, you will probably see there some kind of errors, if it is possible, please share them here 1 Link to comment Share on other sites More sharing options...
Ganesh Hipparkar Posted November 12, 2013 Share Posted November 12, 2013 (edited) Hello Vekia, Thanks for your reply. the error is Error: Permission denied to access property 'toString' Please give solution asap. Thanks, Ganesh. Edited November 13, 2013 by Ganesh Hipparkar (see edit history) Link to comment Share on other sites More sharing options...
Ganesh Hipparkar Posted November 20, 2013 Share Posted November 20, 2013 Hello Vekia, i m still stuck with this problem can you please give solution on it asap. Thanks, Ganesh Link to comment Share on other sites More sharing options...
vekia Posted November 20, 2013 Share Posted November 20, 2013 Error: Permission denied to access property 'toString' this is all what you've got? no file information? (i mean that usually error code shows where the problem occurs) Link to comment Share on other sites More sharing options...
Ganesh Hipparkar Posted November 20, 2013 Share Posted November 20, 2013 hello vekia, problem was solved thanks for ur reply..!!! Thanks, Ganesh Link to comment Share on other sites More sharing options...
vekia Posted November 20, 2013 Share Posted November 20, 2013 hello vekia, problem was solved thanks for ur reply..!!! Thanks, Ganesh may i know where the problem was? Link to comment Share on other sites More sharing options...
Ganesh Hipparkar Posted December 4, 2013 Share Posted December 4, 2013 may i know where the problem was? I also don't know vekia.it works afterwords automatically strange but true. thanks, Ganesh. Link to comment Share on other sites More sharing options...
siddhartha Posted December 10, 2013 Share Posted December 10, 2013 dear i am trying a lot but still problem same product not show. i am change in config/defines.inc.php set PS_MODE_DEV to true i am not find setMedia() function in controllers/admin/AdminProductsController.php and where i will ALWAYS TURN ERRORS ON! Link to comment Share on other sites More sharing options...
metri-man22 Posted January 23, 2014 Share Posted January 23, 2014 Hey, I'm new here and as said above, there's no javascript included in the adminproducts pabe in the BackOffice, does anyone have any idea Hello Vekia, OK. I investigated a bit more.Ì did a bright new installation in a new folder, then pointed that install to my DB and all worked fine. I then decided to rename de folder to match the normal one and it stopped working again. Some time ago, I created a sub-domain to point to the www folder (where is PS located) It seems that this sub-domain is gone, hence my problems. I changed now the physical URL to point to www/ (instead of / with sub-domain defined before). I'll now have to check with my hosting provider why this happened. I still have to do some fine tuning (like copy images, etc.) but the site BO is now working correctly. Cheers, Philippe philrey212, where did you change that sub-domain setting, please answer 'cause I have the exact problem you had! Link to comment Share on other sites More sharing options...
metri-man22 Posted January 23, 2014 Share Posted January 23, 2014 Hey, I'm new here and as said above, there's no javascript included in the adminproducts pabe in the BackOffice, does anyone have any idea philrey212, where did you change that sub-domain setting, please answer 'cause I have the exact problem you had! Nevermind, i just solved my problem the way you solved yours through SEO & URLs page I Changed by base uri from /nameofmyfolder/ to domain/nameofmyfolder/ under Set shop URL tab refreshed products page It worked like a charm! Link to comment Share on other sites More sharing options...
metri-man22 Posted January 23, 2014 Share Posted January 23, 2014 Nevermind, i just solved my problem the way you solved yours through SEO & URLs page I Changed by base uri from /nameofmyfolder/ to domain/nameofmyfolder/ under Set shop URL tab refreshed products page It worked like a charm! scratch that... when i return to my front office, the url is displayed as follows: http://domain/domain/nameoffolder/en/ How The Heck can I solve this without ruining the front office?? please help!!! Link to comment Share on other sites More sharing options...
metri-man22 Posted January 23, 2014 Share Posted January 23, 2014 open controllers/admin/AdminProductsController.php in setMedia() function add $this->addJquery(); hope this will work, if not - i suggest to check your prestashop filesystem for file: /js/jquery/jquery-1.7.2.min.jshen I 1. this solution is too amatuer 2. then I took a look in Controller, It already Calls this method, & when I tried debugging, I found out that in Media::getJSPath, it returns false! is there reason why this happens, like some setting? Here's the method syntax: public static function getJSPath($js_uri) { if (is_array($js_uri) || $js_uri === null || empty($js_uri)) return false; $url_data = parse_url($js_uri); if (!array_key_exists('host', $url_data)) $file_uri = _PS_ROOT_DIR_.Tools::str_replace_once(__PS_BASE_URI__, DIRECTORY_SEPARATOR, $url_data['path']); // remove PS_BASE_URI on _PS_ROOT_DIR_ for the following else $file_uri = $js_uri; // check if js files exists if (!preg_match('/^http(s?):\/\//i', $file_uri) && !@filemtime($file_uri)) return false; if (Context::getContext()->controller->controller_type == 'admin') { $js_uri = preg_replace('/^'.preg_quote(__PS_BASE_URI__, '/').'/', '/', $js_uri); $js_uri = dirname(preg_replace('/\?.+$/', '', $_SERVER['REQUEST_URI']).'a').'/..'.$js_uri; } return $js_uri; } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now