Forum
Items not deleting
HI Guys,
I'm having an issue with the CMS that nothing seems to be deleting, I'm having this issue with regions, multiple regions (Inside the main region) and with assets.
Here is the debug output:
SELECT u.*, r.* FROM perch2_users u, perch2_user_roles r WHERE u.roleID=r.roleID AND u.userEnabled=1 AND u.userID=1 AND u.userHash='2ed4ba03609294a2537739646419db93' LIMIT 1
UPDATE perch2_users SET userHash='81dae43907301a12d777e447b364cf75' WHERE userID=1
SELECT p.privKey FROM perch2_user_privileges p
SELECT * FROM (SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=1 OR userID=0 ORDER BY userID DESC) AS settings GROUP BY settingID
SELECT * FROM perch2_content_regions WHERE regionID=4 LIMIT 1
SELECT * FROM perch2_pages WHERE pageID='2' LIMIT 1
SELECT * FROM perch2_content_items WHERE regionID=4 AND itemRev=45 ORDER BY itemOrder ASC
When I click delete, then yes on the pop up the page reloads but the item i've tried to delete is still there.
Any ideas how to fix this?
Where's that debug from?
If you right click the Delete button and open the link in a new tap (to sidestep the JavaScript) does the delete page work?
Can you confirm you're running Perch 2.7.10?
Thats the output I get from the region page, I've just updated to 2.7 and tried the open in new tab thing,
If I do that it takes me to this URL: /perch/core/apps/content/delete/item/?id=9&itm=55
And this is the debug code from that page:
When I click confirm on the delete confirmation message I get taken back to the region but still nothing has been deleted
Can you show me your diagnostics report?
Here you go.... will ensure I add this in the start for future posts.
I've just tried this on localhost and it works fine so it must be something wrong with the server set up, Maybe the fact the PHP version is out of date?
The PHP version shouldn't be an issue, although it is very old.
Do you get any errors in your PHP error log?
No nothing in there
Ok, well let me know when you have something we can work with.
OK, i'm transitioning to new servers over the next month so hopefully that will fix it.