Support » Plugin: Autoptimize » Autoptimize interferring with social sharing

  • Resolved sillyfishlearning

    (@sillyfishlearning)


    Hi,

    When trying to share my posts on social media there was no preview. I scraped the URL with Facebook sharing debugger and Twitter Cards Validator after ensuring the social information for the page was up to date using Yoast but it still wouldn’t work.

    When I temporarily deactivated Autoptimize I was successfully able to scrape the URL but need to fix this without having to deactivate Autoptimize every time I update a post.

    I read that Inline all CSS can cause this problem but I don’t have that checked.

    I have Inline Critical CSS enabled and use Critical CSS to automate this for my website.

    How do I resolve this problem?

    Thanks,

    Rebecca

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Hey Rebecca;
    When using CriticalCSS and no applicable rules are found and no default rule is set, AO will fall back on inlining all CSS.

    The immediate fix (workaround) would be to set a default rule (based on a page that is representative of most pages on your site) as that way the full CSS is not inlined any more.

    Now this does beg the question; when going to Settings -> Autoptimize -> CriticalCSS do you see rules having been AUTO-generated?

    frank

    Thread Starter sillyfishlearning

    (@sillyfishlearning)

    Nope I’m not seeing anything and this message is displaying at the top of the page:

    It looks like there might be a problem with WordPress cron (task scheduling). Have a look at the FAQ or the info in the Job Queue instructions if all jobs remain in “N” status and no rules are created.

    I am just backing up my site so that I can disable WP Cron. Do I need to do anything else?

    Thanks,

    Rebecca

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Disabling WP Cron is not necessarily the solution, on the contrary; you need *something* to trigger WordPress scheduled jobs. Can you install the WP Crontrol plugin and then check Tools -> Cron Events for ao_ccss_queue; is it there, has it been executed and what is the next execution planned + are other jobs scheduled & executed?

    Thread Starter sillyfishlearning

    (@sillyfishlearning)

    I’ve just installed WP Crontrol, ao_ccss_queue is listed twice but not executed.

    The first one says Next Run UTC 51 years 2 months ago and the 2nd says Next Run UTC 2 hours 48 minutes ago.

    There are 35 different events that have not been executed.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    In that case (35 events not having executed) you seem to be having fundamental issues with scheduled WordPress jobs not executing Rebecca, maybe check with your host?

    Thread Starter sillyfishlearning

    (@sillyfishlearning)

    Rightyho will do. Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.