Steele Media
Forum Replies Created
-
Hi, I am seeing the same issue. The sitemap returns an error at Google because of the empty entry at the end. I have tried turning everything off and on again but it still shows, eg (domain redacted):
<?xml version=”1.0″ encoding=”UTF-8″?><?xml-stylesheet type=”text/xsl” href=”//www.DOMAIN/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl”?>
<sitemapindex xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″>
<sitemap>
<loc>https://www.DOMAIN/page-sitemap.xml</loc>
<lastmod>2022-07-04T15:23:47+00:00</lastmod>
</sitemap>
<sitemap><loc></loc></sitemap></sitemapindex>
<!– XML Sitemap generated by Yoast SEO –>Is there any way to debug this?
Forum: Plugins
In reply to: [Advanced Classifieds & Directory Pro] Images (Why only permanently delete?)For anyone looking for a temporary workaround to this issue, you can edit admin/class-acadp-admin.php, and comment out line 153:
wp_delete_attachment( $_POST[‘attachment_id’], true );
Which is part of the function ajax_callback_delete_attachment().
This affects the link next to the images in the backend listing management which says “Permanently Delete” by not actually deleting the image from the media library, but still removing the reference from the listing.
Please note, there are other references to wp_delete_attachment in the plugin which will still delete images if you allow users to manage listings from the front end or run updates via cron. Also note that editing the plugin file directly will mean the change is overwritten if the plugin is updated. Hope that helps someone.