• Resolved guitarzan

    (@guitarzan)


    Hi, I’ve purchased a valid API key and I’m attempting to get auto page rules in place. I only see one job in the Autoptimize CriticalCSS Power-Up Queue – it’s for “is_front_page” and it still says pending “P” after letting it process all day. Within the CriticalCSS account dashboard, there is a snippet generated by the API that appears correct but the status doesn’t change and no inline style is getting inserted.

    For a little more info, the site is hosted at WPEngine and I turned off Cloudflare and purged the page cache so that I’d be creating an http request rather than served from cache. I tried bouncing around to various other pages to trigger the plugin to automatically create jobs for those pages as well, but no luck. I’ve read the docs but don’t seem to be able to find where I’m going wrong. I’d appreciate any help you could give me on this, thanks!

    here’s the info from the plugin debug panel:

    Debug Information
    Options:
    autoptimize_cache_clean	0
    autoptimize_cache_nogzip	on
    autoptimize_ccss_additional	
    autoptimize_ccss_debug	1
    autoptimize_ccss_deferjquery	
    autoptimize_ccss_domain	
    autoptimize_ccss_finclude	
    autoptimize_ccss_forcepath	
    autoptimize_ccss_key	eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjo1NTIxfSwidHlwZSI6IkpXVF9UWVBFX0FQSV9UT0tFTiIsImlhdCI6MTU2MTk4OTA5N30.M4QuQZ91g7KhW6_VKQeXmvL0uSwhvNRipK1flIDlLXg
    autoptimize_ccss_keyst	2
    autoptimize_ccss_loggedin	
    autoptimize_ccss_noptimize	
    autoptimize_ccss_queue	Raw JSON:
    {"\/":{"ljid":"firstrun","rtarget":"types|is_front_page","ptype":"is_front_page","hashes":["dummyhash"],"hash":"dummyhash","file":null,"jid":"gen-26008321","jqstat":"JOB_ONGOING","jrstat":null,"jvstat":null,"jctime":1561989569.401397,"jftime":null}}
    Decoded JSON:
    Array
    (
        [/] => Array
            (
                [ljid] => firstrun
                [rtarget] => types|is_front_page
                [ptype] => is_front_page
                [hashes] => Array
                    (
                        [0] => dummyhash
                    )
    
                [hash] => dummyhash
                [file] => 
                [jid] => gen-26008321
                [jqstat] => JOB_ONGOING
                [jrstat] => 
                [jvstat] => 
                [jctime] => 1561989569.4
                [jftime] => 
            )
    
    )
    autoptimize_ccss_rlimit	
    autoptimize_ccss_rules	Raw JSON:
    {"paths":{},"types":{}}
    Decoded JSON:
    Array
    (
        [paths] => Array
            (
            )
    
        [types] => Array
            (
            )
    
    )
    autoptimize_ccss_servicestatus	a:2:{s:12:"extra_imgopt";a:3:{s:6:"status";s:2:"up";s:5:"hosts";a:1:{i:1;s:26:"https://cdn.shortpixel.ai/";}s:16:"launch-threshold";s:4:"4096";}s:7:"critcss";a:2:{s:6:"status";s:2:"up";s:5:"hosts";a:1:{i:1;s:24:"https://criticalcss.com/";}}}
    autoptimize_ccss_version	1.15.2
    autoptimize_ccss_viewport	a:2:{s:1:"w";s:0:"";s:1:"h";s:0:"";}
    autoptimize_cdn_url	
    autoptimize_css	on
    autoptimize_css_aggregate	
    autoptimize_css_datauris	
    autoptimize_css_defer	on
    autoptimize_css_defer_inline	
    autoptimize_css_exclude	admin-bar.min.css, dashicons.min.css
    autoptimize_css_include_inline	
    autoptimize_css_inline	
    autoptimize_css_justhead	
    autoptimize_extra_settings	a:5:{s:31:"autoptimize_extra_radio_field_4";s:1:"4";s:34:"autoptimize_extra_checkbox_field_1";s:1:"1";s:34:"autoptimize_extra_checkbox_field_0";s:1:"1";s:30:"autoptimize_extra_text_field_2";s:0:"";s:30:"autoptimize_extra_text_field_3";s:0:"";}
    autoptimize_html	on
    autoptimize_html_keepcomments	
    autoptimize_imgopt_launched	on
    autoptimize_imgopt_settings	a:4:{s:33:"autoptimize_imgopt_select_field_2";s:1:"2";s:35:"autoptimize_imgopt_checkbox_field_4";s:1:"1";s:35:"autoptimize_imgopt_checkbox_field_3";s:1:"1";s:31:"autoptimize_imgopt_text_field_5";s:0:"";}
    autoptimize_js	on
    autoptimize_js_aggregate	on
    autoptimize_js_exclude	s_sid,smowtion_size,sc_project,WAU_,wau_add,comment-form-quicktags,edToolbar,ch_client,seal.js
    autoptimize_js_forcehead	
    autoptimize_js_include_inline	
    autoptimize_js_justhead	
    autoptimize_js_trycatch	
    autoptimize_minify_excluded	on
    autoptimize_optimize_checkout	
    autoptimize_optimize_logged	on
    autoptimize_service_availablity	a:2:{s:12:"extra_imgopt";a:3:{s:6:"status";s:2:"up";s:5:"hosts";a:1:{i:1;s:26:"https://cdn.shortpixel.ai/";}s:16:"launch-threshold";s:4:"4096";}s:7:"critcss";a:2:{s:6:"status";s:2:"up";s:5:"hosts";a:1:{i:1;s:24:"https://criticalcss.com/";}}}
    autoptimize_show_adv	1
    autoptimize_version	2.5.1
    WP-Cron Intervals:
    Array
    (
        [wp_ultimate_csv_importer_scheduled_csv_data] => Array
            (
                [interval] => 5
                [display] => Check scheduled events on every second
            )
    
        [ultimate_cfimporter_pro_scheduled_export_data] => Array
            (
                [interval] => 5
                [display] => Check scheduled events on every second
            )
    
        [wp_ultimate_csv_importer_scheduled_images] => Array
            (
                [interval] => 10
                [display] => Schedule images on every second
            )
    
        [wp_ultimate_csv_importer_scheduled_emails] => Array
            (
                [interval] => 5
                [display] => Schedule emails on every second
            )
    
        [wp_ultimate_csv_importer_replace_inline_images] => Array
            (
                [interval] => 5
                [display] => Replace all inline images from post content
            )
    
        [weekly] => Array
            (
                [interval] => 604800
                [display] => Once Weekly
            )
    
        [hourly] => Array
            (
                [interval] => 3600
                [display] => Once Hourly
            )
    
        [twicedaily] => Array
            (
                [interval] => 43200
                [display] => Twice Daily
            )
    
        [daily] => Array
            (
                [interval] => 86400
                [display] => Once Daily
            )
    
    )
    WP-Cron Scheduled Events:
    Array
    (
        [1562011450] => Array
            (
                [smack_uci_cron_scheduled_export] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => wp_ultimate_csv_importer_scheduled_csv_data
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 5
                            )
    
                    )
    
                [smack_uci_email_scheduler] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => wp_ultimate_csv_importer_scheduled_emails
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 5
                            )
    
                    )
    
                [smack_uci_replace_inline_images] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => wp_ultimate_csv_importer_replace_inline_images
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 5
                            )
    
                    )
    
                [smack_uci_cron_scheduler] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => wp_ultimate_csv_importer_scheduled_csv_data
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 5
                            )
    
                    )
    
            )
    
        [1562011455] => Array
            (
                [smack_uci_image_scheduler] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => wp_ultimate_csv_importer_scheduled_images
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 10
                            )
    
                    )
    
            )
    
        [1562012090] => Array
            (
                [wp_scheduled_delete] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => daily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 86400
                            )
    
                    )
    
            )
    
        [1562012976] => Array
            (
                [ao_ccss_servicestatus] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => daily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 86400
                            )
    
                    )
    
                [ao_ccss_maintenance] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => twicedaily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 43200
                            )
    
                    )
    
            )
    
        [1562014292] => Array
            (
                [wp_privacy_delete_old_export_files] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => hourly
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 3600
                            )
    
                    )
    
            )
    
        [1562031756] => Array
            (
                [wpo_plugin_cron_tasks] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => twicedaily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 43200
                            )
    
                    )
    
            )
    
        [1562043027] => Array
            (
                [ao_cachechecker] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => twicedaily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 43200
                            )
    
                    )
    
            )
    
        [1562047894] => Array
            (
                [wp_version_check] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => twicedaily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 43200
                            )
    
                    )
    
                [wp_update_plugins] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => twicedaily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 43200
                            )
    
                    )
    
                [wp_update_themes] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => twicedaily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 43200
                            )
    
                    )
    
            )
    
        [1562047979] => Array
            (
                [ao_cachechecker] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => twicedaily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 43200
                            )
    
                    )
    
            )
    
        [1562071997] => Array
            (
                [wp_scheduled_auto_draft_delete] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => daily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 86400
                            )
    
                    )
    
            )
    
        [1562078766] => Array
            (
                [ai1wm_cleanup_cron] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => daily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 86400
                            )
    
                    )
    
            )
    
        [1562079783] => Array
            (
                [wphb_minify_clear_files] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => daily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 86400
                            )
    
                    )
    
            )
    
        [1562080823] => Array
            (
                [jp_purge_transients_cron] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => daily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 86400
                            )
    
                    )
    
            )
    
        [1562082806] => Array
            (
                [wphb_clear_logs] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => daily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 86400
                            )
    
                    )
    
            )
    
        [1562083660] => Array
            (
                [recovery_mode_clean_expired_keys] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => daily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 86400
                            )
    
                    )
    
            )
    
        [1562086022] => Array
            (
                [wpseo-reindex-links] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => daily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 86400
                            )
    
                    )
    
            )
    
        [1562087213] => Array
            (
                [swp_maintenance] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => daily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 86400
                            )
    
                    )
    
            )
    
        [1562091762] => Array
            (
                [wmac_cachechecker] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => daily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 86400
                            )
    
                    )
    
            )
    
        [1562092757] => Array
            (
                [wpseo-premium-prominent-words-recalculate] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => daily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 86400
                            )
    
                    )
    
            )
    
        [1562097192] => Array
            (
                [delete_expired_transients] => Array
                    (
                        [40cd750bba9870f18aada2478b24840a] => Array
                            (
                                [schedule] => daily
                                [args] => Array
                                    (
                                    )
    
                                [interval] => 86400
                            )
    
                    )
    
            )
    
    )

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

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

    (@optimizingmatters)

    is debug logging still active guitarzan ?

    Thread Starter guitarzan

    (@guitarzan)

    Hi! I turned debug mode off, but I can turn it back on if that helps? Ok, debug mode is now active

    • This reply was modified 5 years, 8 months ago by guitarzan.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    yes please, just ping me here when done ??

    Thread Starter guitarzan

    (@guitarzan)

    All set! debug logging is active

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm, based on the queuelog:
    * the cronned queue processing job is not running
    * no jobs are being added to the queue

    the first issue is addressed in the FAQ, can you try the suggestions in there

    the second issue is somewhat harder; I have seen it before occasionally and am in the process of trying to debug this myself. can you try disabling/ re-enabling Autoptimize and/ or the Critical CSS power-up to start with?

    Thread Starter guitarzan

    (@guitarzan)

    Hi, thanks for the suggestions. I’ve deactivated both Autoptimize and the Critical CSS power-up, then reactivated in that order. Still not seeing the cron event in question but judging by the timestamps I’m seeing, there are others associated with Autoptimize that appear to be running so I think cron jobs are fine at the hosting level (I have a screenshot if you need: see screenshot)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    re. cron; looks like the queue processing job (hook name ao_ccss_queue, action ao_ccss_queue_control()) is not listed in your screenshot? or is it listed but not on the screenshot?

    Thread Starter guitarzan

    (@guitarzan)

    Correct, those are not listed. The screenshot contains the only “ao_” events I could see

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    In that case either try to deactivate and re-activate AO CCSS again (the cron job should be registered that way) or add one using the “add cron event” form on the “wp crontrol” Cron Events page?

    Thread Starter guitarzan

    (@guitarzan)

    Ok, deactivating didn’t do it so I added the cron event manually via WP Crontrol and now the “is_front_page” rule status changed from “P” to “auto”. Still not seeing the Critical CSS code on the frontend however. I’ve bounced around to some other unique page urls as a non-logged in user and there are not ccss jobs being added automatically for those pages.

    I still have debugging turned on. Not sure if I’m on autopilot here yet?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, so one of two problems is fixed (the queue processing), the other problem (jobs not being added to the queue) not yet.

    Maybe related to the latter; I indeed don’t see the critical CSS being injected, even not on the homepage (for which we have a working rule) and the full CSS is not preloaded (so remains render-blocking. Is “inline & defer” active in Autoptimize? If it is not you need to activate it, if it is I’m beginning to suspect some kind of conflict with another plugin in which case you would have to disable plugins one at a time while checking HTML source of homepage to see if/ when the critical CSS is injected?

    Thread Starter guitarzan

    (@guitarzan)

    Yes, “Inline and Defer CSS?” is checked in the Autoptimize settings. I’ll go through the other active plugins as you describe and let you know if any conflicts present themselves. I really want this plugin to work as it would be a huge timesaver! thanks

    Thread Starter guitarzan

    (@guitarzan)

    Ok, just following up on the fact that after turning off all plugins (other than autoptimize and power-up), I found no plugin conflicts. At no point was the style injected into the homepage. I’ll start a ticket with my hosting provider just to see if they have noticed any error logs that I don’t have access to. Otherwise, I’m dead in the water unless you have any other ideas?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Otherwise, I’m dead in the water unless you have any other ideas?

    well, I’ve seen one other instance of this problem (no jobs being added to the queue) and was able to fix that by first downgrading AO to 2.3.4 (download here), which kicked the queue into motion (still have to investigate why, big mystery up until now) and when I then upgraded to 2.5.1 again it simply continued to work. so if all else fails maybe try that as well?

    Thread Starter guitarzan

    (@guitarzan)

    Wow, your suggestion definitely had an effect. I trashed the current autoptimize plugin and installed v2.3.4. Then I re-activated the power-up. Still nothing at this point. I then updated the autoptimize plugin to v2.5.1. Then I went ahead and manually created a cron event for ao_ccss_queue and presto, I now have created a full job queue.

    I see that the homepage is properly injecting the inline style from the API. Now the issue seems to be that the other jobs in the queue aren’t being executed. The bottom 4 jobs in the list are now stuck on pending “P”. I’ve left debugging on. Thanks for your help thus far, almost there!

    • This reply was modified 5 years, 8 months ago by guitarzan.
Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Job queue status stays as pending “P”’ is closed to new replies.