添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
无邪的楼房  ·  连云港市连云区政府·  1 月前    · 
爱看球的伤疤  ·  Xibo for Docker on ...·  4 月前    · 
悲伤的手电筒  ·  天降女子 ...·  5 月前    · 

I know this was discussed maytime, but I couldn't find any appropriate solution:

My back office is not loading the jquery-1.7.2.js for some reason. That means any aditional scripts will not work without the main jquery file. I open up my dev tools and I get 8

Uncaught ReferenceError: $ is not defined

Which is normal if the jquert-1.7.2.js is not loaded. I inspect the source of my BO and the file it's not there.

I then move out to see if the file is actually there. I opened up the header.inc.php file inside my admin dir and locked at line 49. There I have this line:

<script type="text/javascript" src="'._PS_JS_DIR_.'jquery/jquery-'._PS_JQUERY_VERSION_.'.min.js"></script>

So that means in my prestashop install folder/js/jquery/ I should have a file called jquery-1.7.2..min.js. And I have it. Whey this prestashop is not loading that file. ?????

And also I'm running PrestaShop™ 1.5.4.1 and I cannot upgrade cause my theme is not compatible with the latest verion. Also this is a live website.

The front office is working without any problems.

But since I cannot edit/add/ products, categories, or anything else, I really need some help on this one.

So please be so kind and let me know what can I do.

Which file is in charge to load Jquery. I want to use google CDN for the main jquery file? I know that is not in header.inc.php.

Please I need urgent help

UPDATE:

Very strange situation, my Back Office don't want to load jquery. I did inspect with dev tools on chrome and I get a 404 error for this:

http://chicfrog.com/admin8169/..http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js

How can i load jquery from google CDN but for BACK OFFICE not FRONT OFFICE!?!?!?!?!

ok I get this problem done. I don't know what hapend but I did mange to make my Back Office working again.

Maybe others will have the same problem as me, so I will just write down what I did.

1. Download a fresh copy of prestashop 1.5.4.1

2. Delete all the files and folders from my Admin directory on my server

3. Upload all the files and folders from the Admin directory from the fresh copy to Admin directory on my server

4. Delete all the files and folders from js folder on my server

5. Upload all the files and folders from js folder from the fresh copy to my js folder on my server.

That's it now everything works perfectly.

in controller.php you can find this function:

public function addJquery($version = null, $folder = null, $minifier = true) $this->addJS(Media::getJqueryPath($version, $folder, $minifier));

ok, done

thank you for all informations related to this case

it will be helpful for other merchants here

with regards,

milos

When adding or editing products in our backend, the tinymce editor no longer loads and all the descriptions are displaying in html format.  I turned on error reporting and nothing comes up. We also are unable to click on the tabs on the left hand side to move through each aspect of the product, and an error sometimes displays that some tabs could not be loaded.  I am using 1.5.2 and on a hosted server.  I have added a screenshot of the backend to show what we are seeing.


Uncaught SyntaxError: Unexpected identifier

products.js:1032 Uncaught ReferenceError: id_product is not defined

at Object.bindAvailableForOrder (products.js:1032)

at onReady (products.js:1187)

at ProductTabsManager.onLoad (products.js:87)

at ProductTabsManager.init (products.js:53)

at HTMLDocument.<anonymous> (products.js:1892)

at j (jquery-1.11.0.min.js:2)

at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2)

at Function.ready (jquery-1.11.0.min.js:2)

at HTMLDocument.K (jquery-1.11.0.min.js:2)

please help me out if there is any possible solution