New media is not automatically converted
-
Hi! I am testing the free version of the plugin: all my media has been converted to WEBP correctly… but I’ve noticed that new images added to Media Library are not automatically converted to WEBP, even though I set the “Automatically convert new images when uploading to Media Library” to “ON” in the General Setting.
Just to be sure it was not related to the fact that the resulting WEBP was larger than the original image (and therefore automatically canceled) I’ve tried to add a very large JPEG (28M). Also this one has not been converted…
Is the conversion of new media a batch process that runs (just wondering) at night only? Or should I almost immediately find my new images converted?Thanks for your help!
Bye,
A.-
-
Hello @mistermagoo8691,
Thanks for your message.
I need additional information from you:
1. A screenshot of the Bulk Optimization of Images section.
2. A screenshot of the Help Center tab in the plugin settings.
3. Do you have active debugging to debug.log and do you have any errors in debug.log when this problem occurs?Best,
Mateusz1. Do you have any errors on the plugin settings page? Please read this thread if you have any errors.
> No errors at all. I’ve been able to batch convert all data already. The issue is only with “new images” added to the media library.2. URL of your website.
> https://staging.sentierigressoney.it.
> Username: STG1201655
> Password: SwqJLpvXH0H33. Screenshot of the Help Center tab on the plugin settings screen – please take a screenshot of the ENTIRE page.
> I’ve copied all values to this excel file:
https://1drv.ms/x/s!AitfSud9RLpBjqQnp4dwsTguXgQjQg?e=LZYgHM4. Please do the test, which is described in the FAQ in the question “How to check if the plugin works?”. Please send a screenshot of Devtools with the test results.
> You can find the screenshot here:
https://1drv.ms/u/s!AitfSud9RLpBjqQo9vSFF1AoAF_tnA?e=W6ZhXSHi Mateusz. I am sorry, in my previous message I’ve sent you the information I’ve seen are required in your FAQ, I haven’t read your kind answer yet.
Here are my answers to the new questions:> 1. A screenshot of the Bulk Optimization of Images section.
https://1drv.ms/x/s!AitfSud9RLpBjqQnp4dwsTguXgQjQg?e=USgXTv> 2. A screenshot of the Help Center tab in the plugin settings.
https://1drv.ms/u/s!AitfSud9RLpBjqQpoWb0IqObAUcc4g?e=nacvMM> 3. Do you have active debugging to debug.log and do you have any errors in debug.log when this problem occurs?
no, it is not active. I activated it, I’ve tried to add a new image. This is what I see in the DEBUG.LOG file:[29-Aug-2022 13:56:17 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in /web/htdocs/staging.sentierigressoney.it/home/wp-content/themes/enfold-child/functions.php on line 289
[29-Aug-2022 13:56:17 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in /web/htdocs/staging.sentierigressoney.it/home/wp-content/themes/enfold-child/functions.php on line 289(yes, I am using Enfold theme).
THX
Bye,
A.-@mistermagoo8691 No problem. Yes, please activate debugging to the debug.log file and send a new image. If it is not converted, please check if you have any errors in the logs.
Hi Mateusz, here is what I get in the DEBUG.LOG file
[29-Aug-2022 13:56:17 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in /web/htdocs/staging.sentierigressoney.it/home/wp-content/themes/enfold-child/functions.php on line 289
[29-Aug-2022 13:56:17 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in /web/htdocs/staging.sentierigressoney.it/home/wp-content/themes/enfold-child/functions.php on line 289I am using Enfold theme.
Here is what I have around line 289 of functions.php, the line #289 is the one with the “IF”.
`function add_meta_for_search_excluded()
{
global $post;
if (false !== array_search($post->ID, get_option(‘sep_exclude’, array()))) {
echo ‘<meta name=”robots” content=”noindex,nofollow” />’, “\n”;
}
}
add_action(‘wp_head’, ‘add_meta_for_search_excluded’);`@mistermagoo8691 Thanks! Please install this plugin version and try to add an image to Media Library:
https://mattplugins.com/files/webp-converter-for-media-5.1.0-test1.zipWait a few minutes and send me the contents of the conversion.txt file, which will be generated in the WordPress root directory.
Thanks Mat for the debug version! ??
Here you are, copied & pasted below. Now it’s 15:34. It seems like the async conversion is frozen…
2022-08-29 15:22:59 - add_paths_to_conversion - {"0":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999.jpg","1":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-scaled.jpg","4":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-300x200.jpg","8":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-1030x687.jpg","13":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-80x80.jpg","19":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-768x512.jpg","26":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-1536x1024.jpg","34":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-2048x1365.jpg","43":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-36x36.jpg","53":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-180x180.jpg","64":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-1500x430.jpg","76":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-1500x630.jpg","89":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-1500x1000.jpg","103":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-495x400.jpg","118":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-260x185.jpg","134":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-845x684.jpg","151":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-710x375.jpg","169":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-705x470.jpg","188":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-845x321.jpg","208":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-1210x423.jpg","229":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/999-300x300.jpg"} 2022-08-29 15:22:59 - init_async_conversion
-
This reply was modified 2 years, 6 months ago by
Angelo Mariani.
Hey Mat, I’ve received from the hosting service an email saying that the staging area of my website has got an error with “Converter for media” plugin.
This is the error:An E_ERROR has been triggered from line 165 of file /web/htdocs/staging.sentierigressoney.it/home/wp-content/plugins/webp-converter-for-media/src/Conversion/Method/GdMethod.php. Error message: gd-webp encoding failed
The page where the error has been generated is this one:
https://staging.sentierigressoney.it/wp-json/webp-converter/v1/regenerate-530b43d0b3
If I open this page, I have this error:
{“code”:”rest_invalid_param”,”message”:”Invalid parameter(s): paths”,”data”:{“status”:400,”params”:{“paths”:”Invalid parameter.”},”details”:[]}}
Bye!
A.--
This reply was modified 2 years, 6 months ago by
Angelo Mariani.
@mistermagoo8691 Please do the same with this plugin version:
https://mattplugins.com/files/webp-converter-for-media-5.1.0-test2.zipDid the error you received occur one or more times?
Nope, I’ve received it only once.
Here is the new log. Still no new messages after the “init conversion”.
2022-08-30 06:37:51 - add_paths_to_conversion - {"0":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa.jpg","1":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-scaled.jpg","4":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-300x200.jpg","8":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-1030x687.jpg","13":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-80x80.jpg","19":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-768x512.jpg","26":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-1536x1024.jpg","34":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-2048x1365.jpg","43":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-36x36.jpg","53":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-180x180.jpg","64":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-1500x430.jpg","76":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-1500x630.jpg","89":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-1500x1000.jpg","103":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-495x400.jpg","118":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-260x185.jpg","134":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-845x684.jpg","151":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-710x375.jpg","169":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-705x470.jpg","188":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-845x321.jpg","208":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-1210x423.jpg","229":"\/web\/htdocs\/staging.sentierigressoney.it\/home\/wp-content\/uploads\/2022\/08\/aaa-300x300.jpg"} 2022-08-30 06:37:51 - refresh_conversion_request_id - 630db03fd10db6.02511935 2022-08-30 06:37:51 - init_async_conversion - https://staging.sentierigressoney.it/wp-json/webp-converter/v1/cron-conversion-630db03fd10db6.02511935
-
This reply was modified 2 years, 6 months ago by
Angelo Mariani.
@mistermagoo8691 I think I know what’s going on. You have password protection for entering the website. This means that the cron call is not working. Try to disable this protection for a while and then test.
(deleted)
Thanks Mateusz. The point is that I cannot remove this password protection, as it is a mandatory feature for the Staging area of my website provider…
I will need to be proud and test it directly in the production environment, then ??
If you don’t have other ideas, thanks a lot for your effort! I will let you know if the test in prod is successful.
Bye!
A.-@mistermagoo8691 Can you check this version?
https://mattplugins.com/files/webp-converter-for-media-5.1.0-test3.zipI added htpasswd support and that should fix the problem.
Mat, a step forward: now I see this on my “uploads-webpc” (screenshot):
And I’ve got an email from my website hosting service, saying the following:
an E_ERROR error has been triggered by line 165 of file /web/htdocs/staging.sentierigressoney.it/home/wp-content/plugins/webp-converter-for-media/src/Conversion/Method/GdMethod.php.
Error message: gd-webp encoding failedNow it is the encoding that is failing…
-
This reply was modified 2 years, 6 months ago by
- The topic ‘New media is not automatically converted’ is closed to new replies.