View Issue Details

IDProjectCategoryView StatusLast Update
0006021Composrcorepublic2024-11-19 21:26
ReporterPatrick SchmalstigAssigned ToPatrick Schmalstig 
SeverityTrivial-bug 
Status resolvedResolutionfixed 
Product Version11.beta4 
Fixed in Version 
Summary0006021: 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
Time estimation (hours)
Sponsorship open

Activities

admin

2024-11-19 21:25

administrator   ~0009613

Last edited: 2024-11-19 21:26

View 2 revisions

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   ~0009614

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   ~0009615

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/).

hotfix-6021, 2024-11-19 9pm.tar (121,344 bytes)

Issue History

Date Modified Username Field Change
2024-10-26 02:22 Patrick Schmalstig New Issue
2024-10-26 02:22 Patrick Schmalstig Status non-assigned => assigned
2024-10-26 02:22 Patrick Schmalstig Assigned To => Patrick Schmalstig
2024-10-26 02:22 Patrick Schmalstig Tag Attached: Roadmap: v11
2024-10-26 02:22 Patrick Schmalstig Additional Information Updated View Revisions
2024-11-19 21:26 Patrick Schmalstig Note Edited: 0009613 View Revisions