metalice Posted August 26, 2015 Share Posted August 26, 2015 (edited) hi there, after updating to 1.6.1.1 from 1.6.1.0 the order page (where are all the orders) looks ok, but when you press a single order to get details and change status its looks like in the screen shot. tried: restart server, cleaning cache, disabling cache. all of the above didn't work. whats wrong :/ ? thanks!! Edited August 26, 2015 by metalice (see edit history) Link to comment Share on other sites More sharing options...
metalice Posted August 26, 2015 Author Share Posted August 26, 2015 added a screen shot of inspect element console of chrome. thanks Link to comment Share on other sites More sharing options...
musicmaster Posted August 27, 2015 Share Posted August 27, 2015 Looks like the CSS file is not loaded. Link to comment Share on other sites More sharing options...
metalice Posted August 27, 2015 Author Share Posted August 27, 2015 thanks for the reply. why it happen? how to fix it? thanks Matan Link to comment Share on other sites More sharing options...
musicmaster Posted August 27, 2015 Share Posted August 27, 2015 I see also another error : $ not defined. That means that Jquery is not loaded for some reason. I have no clear solution. My suggestion is to look at the source code of the offending page whether you can find something that looks like a trouble maker. Link to comment Share on other sites More sharing options...
metalice Posted August 27, 2015 Author Share Posted August 27, 2015 hi what is the file name of this orders? single order file name? thanks Matan Link to comment Share on other sites More sharing options...
musicmaster Posted August 27, 2015 Share Posted August 27, 2015 hi what is the file name of this orders? single order file name? thanks Matan Sorry, I don't understand what you mean. Link to comment Share on other sites More sharing options...
metalice Posted September 17, 2015 Author Share Posted September 17, 2015 Sorry, I don't understand what you mean. hi i mean, in which file should i look for the "trouble maker"? im still stuck with this issue and its getting real annoying.. thank for your help! Matan Link to comment Share on other sites More sharing options...
metalice Posted September 21, 2015 Author Share Posted September 21, 2015 anyone?? Link to comment Share on other sites More sharing options...
musicmaster Posted September 21, 2015 Share Posted September 21, 2015 If you are "lucky" it is some module that is giving problems. So the first step would be to see where the javascript errors occur. I see only "index.php" as the origin. But if you expand the message or move your mouse over it you will see the full path. If this happens in a module you should consider uninstalling that module (deactivating often isn't enough to have effect). However, be aware that the process that shows the error is not always its cause. Basically it is a process of trial and error. Make a list of your modules, uninstall them one by one and see what happens. It is not certain that the error is in the modules - it could also be in the theme or in some modifications you made in the PS source code - but the chance is quite high. Link to comment Share on other sites More sharing options...
metalice Posted September 21, 2015 Author Share Posted September 21, 2015 Hi, Thank you for replying. I comes form the Adminordercontroller, i didn't installed any new addons, and i cant see it related to any addon. I uploaded a screenshot of the location in text is occurs, it goes 3 times, in 3 different places. I also tried uploading original PS adminordercontroller from a fresh prestashop install and gets the same error... any thoughts? thanks Matan If you are "lucky" it is some module that is giving problems. So the first step would be to see where the javascript errors occur. I see only "index.php" as the origin. But if you expand the message or move your mouse over it you will see the full path. If this happens in a module you should consider uninstalling that module (deactivating often isn't enough to have effect). However, be aware that the process that shows the error is not always its cause. Basically it is a process of trial and error. Make a list of your modules, uninstall them one by one and see what happens. It is not certain that the error is in the modules - it could also be in the theme or in some modifications you made in the PS source code - but the chance is quite high. Link to comment Share on other sites More sharing options...
musicmaster Posted September 21, 2015 Share Posted September 21, 2015 As I wrote: the script that gives the error is not necessarily the one that causes the problem. So I stick to what I wrote before: experiment with disabling modules. What you also could do is looking in the source code which javascript files are loaded before Jquery is loaded, Link to comment Share on other sites More sharing options...
metalice Posted September 21, 2015 Author Share Posted September 21, 2015 As I wrote: the script that gives the error is not necessarily the one that causes the problem. So I stick to what I wrote before: experiment with disabling modules. What you also could do is looking in the source code which javascript files are loaded before Jquery is loaded, hi, how i can "What you also could do is looking in the source code which javascript files are loaded before Jquery is loaded," do that? thank Matan Link to comment Share on other sites More sharing options...
musicmaster Posted September 21, 2015 Share Posted September 21, 2015 If you don't know how to look at the source code of a html page it might be the best solution to ask some smart nephew to explain it. Link to comment Share on other sites More sharing options...
tuk66 Posted September 22, 2015 Share Posted September 22, 2015 This problem can be fixed within 1-2 hours. Of course, discussion at the forum isn't the fastest. Link to comment Share on other sites More sharing options...
metalice Posted September 22, 2015 Author Share Posted September 22, 2015 If you don't know how to look at the source code of a html page it might be the best solution to ask some smart nephew to explain it. i can look at the source code... i dont know how to tell which JS is loaded before JQuery is loaded... Link to comment Share on other sites More sharing options...
musicmaster Posted September 22, 2015 Share Posted September 22, 2015 See the attached picture of a fragment of source code of a shop where some other module is loaded before Jquery. Link to comment Share on other sites More sharing options...
metalice Posted September 22, 2015 Author Share Posted September 22, 2015 there are only 2 scripts in this page that arent related to the scripts that produce the errors.. this is the first: <script type="text/javascript"> var admin_order_tab_link = "index.php?controller=AdminOrders&token=*********"; var id_order = 106; var id_lang = 1; var id_currency = 2; var id_customer = 2; var id_address = 6; var currency_sign = "$"; var currency_format = "1"; var currency_blank = "0"; var priceDisplayPrecision = 2; var use_taxes = true; var stock_management = 1; var txt_add_product_stock_issue = "Are you sure you want to add this quantity?"; var txt_add_product_new_invoice = "Are you sure you want to create a new invoice?"; var txt_add_product_no_product = "Error: No product has been selected"; var txt_add_product_no_product_quantity = "Error: Quantity of products must be set"; var txt_add_product_no_product_price = "Error: Product price must be set"; var txt_confirm = "Are you sure?"; var statesShipped = new Array(); var has_voucher = 0; var order_discount_price = 0.000000 ; var errorRefund = "Error. You cannot refund a negative amount."; </script> this is the second: <a class="btn btn-default" href="javascript:window.print()"> <i class="icon-print"></i> i dont think they related to the problem... Jquery cant be found in this document... Any thoughts? Thanks Matan Link to comment Share on other sites More sharing options...
musicmaster Posted September 23, 2015 Share Posted September 23, 2015 Jquery cant be found in this document... Any thoughts? When I search on "javascript" in the sourcecode of my adminorders page (right click in the browser and select source code) I find 56 entries. So if you see only two there is something seriously wrong. My suggestion is to build a new shop on your local computer - just with the default demo products and orders - and to have a look how the source code looks there. Link to comment Share on other sites More sharing options...
metalice Posted September 23, 2015 Author Share Posted September 23, 2015 When I search on "javascript" in the sourcecode of my adminorders page (right click in the browser and select source code) I find 56 entries. So if you see only two there is something seriously wrong. My suggestion is to build a new shop on your local computer - just with the default demo products and orders - and to have a look how the source code looks there. when in viewing source page of orders im getting also 56 javascripts hits. but, the problem isnt there, its when you press on a single order for details and getting the order details page.. thanks Matan Link to comment Share on other sites More sharing options...
musicmaster Posted September 23, 2015 Share Posted September 23, 2015 ok. But the situation remains the same. In that page I get 39 times javascript. 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