Title: Javascript error when using WPRocket
Last modified: February 17, 2023

---

# Javascript error when using WPRocket

 *  Resolved [jediwords](https://wordpress.org/support/users/jedimoff/)
 * (@jedimoff)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/)
 * We are getting javascript errors when using wp rocket
 * apbct-public-bundle.min.js?ver=6.4:1 Uncaught ReferenceError: ctPublicFunctions
   is not defined
   at apbct-public-bundle.min.js?ver=6.4:1:20661(anonymous) @ apbct-
   public-bundle.min.js?ver=6.4:1
 * APBCT ERROR: apbctLocalStorage object is not loaded.
    -  This topic was modified 3 years, 3 months ago by [jediwords](https://wordpress.org/support/users/jedimoff/).

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/page/2/?output_format=md)

 *  Plugin Support [amagsumov](https://wordpress.org/support/users/amagsumov/)
 * (@amagsumov)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16479642)
 * Hello [@jedimoff](https://wordpress.org/support/users/jedimoff/)
 * Could you, please let me know which site this problem occurs on?
 * Thank you.
 *  Thread Starter [jediwords](https://wordpress.org/support/users/jedimoff/)
 * (@jedimoff)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16482488)
 * Here you go:
 * [https://pastebin.com/raw/ui9uv4Zf](https://pastebin.com/raw/ui9uv4Zf)
 *  Plugin Support [amagsumov](https://wordpress.org/support/users/amagsumov/)
 * (@amagsumov)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16482672)
 * Hello [@jedimoff](https://wordpress.org/support/users/jedimoff/)
 * We need some additional details in order to continue the investigation.
 * Please contact us via our support system directly.
 * [https://cleantalk.org/my/support/open](https://cleantalk.org/my/support/open)
 * Thank you.
 *  [crissineon](https://wordpress.org/support/users/crissineon/)
 * (@crissineon)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16485021)
 * Same issue here
 * Thx
 *  Plugin Support [dimitrycleantalk](https://wordpress.org/support/users/dimitrycleantalk/)
 * (@dimitrycleantalk)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16485062)
 * Hello, [@crissineon](https://wordpress.org/support/users/crissineon/)
 * Please contact us via our private Ticket System: [https://cleantalk.org/my/support/open](https://cleantalk.org/my/support/open).
   We need additional details about your website. And please add there a link to
   this topic, so we can identify you quickly.
 *  Plugin Support [dimitrycleantalk](https://wordpress.org/support/users/dimitrycleantalk/)
 * (@dimitrycleantalk)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16486348)
 * Hello, [@jedimoff](https://wordpress.org/support/users/jedimoff/) [@crissineon](https://wordpress.org/support/users/crissineon/)
 * We assume that this issue occurs because you added our scripts to exclusion.
   
   If you have them, please remove our scripts from the exclusion.Then clear the
   WPRocket cache.
 * Did it help?
 *  [crissineon](https://wordpress.org/support/users/crissineon/)
 * (@crissineon)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16498225)
 * Hello,
 * thx, checked cleantalk scripts are NOT excluded in wprocket…
 * Updated to the last cleantalk and wp rocket version.
 * Issue still persist
 * Thx
 *  Plugin Support [dimitrycleantalk](https://wordpress.org/support/users/dimitrycleantalk/)
 * (@dimitrycleantalk)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16498297)
 * Hello, [@crissineon](https://wordpress.org/support/users/crissineon/)
 * We’ve made some fixes. All the changes will be included in the next stable release.
 * Please, reinstall the plugin. ( Download link: [https://github.com/CleanTalk/wordpress-antispam/releases/download/dev-version/cleantalk-spam-protect.zip](https://github.com/CleanTalk/wordpress-antispam/releases/download/dev-version/cleantalk-spam-protect.zip))
 * Here is a guide for you:
    1. Go to WordPress Administrator Panel —> Plugins.
    2. Find the plugin “Anti-Spam by CleanTalk” —> Deactivate.
    3. After the automatic page refreshing find the plugin again “Anti-Spam by CleanTalk”—
       > Delete. Confirm “Yes, delete these files”.
    4. Download the plugin archive from the link above.
    5. Go to Plugins —> Add New —> Upload Plugin.
    6. Choose the downloaded archive and press “Install Now”.
 * Did it help?
 *  [crissineon](https://wordpress.org/support/users/crissineon/)
 * (@crissineon)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16499365)
 * Hello Dimitry,
 * deinstalled cleantalk and installed the dev version, cleared all caches, but 
   i get still the same error …
 * Thx
 *  Plugin Support [dimitrycleantalk](https://wordpress.org/support/users/dimitrycleantalk/)
 * (@dimitrycleantalk)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16499572)
 * [@crissineon](https://wordpress.org/support/users/crissineon/)
 * Please contact us via our private Ticket System: [https://cleantalk.org/my/support/open](https://cleantalk.org/my/support/open).
   We need additional details about your website. And please add there a link to
   this topic, so we can identify you quickly.
 *  Thread Starter [jediwords](https://wordpress.org/support/users/jedimoff/)
 * (@jedimoff)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16500661)
 * I fixed the error by setting the Set Cookies to Yes. It was set to no.
   Jeremy
 *  [crissineon](https://wordpress.org/support/users/crissineon/)
 * (@crissineon)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16502253)
 * Hi,
 * i checked on 2 websites, and the Set Cookies Option is Set to On in my case. 
   Switch to Off and On again, no difference still the error..
 * [@dimitrycleantalk](https://wordpress.org/support/users/dimitrycleantalk/)
 * If Cookies Set to Off, should it not also work without getting this error?
 * Thx
    -  This reply was modified 3 years, 3 months ago by [crissineon](https://wordpress.org/support/users/crissineon/).
 *  Plugin Support [dimitrycleantalk](https://wordpress.org/support/users/dimitrycleantalk/)
 * (@dimitrycleantalk)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16502409)
 * Hello, [@crissineon](https://wordpress.org/support/users/crissineon/)
 * This is a very strange issue. This issue should disappear with the dev version.
   And should not depend on the choice of the cookie option.
 * Please contact us via our private Ticket System: [https://cleantalk.org/my/support/open](https://cleantalk.org/my/support/open)
 *  Plugin Support [sergecleantalk](https://wordpress.org/support/users/sergecleantalk/)
 * (@sergecleantalk)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16520845)
 * We’ve found that if the lazy-load option WPRocket option is used then you should
   add **data-pagespeed-no-defer** to Delay JavaScript execution in WPRocket.
 *  Plugin Support [sergecleantalk](https://wordpress.org/support/users/sergecleantalk/)
 * (@sergecleantalk)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/#post-16521322)
 * WP Admin Dashboard -> Settings -> WP Rocket -> File Optimization-> JavaScript
   Files -> Delay JavaScript execution -> Excluded JavaScript files

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/page/2/?output_format=md)

The topic ‘Javascript error when using WPRocket’ is closed to new replies.

 * ![](https://ps.w.org/cleantalk-spam-protect/assets/icon-256x256.gif?rev=3539767)
 * [Anti Spam for Contact Forms, Comments & Online Stores - CleanTalk](https://wordpress.org/plugins/cleantalk-spam-protect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cleantalk-spam-protect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cleantalk-spam-protect/)
 * [Active Topics](https://wordpress.org/support/plugin/cleantalk-spam-protect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cleantalk-spam-protect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cleantalk-spam-protect/reviews/)

 * 17 replies
 * 5 participants
 * Last reply from: [sergecleantalk](https://wordpress.org/support/users/sergecleantalk/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-when-using-wprocket/page/2/#post-16521659)
 * Status: resolved