Home Forums WoodMart support forum Critical JS Error (slick.min.js) prevents Manual Ads from loading – Need urgent

Critical JS Error (slick.min.js) prevents Manual Ads from loading – Need urgent

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #698386

    kruajeng
    Participant

    I am writing to report a critical issue on my website kruajeng.com. I am unable to display Manual Google AdSense ads on my Single Post pages, despite my AdSense account being fully approved and active.

    The Problem: I am trying to place ads manually using the “Ad Inserter” plugin to control specific positions (e.g., Sidebar, After Content). However, these manual ads refuse to show up.

    Crucial Observation (Auto vs. Manual):

    Manual Ads: Do NOT appear at all.

    Google Auto Ads: If I enable Auto Ads in AdSense, ads DO appear.

    The Root Cause: In both cases (Auto or Manual), I see a persistent JavaScript error in the console coming from the theme: Uncaught TypeError: Cannot set properties of null (setting ‘textContent’) related to slick.min.js.

    Our Diagnosis: It seems this slick.min.js error disrupts the JavaScript execution flow. While Google’s Auto Ads script is robust enough to bypass this error, standard manual ad scripts (like Ad Inserter’s) get blocked by this theme error and fail to render.

    What I have already done to troubleshoot (Unsuccessful): I have tried extensive troubleshooting on my end to fix this manual ad issue, but nothing worked:

    1. Verified AdSense Status: Confirmed the site status is “Ready”.

    2. Configuration Check: Verified Ad Inserter settings are correct (blocks are active, placement logic is correct).

    3. Environment: Tested in Incognito mode with NO Ad Blockers.

    4. Clearing Cache: Purged all caches (Server-side, WP Rocket, Browser).

    5. Isolation: Confirmed via Chrome Console that the slick.min.js error exists on Single Post pages regardless of plugin settings.

    My Goal: I need to use Manual Ad placements for better layout control. I cannot rely solely on Auto Ads.

    Request: Could you please investigate and fix this slick.min.js error on Single Post pages? It appears the theme is trying to initialize a slider on a missing element, which is breaking my 3rd-party scripts.

    Please see the attached screenshots for details.

    Attachments:
    You must be logged in to view attached files.
    #698445

    kruajeng
    Participant

    I am writing to report a technical issue on my website kruajeng.com where Manual Google AdSense codes are failing to render on Single Post pages, likely due to a JavaScript error in the theme.

    The Issue Detail: I am trying to place a standard Display Ad manually (using the Ad Inserter plugin and also trying HTML blocks). I have waited over 24-48 hours, but the manual ads never appear.

    The Specific Code I used (which failed to load): I implemented the following standard AdSense code, but it remains invisible:

    1. Important Observation (Auto vs. Manual):

    2. Manual Placement: The code above DOES NOT render. The space is blank.

    3. Google Auto Ads: If I turn on “Auto Ads” in AdSense settings, ads DO appear.

    The Root Cause: In the browser console, I see a persistent error coming from the theme: Uncaught TypeError: Cannot set properties of null (setting ‘textContent’) related to slick.min.js.

    My Diagnosis: It appears that Google’s “Auto Ads” script is aggressive enough to bypass this theme error. However, standard manual ad scripts (like the one above) are being blocked/interrupted by this slick.min.js error. Since I require manual placement for layout control, relying on Auto Ads is not a solution.

    Troubleshooting steps taken:

    1. Waiting: Waited 48 hours to ensure it wasn’t a propagation delay.

    2. AdSense Status: Account is fully approved (“Ready” status).

    3. Clean Environment: Tested in Incognito Mode with NO Ad Blockers.

    4. Isolation: The slick.min.js error persists on Single Post pages even when caching is cleared and plugins are minimized.

    Request: Please investigate and fix the slick.min.js initialization error on Single Post pages. This bug is breaking the execution of my manual third-party scripts.

    Please find the attached screenshots of the console error.

    #698446

    kruajeng
    Participant

    display ads

    Attachments:
    You must be logged in to view attached files.
    #698488

    Artem Temos
    Keymaster

    Hi,

    Thanks for the detailed report. The slick.min.js error on single post pages is most often caused by a JavaScript conflict or an optimization plugin altering script order, which can block third‑party scripts like Ad Inserter. Let’s isolate and fix it:

    Please do these checks in order:
    1) Update and cache
    – Make sure WoodMart and WoodMart Core are fully up to date.
    – Clear all caches (plugin/server/CDN/browser).

    2) Disable plugins not related to our theme
    – Temporarily deactivate all third‑party plugins and leave only:
    – WoodMart Core
    – Your page builder (Elementor or WPBakery)
    – WooCommerce (only if your site uses it)
    – Keep Ad Inserter and any cache/optimization plugins deactivated for this test.
    – Recheck a single post page console. If the error disappears, reactivate plugins one by one, starting with your cache/optimization plugin and Ad Inserter, to find the conflict.

    3) Turn off optimization features
    – If you use a caching/optimization plugin, temporarily disable JS/CSS minify, combine, defer, delay JS, lazy load, and CDN features, then test the single post again.

    4) Switch theme temporarily
    – If the error still persists with only required plugins, switch from the child theme to the WoodMart parent theme and test again.
    – Also temporarily remove any code in Theme Settings -> Custom JS and test again.

    If the issue continues after these steps, please provide:
    – A single post URL where we can see the error.
    – Temporary WP admin access (in the private area) and permission to keep third‑party plugins disabled while testing. We will check the console, identify the exact source of the slick initialization, and adjust settings so manual AdSense placements render correctly.

    We’re ready to proceed as soon as you confirm.

    Kind Regards

    #698496

    kruajeng
    Participant

    Hi Support Team, Artem Temos

    Please read this carefully. I am extremely frustrated as I have been trying to solve this ad rendering issue for over 2 months. I understand your standard protocol asks to “disable plugins,” but let me be very clear about the current situation so we don’t waste any more time:

    1. Current Site State (Messy): My site currently has Google “Auto Ads” enabled ONLY to prove that my AdSense account is active and working. However, I DO NOT want to use Auto Ads. They are placing ads randomly, ruining my site’s layout and User Experience. It looks terrible.

    2. Why I use “Ad Inserter”: I need the “Ad Inserter” plugin to place ads in specific, organized positions (Manual Placement). The problem is: When I try to use Ad Inserter for manual ads, they do not show up.

    3. The Real Culprit (The Theme Bug): The issue is NOT the Ad Inserter plugin. The issue is the Uncaught TypeError: … slick.min.js error coming from the Woodmart theme on Single Post pages. This theme error breaks the JavaScript execution chain, causing 3rd-party scripts (like Ad Inserter) to fail.

    4. What I have ALREADY done (So please don’t ask me to do it again):
    – Updates: Woodmart Core and Theme are updated.
    – Builder: I use Gutenberg (Native), NOT Elementor/WPBakery.
    – Optimization: I do NOT use any heavy optimization/caching features that would alter script order.
    – Testing: Even with clean settings, the slick.min.js error persists in the console.

    My Request: I have already provided you with temporary admin access. PLEASE Log in now. DO NOT tell me to disable Ad Inserter, because that is the tool I need to use! Instead, please investigate why slick.min.js throws an error on Single Posts and fix it so that it stops blocking my Ad Inserter scripts.

    I grant you full permission to disable/enable plugins for testing if needed, but the goal is to make Manual Ads via Ad Inserter work, not to remove them. Waiting for an urgent fix. !!! ? ? ? ? ?

    #698505

    Artem Temos
    Keymaster

    Hello,

    We have disabled all plugins that are not related to our theme (with your permission), and we don’t see any errors caused by the slick.min.js file. Also, note that our theme doesn’t have such a file at all.

    Kind Regards

    #698633

    kruajeng
    Participant

    Hello Artem, Thank you for your response. I am not a developer, so I tried to follow your advice to find the conflict. However, I discovered something very specific that proves the issue is within the theme itself.

    To test this, I went to the Layout builder and simply added a standard “Woodmart Product Carousel” block (your native theme element) to the page. Here is the critical finding (please see the attached screenshot):

    1. The Context: I want to emphasize that I am working within the standard Single Post Layout system provided by Woodmart. I have not modified any code or done anything custom. I am simply using the theme’s native builder features exactly as they are designed in your original templates.

    2. The Trigger: As soon as I added your “Woodmart Product Carousel” to this standard layout, the Console immediately showed the red error: Uncaught TypeError: Cannot set properties of null (setting ‘textContent’).

    The Impact: At the exact same moment this error appeared, my Manual AdSense unit (placed at the top) stopped displaying. My Question to you: Since I am strictly using your native element (Product Carousel) inside your native layout system, without any custom modifications, shouldn’t this work out-of-the-box?

    If using your own standard elements in your own layout builder triggers a JS error that breaks the site, doesn’t this confirm the bug is in the theme’s code, not a plugin conflict?

    I have provided the admin access in the private area previously. Could you please log in and verify this? I have left the Product Carousel on the page so you can see the error live. I have been struggling with this for 2 months. Please help me fix this theme bug. ! ? ! ! ! ! ? ? ? ? ? ?

    Attachments:
    You must be logged in to view attached files.
    #698714

    Artem Temos
    Keymaster

    Hello,

    OK, thank you for the details. Now the error is completely different from the one you mentioned earlier. But we see that you enabled all the plugins again, and it looks like one of the plugins caused this error. Even if you see it only with our carousel element, it doesn’t 100% prove that it is our theme’s code error. Anyway, please, disable all plugins one more time and keep them turned off so we can check this without plugins. Also, please remove all the custom code you added to Theme Settings -> Custom JS and the child theme if any.

    Kind Regards

    #698729

    kruajeng
    Participant

    Thank you for your response, but I must address your points precisely and firmly so we can solve this problem once and for all.

    1. Regarding the Error Being “Completely Different”: The root cause that is breaking the site and killing the AdSense code is the Uncaught TypeError: Cannot set properties of null (setting ‘textContent’). This specific error has been persistent since I introduced the WoodMart Carousel element, and it remains the primary, fatal issue. It is the same core bug.

    2. Regarding Custom Code/JS (CSS Hero): You asked me to remove custom code. The custom CSS/JS I use for styling is managed by the CSS Hero plugin. I can confirm that this plugin was DEACTIVATED during my latest test (as you requested). Furthermore, the small peerjs errors related to CSS Hero that you might have seen previously ARE NOW GONE because the plugin is currently disabled. This confirms that my custom code is NOT the cause of the TypeError.

    3. Regarding Disabling Plugins Again: I have already followed your instructions and performed the ultimate isolation test (despite the risk to my live site): I have deactivated all third-party plugins.

    THE FINAL CONCLUSION IS UNMISTAKABLE (Proof by elimination): The Uncaught TypeError: Cannot set properties of null is STILL PRESENT in the Console when ONLY the WoodMart theme and your native Product Carousel element are active.

    This proves with 100% certainty that the bug lies in the WoodMart theme’s core code when initializing the slider element, which then attempts to manipulate an element that doesn’t exist (null).

    I have done everything you asked, and the evidence points directly to your theme. Please stop looking for external factors. I insist that you log in with the provided credentials and debug your theme code to fix this critical error immediately.

    Attachments:
    You must be logged in to view attached files.
    #698731

    Artem Temos
    Keymaster

    As we can see, you didn’t remove Custom JS from Theme Settings as I asked before. Note that I didn’t mention your custom CSS at all. Please remove the code and test how it works.

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