• Resolved Erik Molenaar

    (@erikmolenaar)


    Hi,

    I caught a PHP Notice in version 0.15.1. Can you fix this in the next version release? Thanks for this awesome plugin!

    Notice: Undefined index: path in /wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 1470

    Stack Trace:

    1.  W3TC\PgCache_ContentGrabber->_get_page_key(Array(6), 0)
        /wp-content/plugins/w3-total-cache/PgCache_Flush.php:313
    2.  W3TC\PgCache_Flush->_flush_url(0, W3TC\Cache_Memcached, Array(1), Array(1), Array(1), Array(2), Array(2), '')
        /wp-content/plugins/w3-total-cache/PgCache_Flush.php:281
    3.  W3TC\PgCache_Flush->flush_post_cleanup()
        /wp-content/plugins/w3-total-cache/CacheFlush_Locally.php:260
    4.  W3TC\CacheFlush_Locally->_execute_delayed_operations_pgcache(Array(0))
        /wp-includes/class-wp-hook.php:287
    5.  WP_Hook->apply_filters(Array(0), Array(1))
        /wp-includes/plugin.php:206
    6.  apply_filters('w3tc_flush_execute_del...', Array(0))
        /wp-content/plugins/w3-total-cache/CacheFlush_Locally.php:252
    7.  W3TC\CacheFlush_Locally->execute_delayed_operations()
        /wp-content/plugins/w3-total-cache/CacheFlush.php:189
    8.  W3TC\CacheFlush->execute_delayed_operations()
        /wp-includes/class-wp-hook.php:285
    9.  WP_Hook->apply_filters(null, Array(1))
        /wp-includes/class-wp-hook.php:311
    10. WP_Hook->do_action(Array(1))
        /wp-includes/plugin.php:478
    11. do_action('shutdown')
        /wp-includes/load.php:1007
    12. shutdown_action_hook()

    Context:

    URL            : /?wc-ajax=get_refreshed_fragments
    Referer        : https://www.myawesomesite.com/product/widgets?attribute_color=blue+cm&gclid=<removed_for_privacy_reasons>
    HTTP Method    : POST
    HTTP Status    : 200
    isSSL          : Yes
    Current Filter : template_redirect, wc_ajax_get_refreshed_fragments, shutdown, w3tc_flush_execute_delayed_operations
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @erikmolenaar

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    That is supposed to be populated before that line. It’s most likely a request with no available request URL.
    It may have to do with flushing page cache at /wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 311
    Can you please share if the notice is logged consistently or if it appears only once in a while?
    Thanks!

    Thread Starter Erik Molenaar

    (@erikmolenaar)

    Hi Marko,

    Thanks for your prompt reply.

    I am getting it approx. every 20 minutes on a website with about 30k sessions p/month.

    So my guess is there is a scenario where this line is not populated, could be a no available request URL indeed.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @erikmolenaar

    Thank you for the information. Does it happen after a post is being updated or a new article published? Anything that could lead to flushing of a single URL cache entries?
    Thanks!

    Thread Starter Erik Molenaar

    (@erikmolenaar)

    Hi Marko,

    Thanks again for your prompt reply.

    I am sorry but I am not sure. From the looks of the Referer URL containing gclid this error was produced when a site visitor came from a Google Ads link. But I can’t tell why the /?wc-ajax=get_refreshed_fragments parameter was there nor when this (or any other) post was updated or published.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @erikmolenaar

    Thank you for the info. Let me get back to you on this.
    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @erikmolenaar

    Thank you for your patience.
    I spoke with the devs and I’ve created a GitHub issue on your behalf in our Github Repository.
    Please make sure to track the progress of the issue regularly and feel free to comment if needed.
    Thanks!

    Thread Starter Erik Molenaar

    (@erikmolenaar)

    Thanks for your help @vmarko !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Notice: Undefined index: path (v0.15.1)’ is closed to new replies.