Title: Error when cache is enabled: [an error occurred while processing this directive]
Last modified: August 24, 2017

---

# Error when cache is enabled: [an error occurred while processing this directive]

 *  [andregauda](https://wordpress.org/support/users/andregauda/)
 * (@andregauda)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-when-cache-is-enabled-an-error-occurred-while-processing-this-directive/)
 * Hi Emra
 * URL: [http://www.encontrapinheiros.com.br/pinheiros/largo-da-batata-em-pinheiros/](http://www.encontrapinheiros.com.br/pinheiros/largo-da-batata-em-pinheiros/)
 * When I activate the WPFC plugin and access a page to generate the cache, it is
   generated with an error message in some parts of the code:
 * [an error occurred while processing this directive]
 * For example, look at these 2 places:
    1) on the left side of the search widget
   at the top of the sidebar: you will see the beginning of the error message: [
   an
 * 2) end of page
 * When I am logged in, and thus I view the page WITHOUT the cache, the error does
   not appear, and thus I was able to identify what is being misinterpreted.
    This
   error appears in place of HTML comment tags that have specific content:
 * **<!–#**sidebar–> (First occurrence of error)
    **<!–#**page–> (Second occurrence
   of error) **<!–#**site-footer–> (Third occurrence of error)
 * Note: Looking at the source code of the URL that I sent, typing “Ctrl + F” and
   looking for the error message, you will see 3 occurrences of it. The error messages
   are in place of each of the above tags.
 * Only comments that have the hashtag as the first character give an error in the
   cached version of the page.
 * I would like to avoid removing these tags from the source code of the template
   because I update the version of it frequently, and would always have to remove
   the tags, which is not interesting.
 * Could you check please?
    Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-cache-is-enabled-an-error-occurred-while-processing-this-directive%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-when-cache-is-enabled-an-error-occurred-while-processing-this-directive/#post-9439316)
 * what is <footer id=”site-footer” role=”contentinfo” itemscope=”” itemtype=”[http://schema.org/WPFooter”&gt](http://schema.org/WPFooter”&gt);
   mean? why do you use it?
 *  Thread Starter [andregauda](https://wordpress.org/support/users/andregauda/)
 * (@andregauda)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-when-cache-is-enabled-an-error-occurred-while-processing-this-directive/#post-9441208)
 * I did not put this manually, this is an original template code.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-when-cache-is-enabled-an-error-occurred-while-processing-this-directive/#post-9441497)
 * I got it. I did not see such issue before. did you use any other minify html 
   tool?
 *  Thread Starter [andregauda](https://wordpress.org/support/users/andregauda/)
 * (@andregauda)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-when-cache-is-enabled-an-error-occurred-while-processing-this-directive/#post-9441982)
 * I checked the configuration of other plugins I use and none of them offers the
   option to minify codes.
 * In the theme options I found a section to improve the performance of the site,
   but apparently has no option to minify. See the print of the options:
 * [http://www.encontrapinheiros.com.br/theme-options.jpg](http://www.encontrapinheiros.com.br/theme-options.jpg)
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-when-cache-is-enabled-an-error-occurred-while-processing-this-directive/#post-9442475)
 * no no. I am talking about another optimization plugins.
 *  Thread Starter [andregauda](https://wordpress.org/support/users/andregauda/)
 * (@andregauda)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-when-cache-is-enabled-an-error-occurred-while-processing-this-directive/#post-9447373)
 * Here is the list of plugins I use:
 * Akismet
    WP No Category Base All in One SEO Pack – [https://br.wordpress.org/plugins/all-in-one-seo-pack/](https://br.wordpress.org/plugins/all-in-one-seo-pack/)
   Quick Adsense – [https://br.wordpress.org/plugins/quick-adsense/](https://br.wordpress.org/plugins/quick-adsense/)
   Redirection – [https://br.wordpress.org/plugins/redirection/](https://br.wordpress.org/plugins/redirection/)
   Shield Security – [https://br.wordpress.org/plugins/wp-simple-firewall/](https://br.wordpress.org/plugins/wp-simple-firewall/)
   WordPress Force HTTP – [https://br.wordpress.org/plugins/wp-force-http/](https://br.wordpress.org/plugins/wp-force-http/)
   WP Review – [https://br.wordpress.org/plugins/wp-review/](https://br.wordpress.org/plugins/wp-review/)
   WP Subscribe – [https://br.wordpress.org/plugins/wp-subscribe/](https://br.wordpress.org/plugins/wp-subscribe/)
   WP Tab Widget – [https://br.wordpress.org/plugins/wp-tab-widget/](https://br.wordpress.org/plugins/wp-tab-widget/)
 *  Thread Starter [andregauda](https://wordpress.org/support/users/andregauda/)
 * (@andregauda)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-when-cache-is-enabled-an-error-occurred-while-processing-this-directive/#post-9447390)
 * I deactivated the plugin “WordPress Force HTTP” and the error disappeared.
    I
   use this plugin because my hosting leaves SSL enabled by default, and my site
   was being indexed in Google with both URLs (http: // and https: //), duplicating
   my content. So I use the above plugin to force only one of the formats (http://).
 * But I do not understand why he would cause this error.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-when-cache-is-enabled-an-error-occurred-while-processing-this-directive/#post-9448215)
 * so strange. I have no idea 🙁
 *  Thread Starter [andregauda](https://wordpress.org/support/users/andregauda/)
 * (@andregauda)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-when-cache-is-enabled-an-error-occurred-while-processing-this-directive/#post-9454664)
 * Hi again!
 * I found another compatibility problem between your plugin and WordPress Force
   HTTP on another website.
    But one of the tests I did was to use previous versions
   of WP Fastest Cache and when I put the version 0.8.6.9 the problem disappeared
   on that other site.
 * I think this information may be interesting for your verification.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/error-when-cache-is-enabled-an-error-occurred-while-processing-this-directive/#post-9463215)
 * please contact me via email: [http://www.wpfastestcache.com/contact-us/](http://www.wpfastestcache.com/contact-us/)

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Error when cache is enabled: [an error occurred while processing this
directive]’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/error-when-cache-is-enabled-an-error-occurred-while-processing-this-directive/#post-9463215)
 * Status: not resolved