Uncaught Error: Call to a member function renderGlobExclude() on null
-
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 nullThe issue is located in:
views/staging/_partials/files-selection.phpThe template uses the variable:
$excludeUtils->renderSizeExclude($rule);
$excludeUtils->renderGlobExclude($rule);However,
DirectoryScanner::renderFilesSelection()does not pass an$excludeUtilsvariable to the template. Instead, it passes:'excludeFilters' => new ExcludeFilter(),After replacing
$excludeUtilswith$excludeFiltersin 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
DirectoryScanneralready provides the new object.Could you please verify whether this is a regression in the current release?
Thank you!
You must be logged in to reply to this topic.