Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.1] Fix fatal error during Joomla update #42976

Closed

Conversation

joomdonation
Copy link
Contributor

@joomdonation joomdonation commented Mar 7, 2024

Pull Request for Issue # .

Summary of Changes

As of right now, update to Joomla 5.1 nightly build package will get fatal error. It is because the code for delete folders using Path::clean method which is not available for using. You can read the discussion at #42971 to understand more if needed

As the list of folders are provided by us, so it is clean and trusted, we can remove Path::clean call here. I also made some minor clean up to the code, too.

Testing Instructions

Actual result BEFORE applying this Pull Request

If you update your site to Joomla nightly build package, you will get fatal error

Expected result AFTER applying this Pull Request

No error updating to package generated by this PR.

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed

@@ -573,8 +572,6 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
'folders_deleted' => [],
'files_errors' => [],
'folders_errors' => [],
'folders_checked' => [],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For someone does code review, the two array elements definition here could be removed because it is immediately overwrite later at https://github.com/joomla/joomla-cms/blob/5.1-dev/administrator/components/com_admin/script.php#L2539-L2540

@joomdonation
Copy link
Contributor Author

Closing because the changes here are all included in other PR #42978 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants