从数据库中删除Wordpress媒体库孤立图像

时间:2018-07-21 10:24:21

标签: mysql wordpress phpmyadmin orphan orphaned-objects

今天,我发现我的Wordpress媒体库被冻结,没有图像。我必须选择“图像”来显示我的图像,但是当我将其保留为默认值“全部”时,不会加载任何内容。我仅在选择“取消附加”后使用小微调图标冻结它。如果我昨天恢复了DB的一切都很好,但是今天我在这个网站上进行了努力,几天前又发生了一次,因此我不得不恢复DB并认为这是暂时的。我需要从数据库中删除孤立的“未分离”图像,但我不知道如何,我尝试了多个插件,但没有结果。这是调试文件的内容:

[21-Jul-2018 09:11:12 UTC] PHP Warning: strpos() expects parameter 1 to be string, object given in /home/admin/public_html/mysite.com/wp-includes/post.php on line 5223 [21-Jul-2018 09:11:12 UTC] PHP Warning: dirname() expects parameter 1 to be string, object given in /home/admin/public_html/mysite.com/wp-includes/media.php on line 957 [21-Jul-2018 09:11:12 UTC] PHP Warning: basename() expects parameter 1 to be string, object given in /home/admin/public_html/mysite.com/wp-includes/post.php on line 5225 [21-Jul-2018 09:11:12 UTC] PHP Warning: strpos() expects parameter 1 to be string, object given in /home/admin/public_html/mysite.com/wp-includes/post.php on line 335 [21-Jul-2018 09:11:12 UTC] PHP Warning: preg_match() expects parameter 2 to be string, object given in /home/admin/public_html/mysite.com/wp-includes/post.php on line 335 [21-Jul-2018 09:11:12 UTC] PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/admin/public_html/mysite.com/wp-includes/post.php on line 336 [21-Jul-2018 09:11:29 UTC] PHP Warning: strpos() expects parameter 1 to be string, object given in /home/admin/public_html/mysite.com/wp-includes/post.php on line 5220 [21-Jul-2018 09:11:29 UTC] PHP Warning: strpos() expects parameter 1 to be string, object given in /home/admin/public_html/mysite.com/wp-includes/post.php on line 5223 [21-Jul-2018 09:11:29 UTC] PHP Warning: dirname() expects parameter 1 to be string, object given in /home/admin/public_html/mysite.com/wp-includes/media.php on line 957 [21-Jul-2018 09:11:29 UTC] PHP Warning: basename() expects parameter 1 to be string, object given in /home/admin/public_html/mysite.com/wp-includes/post.php on line 5225 [21-Jul-2018 09:11:29 UTC] PHP Warning: strpos() expects parameter 1 to be string, object given in /home/admin/public_html/mysite.com/wp-includes/post.php on line 335 [21-Jul-2018 09:11:29 UTC] PHP Warning: preg_match() expects parameter 2 to be string, object given in /home/admin/public_html/mysite.com/wp-includes/post.php on line 335 [21-Jul-2018 09:11:29 UTC] PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/admin/public_html/mysite.com/wp-includes/post.php on line 336

0 个答案:

没有答案