callumjw on "Wordpress Database Error - _wp_plugin_attachment_metadata"

ساخت وبلاگ

So I made a website for someone about 2 months ago and recently they had a few error on their website. I checked the database to see if that was the origin of the errors and in the 'wp_postmeta' table is where I found the source of the errors. There is about 10,000+ records in that table with the following 'meta_key'

_wp_plugin_attachment_metadata_15bb2106fd50f3ff3f8...

The name is different every time and the name is longer. They all have that as the 'meta_key' and each belong to a page on the site. Any idea of what this is and If their is any quick ways of deleting it without causing hurt on the site?

It's attachment don't think it would be wise to just delete these records. What error are you getting on your screen ?

It was a php memory error but by deleting about 1,800 of them attached to one page it made that error go away but now the page is bugged. I want to avoid doing this. If I delete every one with a SQL query it will also delete the ones needed for example:

_edit_last
_edit_lock
_wp_page_template
_aviaLayoutBuilder_active
_aviaLayoutBuilderCleanData
layout
sidebar
footer

callumjw
Member
Posted 17 hours ago #

callumjw
Member
Posted 6 minutes ago #

For anyone else who has this problem please use this code below (you may have to alter it)

DELETE FROM wp_postmeta WHERE SUBSTR(meta_key, 1, 31) = '_wp_plugin_attachment_metadata_'

callumjw
Member
Posted 5 minutes ago #

(Forgot to solve it)

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 390 تاريخ : چهارشنبه 30 تير 1395 ساعت: 0:20