• Resolved Rajin Sharwar

    (@rajinsharwar)


    Hey there, I tried to install this plugin on my local, but facing Fatal errors. The errors are:

    PHP Fatal error: Uncaught Exception: Cache Warmer: Unknown option name: -last-handled-version-update in C:\Users\Lenovo\Local Sites\wp-develop\app\public\wp-content\plugins\cache-warmer\src\class-options.php:154

    And,

    PHP Fatal error: Uncaught Exception: Cache Warmer: Unknown option name: -last-db-success-migration-number in C:\Users\Lenovo\Local Sites\wp-develop\app\public\wp-content\plugins\cache-warmer\src\class-options.php:154

    After debugging, I found that, you can trying to get the options of “last-db-success-migration-number” and “last-handled-version-update“, but in your data/options.php, you have defined those as “cache-warmer-last-db-success-migration-number”, and “cache-warmer-last-handled-version-update“. Kindly fix this, either by adding the prefix while calling or removing the prefix while defining.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Rajin Sharwar

    (@rajinsharwar)

    Same for options of “db-migration-log”, and “setting-add-this-site-all-public-posts”.

    Thread Starter Rajin Sharwar

    (@rajinsharwar)

    So, after debugging I found that this line in cache-warmer.php is not able to get the plugin slug correctly, which is causing the issue.

    self::$slug = $dir_parts[ array_search( 'plugins', $dir_parts, true ) + 1 ];

    Plugin Author TMM Technology

    (@tmmtechnology)

    Hi @rajinsharwar

    Thanks for debugging

    Any ideas how to improve it?

    Plugin Author TMM Technology

    (@tmmtechnology)

    @rajinsharwar Just trying to figure out why this issue happens for you.

    Maybe because you have Windows and we are doing explode for UNIX systems with ‘/’?

    $dir_parts = explode( ‘/’, CACHE_WARMER_DIR );

    Thread Starter Rajin Sharwar

    (@rajinsharwar)

    Hey @tmmtechnology, that’s correct. Maybe you can try to use a fallback method for Windows, or just simply hardcode the slug as “cache-warmer”, as it is very unlikely to change, instead of getting from the plugins folder.

    Plugin Author TMM Technology

    (@tmmtechnology)

    @rajinsharwar Could you update the plugin to 1.2.2 and see if that helps please?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error ( Unknown option name: -last-handled-version-update )’ is closed to new replies.