View Issue Details

IDProjectCategoryView StatusLast Update
0000556WackoWikiactionpublic2024-02-27 13:26
ReporterAnrDaemon Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionunable to reproduce 
Product Version6.0.0 
Target Version6.1.x 
Summary0000556: Purging a page causes HTTP 500
DescriptionVer. 6.0.17, PHP 7.4
Steps To Reproduce1. Create a page in a root space.
2. Go to Actions -> Delete page
3.
[x] Remove all pages in a cluster
[x] Don't keep a copy of the deleted page
4. Click "Yes, delete".

The action is processed, but response is an 500 "Internal Server Error" page.
TagsNo tags attached.

Activities

administrator

2021-03-05 10:44

administrator   ~0001083

Did you have PHP error reporting on and if so, what was the corresponding message in the php_error_log?

AnrDaemon

2021-03-05 10:50

reporter   ~0001084

I do, but there were nothing logged. I'll check again with local installation some time later.

administrator

2021-03-05 10:59

administrator   ~0001085

Last edited: 2021-03-05 11:22

I did a test on my local XAMPP instance and all went as expected. I created a dummy page as well a subpage.

Remove page DummyPage

DummyPage
    Referrers removed.
    Pages categories deleted.
    Page acls removed.
    Bookmarks removed.
    Watches removed.
    Rating removed.
    Comments from page removed.
    Files from page removed.
    Page removed.
    All pages of the cluster removed.

This action cannot be undone.

That doesn't mean there may not a hidden error source in the chain of delete procedures like related files, categories or comments.

AnrDaemon

2021-03-05 11:01

reporter   ~0001086

Try without a subpage?

administrator

2021-03-05 11:05

administrator   ~0001087

Last edited: 2021-03-05 11:14

I did a additional test without subpage and a third test with attached file comment and assigned categories. Nothing broke.

I found in php_error_log (PHP 8.0.1):
PHP Warning: array_flip(): Can only flip string and integer values, entry skipped in wacko/class/wacko.php on line 7293

$rev = array_flip($this->page_id_cache);

AnrDaemon

2021-03-05 11:16

reporter   ~0001088

Thanks, I'll do an additional test on weekend.

AnrDaemon

2021-03-08 22:14

reporter   ~0001091

Installer wiki locally, repeated the test, got an empty 200 page on */remove.
Still needs more tests.

brianko

2024-02-26 04:01

manager   ~0001104

Unable to duplicate in 6.1.24.

Issue History

Date Modified Username Field Change
2021-03-05 10:37 AnrDaemon New Issue
2021-03-05 10:44 administrator Note Added: 0001083
2021-03-05 10:50 AnrDaemon Note Added: 0001084
2021-03-05 10:59 administrator Note Added: 0001085
2021-03-05 10:59 administrator Note Edited: 0001085
2021-03-05 11:01 AnrDaemon Note Added: 0001086
2021-03-05 11:05 administrator Note Added: 0001087
2021-03-05 11:05 administrator Note Edited: 0001087
2021-03-05 11:12 administrator Note Edited: 0001087
2021-03-05 11:12 administrator Note Edited: 0001087
2021-03-05 11:13 administrator Note Edited: 0001087
2021-03-05 11:14 administrator Note Edited: 0001087
2021-03-05 11:16 AnrDaemon Note Added: 0001088
2021-03-05 11:22 administrator Note Edited: 0001085
2021-03-08 22:14 AnrDaemon Note Added: 0001091
2021-03-11 13:42 administrator Status new => feedback
2024-02-26 04:01 brianko Note Added: 0001104
2024-02-27 13:26 administrator Status feedback => resolved
2024-02-27 13:26 administrator Resolution open => unable to reproduce
2024-02-27 13:26 administrator Target Version => 6.1.x