Re: CSS JS Loader [Support Thread]
Quote:
Originally Posted by
marton_1
OK, did some more research.
I am running this on my non SSL xampp test site PC.
My Admin site opens fine after installing the CSS JS Loader but when I try to open the storefront I get the error message "PHP Notice: CURL error checking plugin versions: 60:SSL certificate problem: self signed certificate in certificate chain"
This message I discovered is an SSL Cerificate failure, but I do not want or have SSL on my test store front.
The message has NOTHING to do with having SSL on your storefront. That's user-configurable SSL.
This message is related to a basic server misconfiguration, explained here: SSL Explained - Back and Front
And, given that you're using XAMPP, you may not be able to fix it ... in which case you'll have to live with these kinds of errors happening anytime the test store needs to connect to an external resource.
So if you're going to comment-out sections of the code to suit your local environment, MAKE SURE you uncomment them before putting changes into production, else your store will be broken, or worse, your live store might be insecure.
Re: CSS JS Loader [Support Thread]
Quote:
Originally Posted by
DrByte
The message has NOTHING to do with having SSL on your storefront. That's user-configurable SSL.
This message is related to a basic server misconfiguration, explained here:
SSL Explained - Back and Front
And, given that you're using XAMPP, you may not be able to fix it ... in which case you'll have to live with these kinds of errors happening anytime the test store needs to connect to an external resource.
So if you're going to comment-out sections of the code to suit your local environment, MAKE SURE you uncomment them before putting changes into production, else your store will be broken, or worse, your live store might be insecure.
Thanks, got it.
I was able to fix the SSL error messages in xampp by following advice here and in the Internet without commenting out any code.
However I had spoken too soon and my store front does not start up in xampp (just a blank screen)although the admin site starts up OK.
There are no error messages in the zen cart log or the Apache and mysql logs.
I turned on STRICT_ERROR_REPORTING in application_top.php but still no error messages.
If I "inspect" the blank page I see these errors
Code:
Uncaught ReferenceError: jQuery is not defined
at :8080/zencart155d/catalog/min/?f=/zencart155d/catalog/includes/templates/re…s/modules/pages/index/jscript_responsive_equal_heght_divs.js&1463221628:11
index.php?main_page=index:460 Uncaught ReferenceError: jQuery is not defined
at index.php?main_page=index:460
ssl.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
alles_f%C3%BCr_hundli6.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
But I do not have a path zencart155d/catalog/includes/templates/re…s/modules/
I do not see such a path in the original zencart155d download or the css js loader plugin?
The file is from the SNAF plugin and is in this path
includes\modules\pages\product_info\jscript_responsive_equal_heght_divs.js
Re: CSS JS Loader [Support Thread]
Does anyone have this working with version 1.5.5e using the Responsive Classic template? When I merge the html_header changes, the site goes blank and there are no errors in the logs.
Re: CSS JS Loader [Support Thread]
Quote:
Originally Posted by
Danielle
Does anyone have this working with version 1.5.5e using the Responsive Classic template? When I merge the html_header changes, the site goes blank and there are no errors in the logs.
i would double check your merge. i'm guessing something is in the wrong place.
good luck.
Re: CSS JS Loader [Support Thread]
Quote:
Originally Posted by
carlwhat
i would double check your merge. i'm guessing something is in the wrong place.
good luck.
Thank you, I have checked numerous times. I'm probably missing something obvious because I've looked at it so much, but I've tried repeatedly for the last two days, and I just keep getting the same result, no matter what I do. It works fine if I install it on the default template. The issue is only when using the responsive classic template.
Re: CSS JS Loader [Support Thread]
can u provide a link to the site?
Re: CSS JS Loader [Support Thread]
Quote:
Originally Posted by
carlwhat
can u provide a link to the site?
I sent you a PM :)
Re: CSS JS Loader [Support Thread]
danielle,
ZC is not loading the jquery library... so for whatever reason the jquery library is not loading and that is causing your site to fail to load.
if you open the developer tools, and then press f1 for settings and disable javascript and then press f5 to reload your site (with the developer tools still open), your site will load fine.
i would look for:
jquery.min.js
in your code to find out why it is not getting loaded.
good luck!
Re: CSS JS Loader [Support Thread]
Since you are using this plugin you need to add the call to jquery.min.js to one or more of the autoloaders in your template directory (depending on if one of the autoloaders loads on every page or not, if not then you'll need to either add it to every one if they cover all pages on your site that need jquery or clone a loader file to use it on index.php which will load on every page). I know some people hate this plugin, I am not one of them. I am a big fan and have been using it for many years. You just have to understand how to use it correctly and then you can call js files for just specific pages which reduces overall site load plus it minifies the css and js files for even better site load.
With something like the base jquery library, you can just hard code a call in your header file so it is loaded on every page since it is already minified. You could also use a CDN address for it, like the google one, and chances are the user's browser already has it cached from other sites which again will speed up the page load.
Re: CSS JS Loader [Support Thread]
Quote:
Originally Posted by
lankeeyankee
With something like the base jquery library, you can just hard code a call in your header file so it is loaded on every page since it is already minified. You could also use a CDN address for it, like the google one, and chances are the user's browser already has it cached from other sites which again will speed up the page load.
Or just use the original Zen Cart html_header which already loads jQuery from CDN with a localized fallback if the CDN fails.
It's too bad this plugin mangles that immediately out of the box.
{confession: I hate the CSS/JS Loader plugin; I'll never recommend anyone use it}