[ColdBox 3.5] Invalid Event detected?

65 views
Skip to first unread message

West

unread,
Jun 3, 2012, 4:26:44 PM6/3/12
to col...@googlegroups.com
Hi,

For some reason Coldbox seems to be treating references to my "includes/images" directory as coldbox events.  I'm using SES set up and my URLs do not contain index.cfm in them. 

In my layout templates I have this near the top in the HTML <head> section.

 <base href="#getSetting('sesBaseURL')#">

For some reason though, I keep getting flooded with emails from LogBox saying:

Invalid Event detected: Customers.includes. Path info: /customers/includes/images/favicon.ico , query string:


I can't for the life figure out why this is happening.  There is NOT an includes directory in the reports folder.

Any help appreciated.

Andrew Scott

unread,
Jun 3, 2012, 4:40:39 PM6/3/12
to col...@googlegroups.com
Why start a new thread for this?

The answer is simple, if you are using or trying to do event.buildLink() for your includes you are going to have this problem.


-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/





--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To post to this group, send email to col...@googlegroups.com
To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
For more options, visit this group at http://groups-beta.google.com/group/coldbox
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org


West

unread,
Jun 3, 2012, 4:44:57 PM6/3/12
to col...@googlegroups.com
I'm not using event.buildLink() for my css and/or images.

On Sunday, June 3, 2012 1:40:39 PM UTC-7, Andrew Scott wrote:
Why start a new thread for this?

The answer is simple, if you are using or trying to do event.buildLink() for your includes you are going to have this problem.


-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/


On Mon, Jun 4, 2012 at 6:26 AM, West <malik.r...@gmail.com> wrote:
Hi,

For some reason Coldbox seems to be treating references to my "includes/images" directory as coldbox events.  I'm using SES set up and my URLs do not contain index.cfm in them. 

In my layout templates I have this near the top in the HTML <head> section.

 <base href="#getSetting('sesBaseURL')#">

For some reason though, I keep getting flooded with emails from LogBox saying:

Invalid Event detected: Customers.includes. Path info: /customers/includes/images/favicon.ico , query string:


I can't for the life figure out why this is happening.  There is NOT an includes directory in the reports folder.

Any help appreciated.

--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To post to this group, send email to col...@googlegroups.com
To unsubscribe from this group, send email to coldbox-unsubscribe@googlegroups.com

Tom Miller

unread,
Jun 3, 2012, 4:48:27 PM6/3/12
to col...@googlegroups.com

If the resource doesn’t exist, coldbox may be a “fall-back” -  depending on how your server is setup and how SES is handled.

 

Are you using apache? Tomcat or Jrun?

 

It might be worth amending your favicon link to an absolute url (“/favicon.ico”).

 

Tom.

To unsubscribe from this group, send email to coldbox-u...@googlegroups.com


For more options, visit this group at http://groups-beta.google.com/group/coldbox
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org

 

--

You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To post to this group, send email to col...@googlegroups.com

To unsubscribe from this group, send email to coldbox-u...@googlegroups.com

Andrew Scott

unread,
Jun 3, 2012, 4:48:37 PM6/3/12
to col...@googlegroups.com
You know come to think of it, I had something similar awhile ago....

Make sure your images and styles folders are not being rewritten by what ever rules you are using, I do actually recall something similar.

I think what is happening is your includes are being processed by the rewrite rules, which in turn thinks it is an event, so you need to add a rule that stops this.


-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/



West

unread,
Jun 3, 2012, 4:54:32 PM6/3/12
to col...@googlegroups.com
Yes, this sounds very promising Andrew.  I've actually using some default rewrite rules, so I'm not sure what needs to be added to prevent this.  I'm using IIS 7 for my web server.

Do you know off hand what I need to add?

Andrew Scott

unread,
Jun 3, 2012, 5:06:12 PM6/3/12
to col...@googlegroups.com
I use Helicon rewrite which looks something like this.

#Images, css, javascript and docs, add your own extensions if needed.
RewriteCond %{REQUEST_URI} \.(bmp|gif|jpe?g|png|css|js|txt|pdf|doc|xls|ico|swf)$
RewriteRule ^(.*)$ - [NC,L]

Not sure if Luis put anything for IIS rules into Coldbox, you might want to check the package.

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/



West

unread,
Jun 3, 2012, 5:38:46 PM6/3/12
to col...@googlegroups.com
Yup, that was it.  "ico" wasn't added in my rewrite rules.

Thanks!
Reply all
Reply to author
Forward
0 new messages