Console Errors of “Uncaught TypeError: Cannot read properties of undefined (reading ‘autoplay’)”

This topic has 2 replies, 2 voices, and was last updated 4 months ago ago by Rose Tyler

  • Avatar: ali ahmad
    ali ahmad
    Participant
    November 23, 2024 at 14:48

    1) Cart Popup is not working.
    2) Site is slow, site health shows “scheduled event, litespeed_task_imgoptm_pull, is late to run”.
    3) Console error logs.
    Please fix the loading issues, I have added the screenshots for this. PFA

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 24, 2024 at 10:51

    Hello,

    Thank you for reaching out to us.

    Please post different questions via separate topics – https://www.8theme.com/forums/xstore-wordpress-support-forum/

    1/ We’ve disabled and activated cache plugin on your site, this action cleared cache and fixed the issue – https://prnt.sc/xPwd1DvBVE9h

    2/ It sounds like you’re encountering a performance issue due to a delayed scheduled task in your WordPress site. The task litespeed_task_imgoptm_pull is related to LiteSpeed Cache and its image optimization feature, specifically the task that pulls image optimization jobs to optimize images on your site.

    Here’s how you can approach fixing this issue:

    1. Check Cron Jobs
    LiteSpeed relies on WP-Cron (WordPress’s internal cron system) to schedule tasks. If WP-Cron isn’t running properly, it could delay the execution of tasks like image optimization. You can check the status of cron jobs:

    Install a plugin like WP Crontrol to view and manage cron jobs.
    In the WordPress dashboard, go to Tools > Cron Events.
    Look for any failed or pending events related to LiteSpeed or imgoptm_pull.
    If there are issues with WP-Cron, you may need to disable it and set up a system cron job instead, which runs more reliably. You can add a cron job through your hosting control panel (cPanel, Plesk, etc.) or contact your hosting provider for assistance.

    2. Optimize LiteSpeed Cache Settings
    Ensure that LiteSpeed Cache is properly configured, especially for image optimization. Go to LiteSpeed Cache > Image Optimization settings in your WordPress dashboard.

    Check if there are any issues with image optimization, such as large image queues, timeout errors, or a server resource limitation that might be preventing the task from running on time.

    You can try to clear the cache and restart the optimization process to see if it resolves the issue.

    3. Increase PHP Resources
    Sometimes, PHP resources like max_execution_time or memory_limit might be insufficient, causing background tasks like imgoptm_pull to get delayed or fail.

    Check your php.ini settings or ask your hosting provider to increase:
    max_execution_time (increase to 300 seconds or more)
    memory_limit (increase to at least 256MB or 512MB)
    You can also try increasing the resources allocated to LiteSpeed tasks, which might help if the server is under heavy load.
    4. LiteSpeed Task Queue
    If the issue persists, you might want to manually force LiteSpeed to process the task queue. You can do this through the LiteSpeed Cache > Advanced > Task Queue section.

    In the Task Queue, you may see a list of tasks that are pending or failed. You can attempt to manually trigger the process or clear any stuck tasks.
    5. Check Server Logs
    Inspect your server’s error logs or LiteSpeed logs to see if there are any specific errors related to image optimization or scheduled events. This can give you a clue if the problem is related to permissions, server configuration, or other resource issues.

    6. Update LiteSpeed Cache Plugin
    Ensure you’re running the latest version of the LiteSpeed Cache plugin. Updates often come with bug fixes that may resolve issues with scheduled tasks.

    7. Contact Hosting Provider
    If the above steps don’t resolve the issue, your hosting provider might be able to help. They can check server load, cron job settings, and other server-related factors that might be contributing to the delay.

    3/ For guidance on rectifying the ‘Access-Control-Allow-Origin’ issue, you may find the following resource helpful: https://crunchify.com/how-to-fix-access-control-allow-origin-issue-for-your-https-enabled-wordpress-site-and-maxcdn/. Alternatively, we recommend seeking assistance from your hosting provider for further support.

    Best Regards,
    8Theme’s Team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.