• Resolved Sebastian Scherf

    (@sidtcom)


    Hello,

    I found what appears to be a bug in the version 4.9.0 of WP STAGING.

    When action for refreshing the staging setup is clicked, the following fatal error occurs:

    PHP Fatal error: Uncaught Error: Call to a member function renderGlobExclude() on null

    The issue is located in:

    views/staging/_partials/files-selection.php

    The template uses the variable:

    $excludeUtils->renderSizeExclude($rule);
    $excludeUtils->renderGlobExclude($rule);

    However, DirectoryScanner::renderFilesSelection() does not pass an $excludeUtils variable to the template. Instead, it passes:

    'excludeFilters' => new ExcludeFilter(),

    After replacing $excludeUtils with $excludeFilters in the template, the fatal error is resolved and the staging setup works correctly.

    It looks like the template still references the old variable name while DirectoryScanner already provides the new object.

    Could you please verify whether this is a regression in the current release?

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Support Tapan Kumer Das

    (@voboghure)

    Hello @sidtcom

    I hope you are doing well.
    Thank you for the detailed report. We really appreciate you taking the time to investigate.

    Our devs find it is a regression. We’ll address it in the next release

    Thanks again for your help.
    Cheers!

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.