Liquid plugin not loaded when server is first started

Bug #119379 reported by JW
2
Affects Status Importance Assigned to Milestone
Chameleon (inactive)
Fix Released
Medium
JW

Bug Description

When the server is first started, and a page is requested the error "uninitialized constant UrlFilters" is returned. This is because the ThemingSystem loads all files in lib/chameleon/liquid, and these include Liquid::UrlFilters, which doesn't exist at that moment yet.

Revision history for this message
JW (jw-00000) wrote :

This bug can manifest itself in various ways, common is that the error only occurs the first time you load a page after the server has been started.

Changed in chameleon:
status: Unconfirmed → In Progress
Revision history for this message
JW (jw-00000) wrote :

Liquid::UrlFilters isn't part of the Liquid plugin, it's a Chameleon-specific set of filters. It is defined in lib/chameleon/liquid/url_for_filters.rb.

Revision history for this message
JW (jw-00000) wrote :

By requiring lib/chameleon/liquid/url_for_filters.rb in lib/chameleon/liquid/chameleon_filters.rb, this problem was solved. Fixed in upstream (this error only occured in version 0.6, and the fix will be included in 0.6.0 immediately).

Changed in chameleon:
assignee: nobody → jw-00000
importance: Undecided → Medium
status: In Progress → Fix Released
Revision history for this message
JW (jw-00000) wrote :

(The status of this bug was set to "Fix Released", while the fix was only committed but not released yet. This isn't any problem.)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.