Saturday, October 29, 2022
HomeWordPress Developmentmedia library - Wordpress cannot get picture url however each the attachment...

media library – WordPress cannot get picture url however each the attachment and the precise file are there


The next applies to all attchment photographs on my web site:

There’s a PNG picture attachment, its ID is 519271.

wp_get_attachment_image(519271, 'thumbnail', false, array( 'id' => 'esjb-preview-image' )) returns “”.

So does wp_get_attachment_image_src(519271).

wp_attachment_is_image(519271) returns true

The file is there within the uploads folder. Folder permissions are 755. File permissions are 644.

The attachment is within the wp_posts desk and the info appears to be OK.

The file has a correct thumbnail within the media library, however after I click on on it and it opens the attachment particulars (/wp-admin/add.php?merchandise=519271), there is no picture there, simply the default empty picture icon. The small print are appropriate although, together with the precise file URL.

I attempted deactivating all plugins (besides the Actually Easy SSL) to no impact.

I re-generated thumbnails utilizing the Regenerate Thumbnails plugin, however the issue nonetheless exists.

The positioning has been hacked lately (WPCoreSys (Dolly) Hack), after which I deleted all recordsdata, modified my host password, then uploaded a clear WP, checked my database for any entries that don’t belong there, so I presume WP core recordsdata are unchanged. The one folders I took from the hacked set up have been the uploads folder and my theme folder, however I made certain there aren’t any corrupted recordsdata there. Anyway, I deactivated my present theme for a time and nothing modified.

Any concepts on what could cause the issue?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments