You have no items in your shopping cart.

Sunday, December 22, 2024 9:33:36 AM

Buh in minifying the javascript and css files

Posted: 7 years ago

#6628 Quote

tjsimons90001978

Posted: 7 years ago

#6628 Quote
Hi, I'm testing your Google Pagespeed plugin on our site, and while it does look promising, when I try to run the tasks of minifying the javascript and css files, it throws a massive error and shuts the application pool down. Have you had any issues like this before? I'm using Nop 3.8.

Here's a copy of the error:
Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
   at System.Web.VirtualPath.FailIfRelativePath()
   at System.Web.Hosting.HostingEnvironment.MapPathActual(System.Web.VirtualPath, Boolean)
   at System.Web.Hosting.HostingEnvironment.MapPath(System.Web.VirtualPath)
   at Nop.Core.CommonHelper.MapPath(System.String)
   at FoxNetSoft.Plugin.Misc.Pagespeed.Services.MinifyOptimizationService. (System.String, System.Nullable`1<System.DateTime>)
   at FoxNetSoft.Plugin.Misc.Pagespeed.Services.MinifyOptimizationService. (System.String, System.Nullable`1<System.DateTime>)
   at FoxNetSoft.Plugin.Misc.Pagespeed.Services.MinifyOptimizationService. ()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

Posted: 7 years ago

#6629 Quote

Support

Posted: 7 years ago

#6629 Quote
The problem is in this function System.Web.VirtualPath.FailIfRelativePath.

NopCommerce can't get relative path using virtual path...
I think that you have one 'unreal virtual path'.
I'll think today how to solve this problem. Please wait one day.

Posted: 7 years ago

#6630 Quote

Support

Posted: 7 years ago

#6630 Quote
Version 1.18 - October 09, 2017

- fixed bug. Can't start the task for minify CSS stylesand JS scripts.

Thank you.

Posted: 7 years ago

#6734 Quote

bcdiesel

Posted: 7 years ago

#6734 Quote
Thank you, that looks to be fixed, however I believe there is another error in the plugin which is causing a lot of notes in my NopCommerce error log. For some reason, when enabling the HTML minification, it seems that the plugin doesn't like characters found in <img> statements. I can't see anything wrong with the files myself so I'm guessing there may be a character that your plugin should be ignoring which it isn't.

Posted: 7 years ago

#6739 Quote

Support

Posted: 7 years ago

#6739 Quote
Open this page (with problem tag <img>) and validate it using external validation service.
https://validator.w3.org/

You page has wrong <img>.
Example you didn't close this tag, etc.
Validate pages and solve problems with HTML markup.

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved