View Issue Details

IDProjectCategoryView StatusLast Update
6021Composrcorepublic2024-11-19 21:26
ReporterPDStig Assigned ToPDStig  
PrioritynormalSeveritytrivial 
Status resolvedResolutionfixed 
Product Version11.beta4 
Summary6021: Array to string conversion in sources/hooks/systems/sitemap/page.php on line 101 when editing a Wiki page
DescriptionSee private comment (made private as it contains sensitive information from a person's server)
Additional InformationTelemetry 2,911
TagsRoadmap: v11
Attach Tags
Attached Files
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

admin

2024-11-19 21:25

administrator   ~9613

Last edited: 2024-11-19 21:26

Automated response: Sitemap node only following redirects one level deep

The sitemap nodes were only following redirects one-level deep. If a redirect of a redirect were in place, the node would still receive redirect details, and the subsequent end() call would later result in an array to string error because $path would be an array.

This fix makes sitemap look up to 10 levels deep with redirects, and bail out on error if it exceeds 10 levels.

This fix has not been tested because I could not actually replicate this problem.

admin

2024-11-19 21:25

administrator   ~9614

Fixed in Git commit c80e8b82fb (https://gitlab.com/composr-foundation/composr/commit/c80e8b82fb - link will become active once code pushed to GitLab)

admin

2024-11-19 21:25

administrator   ~9615

A hotfix (a TAR of files to upload) has been uploaded to this issue. Only apply this hotfix if you absolutely need it and cannot wait until the next release of Composr (releases are more reliable and strictly tested). As of Composr version 11, the recommended way to apply a hotfix is by following the same steps as an upgrade (https://baseurl/upgrader.php, use the hotfix on the step “Transfer across new/updated files”). The upgrader will automatically skip files belonging to addons you do not have installed or that are newer on disk than in the hotfix. Otherwise, you can manually extract and replace these files (do not replace if your on-disk file is newer than the one in the hotfix). Always take backups of your site or at least files you are replacing before applying a hotfix. Not sure how to extract TAR files to your Windows computer? Try 7-zip (http://www.7-zip.org/).

Issue History

Date Modified Username Field Change
2024-10-26 02:22 PDStig New Issue
2024-10-26 02:22 PDStig Status Not Assigned => Assigned
2024-10-26 02:22 PDStig Assigned To => user4172
2024-10-26 02:22 PDStig Tag Attached: Roadmap: v11
2024-10-26 02:22 PDStig Additional Information Updated
2024-11-19 21:26 PDStig Note Edited: 0009613