Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Alin (a11n)

    (@alinclamba)

    Hi @kuechenlatein,

    Critical CSS generation issues can be caused by multiple factors. To help address the “Unexpected error occurred” message you’re seeing, please follow these troubleshooting steps:

    1. Check for Conflicts: Disable all other plugins and switch to the default theme (like Twenty Twenty-One) to see if there might be a conflict with another plugin or your current theme.
    2. Server Resources:?Ensure that your server has sufficient resources and that PHP timeouts are high enough to allow for CSS generation.

    Please give it a try and let us know how it goes.

    Thread Starter kuechenlatein

    (@kuechenlatein)

    1. Done before I opened the thread, it’s the plugin itsself with Twenty-Twelve
    2. My server has sufficient resources and critical CSS could be generated until the latest WP (6.4.3) and Jetpack Boost (3.0.2) update
    Plugin Support Alin (a11n)

    (@alinclamba)

    Hi @kuechenlatein,

    We have identified the root cause of the problem.

    Cause of the Issue: The Critical CSS generation issue is primarily related to a specific Amazon ad placement on your website. The request to load the Amazon ad, which includes a tracking pixel, was timing out, preventing the successful generation of Critical CSS. The specific request causing the issue is as follows:

    https://ir-de.amazon-adsystem.com/e/ir?t=kuechenlatein-21&l=as2&o=3&a=B019V4VMSE

    Where We Found the Issue: We located the issue in the HTML code of your website within a custom HTML widget in the sidebar.

    What You Can Do to Resolve the Issue: To address the Critical CSS generation issue caused by the Amazon ad, we recommend the following steps:

    A potential solution is to edit or remove this widget:

    1. Go to your WordPress Dashboard.
    2. Navigate to Appearance > Widgets.
    3. Find the widget titled “Meine SlowCooker Bücher” (or look for custom_html-2 if the title isn’t unique).
    4. Edit the widget to remove or adjust the code causing the issue. If you decide to remove the tracking pixel, delete the last <img> tag that has the src attribute pointing to amazon-adsystem.com; this is a suggestion, I’m not very familiar with how Amazon ads work but you can give this a try.
    5. Save the changes and clear your site’s cache if you have caching enabled.

    After making these changes, you should monitor the site to see if the timeout issue is resolved. If removing the tracking pixel does not resolve the issue, or if you have any doubts, you may need to consult with a web developer or reach out to Amazon Affiliate support for further assistance.

    I hope this helps, but if you have any questions, please let us know.

    Thread Starter kuechenlatein

    (@kuechenlatein)

    I removed https://ir-de.amazon-adsystem.com/e/ir?t=kuechenlatein-21&l=as2&o=3&a=B019V4VMSE and the problem is solved now. Thank you very much

    Plugin Support Alin (a11n)

    (@alinclamba)

    Hi @kuechenlatein,

    I am glad we could help! You did great!

    Given that, I’m marking this thread as resolved and if anything else comes up, please let us know.

    Stay awesome!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Kritisches CSS konnte nicht generiert werden Es ist ein unerwarteter Fehler auf’ is closed to new replies.