Close

'fancybox' was not found on controller

chrismcbride76
11 years ago
#2967 Quote
Avatar
  • 7
Our site has been live for several days and we keep seeing this error:

Log level:   Error
Short message:   A public action method 'fancybox' was not found on controller 'SevenSpikes.Theme.Fashion.Controllers.SubscribeController'.
Full message:   System.Web.HttpException (0x80004005): A public action method 'fancybox' was not found on controller 'SevenSpikes.Theme.Fashion.Controllers.SubscribeController'. at System.Web.Mvc.Controller.HandleUnknownAction(String actionName) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
IP address:   -------------------------
Customer:  Guest
Page URL:   http://mydomain.com/subscribe/fancybox/fancy_nav_right.png
Referrer URL:  
Created on:   7/6/2013 11:45:50 AM
chrismcbride76
11 years ago
#2968 Quote
Avatar
  • 7
It's accompanied by:

Error
Short message:   The controller for path '/fancybox/fancy_close.png' was not found or does not implement IController.
Full message:   System.Web.HttpException (0x80004005): The controller for path '/fancybox/fancy_close.png' was not found or does not implement IController. at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
IP address:   -----------------------
Customer:  Guest
Page URL:   http://mydomain.com/fancybox/fancy_close.png
Referrer URL:  
Created on:   7/6/2013 11:47:12 AM
Boyko
11 years ago
#2971 Quote
Avatar
  • 1570
Hi,

Have you made any modifications to the theme because we don't have such errors on our demo store? Why is the "Referrer URL:" empty? Please post it, so that we can see on which page this error is shown.

Thanks
Regards,
Nop-Templates.com Team
chrismcbride76
11 years ago
#2974 Quote
Avatar
  • 7
The log showed the referrer as blank.

Thanks,
Chris
Boyko
11 years ago
#2976 Quote
Avatar
  • 1570
chrismcbride76 wrote:
The log showed the referrer as blank.

Thanks,
Chris


In that case there is no way to know from which page the browser search for this link. So I think that something else is requesting this link, which by the way does not exist and that's why you get this error. It is possible that this is a search engine bot or some scripts that try to harm your web site. We also have such errors(not the same as yours) with something trying to open a resource that does not exist on our demos and in this case nopCommerce logs an error for missing resource. This errors are very annoying but it much better than crashing the whole site or something.

Thanks
Regards,
Nop-Templates.com Team
iBEAUTHENTIC
11 years ago
#2984 Quote
Avatar
  • 28
Nop 3.0 version, 3.02 Nop-template
I'm getting something similar, please see below. The page url is http://www.thestylegarage.com/en/content/fancybox/fancy_shadow_nw.png which if you go to that it does not resolve. If you remove /en/ it does. Any thoughts?

Log level:   Error
Short message:   The controller for path '/content/fancybox/fancy_shadow_nw.png' was not found or does not implement IController.
Full message:   System.Web.HttpException (0x80004005): The controller for path '/content/fancybox/fancy_shadow_nw.png' was not found or does not implement IController. at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
IP address:   174.17.31.127
Customer:  Guest
Page URL:   http://www.thestylegarage.com/en/content/fancybox/fancy_shadow_nw.png
Referrer URL:  
Created on:   7/10/2013 9:04:27 PM
Boyko
11 years ago
#2990 Quote
Avatar
  • 1570
iBEAUTHENTIC wrote:
Nop 3.0 version, 3.02 Nop-template
I'm getting something similar, please see below. The page url is http://www.thestylegarage.com/en/content/fancybox/fancy_shadow_nw.png which if you go to that it does not resolve. If you remove /en/ it does. Any thoughts?


Hi iBEAUTHENTIC,

You are right.
After some digging with the code we found out what the problem is.
It looks like that the css of the fancybox jquery plugin uses some ie6 specific styles that don't support relative paths to the images. I don't know if you are familiar with css fixes for IE6 but in order to have support for transparent images you need to use something like this "DXImageTransform.Microsoft.AlphaImageLoader" in the css file. But unfortunately this doesn't support relative paths (location of the image is relative to the css file). So the image is specified with the full path to it on the server i.e  "/content/fancybox/fancy_shadow_nw.png". The problem with this is that this images will not be loaded when you have a virtual directory as in your case "/en/".
To summarize: It is not a big deal that these images are missing as the browser will simply ignore them. This will have impact only in IE6, which in any case is almost dead see here - http://www.ie6countdown.com/
So guys please simply ignore these error messages as they are not anything that is worth worrying about. If you still don't like these annoying messages then simply delete the styles that are specific for IE6 from this file - Content\fancybox\jquery.fancybox-1.3.4.css.

Hope this information is useful!

Thanks
Regards,
Nop-Templates.com Team