Replies: 0
Recently my team transferred a client’s website to a new host.
After the transfer, I tried to optimize the images with several plugins; each image plugin produces the same error, which comes down to “Could not find 2018/05/imagename.jpg” and “The fullsize image file cannot be found in your uploads directory at 2017/06/blog-post-1.jpg”, and so on.
Things to note:
1. All images are working properly on the site and have the url of hostname.com/wp-content/uploads/2018/05/imagename.jpg, with the corresponding year/month of upload.
2. Images newly uploaded produce the same error.
3. An image that is newly resized with a new file created inside the WP Media Library does not generate this error.
4. The majority of the image paths start with http: and only ones uploaded recently have https: ; however, this does not seem to have an effect on whether or not it will work, as noted in #2.
I have already tried all of the following:
1. Set permissions of folders to 755 and files to 644 via FTP, and double checked in cPanel to see if these were being reflected.
2. Deleted a month’s image folder and uploaded a backup via cPanel.
3. Gone into MySQL and set upload_path to wp-content/uploads (which was blank before I set the path)
4. Gone into wp-config via FTP and added define( ‘UPLOADS’, ‘wp-content/uploads’ ); right after
if ( !defined(‘ABSPATH’) ) define(‘ABSPATH’, dirname(__FILE__) . ‘/’);
and before
require_once(ABSPATH . ‘wp-settings.php’);
which is at the bottom of the file.
I have googled every iteration I could think of this problem and while the above solutions seemed to help others, they have not fixed my problem.
If anyone has any idea on a possible solution I would be grateful.
Thanks.