Invalid Image Content Type Error
-
Image “social-image.jpg” is empty file.
The page I need help with: [log in to see the link]
-
I need to check why I was not notified of your question, therefore, sorry for the late reply.
At this time, it looks like you have not enabled or not configured the plugin. I cannot see any evidence in the source of your site that the plugin is in use.
I have the same problem, image has 0kb file size / is empty.
Log start: Thu, 19 Jan 2023 10:59:20 +0000
BSI version: 1.1.0
BSI revision date: Mon, 07 Nov 2022 15:29:45 +0000
Start memory usage: 14M
-- image generation --
BSI Debug log for https://riwers.io/karriere/social-image.jpg/
Selected post_id: 2116
Image consideration: meta; 2314
Image determination: ID before filter bsi_image; 2314
Image determination: ID after filter bsi_image; 2314
Image selected: 2314
Cache ignored because of debug=BSI flag
Output buffer detected: default output handler
Output buffer detected: LiteSpeed\Core::send_headers_force
All buffers are cleaned
Base URL: https://riwers.io/wp/wp-content/uploads
Base DIR: ABSPATH/wp-content/uploads
Lock File: ABSPATH/wp-content/uploads/bsi-uploads/2314/2116/social-image.jpg.lock
Cache File: ABSPATH/wp-content/uploads/bsi-uploads/2314/2116/social-image.jpg
Source: trying image size "og-image" for 2314
Base image for #2314: ABSPATH/wp-content/uploads/2022/11/social-green.png
Using 'file' entry: ABSPATH/wp-content/uploads/2022/11/social-green-1200x630.png with size-name og-image
Source: found: W: 1200, H: 630,
URL: https://riwers.io/wp/wp-content/uploads/2022/11/social-green-1200x630.png,
Filepath: ABSPATH/wp-content/uploads/2022/11/social-green-1200x630.png
Logo overlay: enabled
Overlay: logo
Logo overlay: logo file; ABSPATH/wp-content/uploads/2022/11/riwers-logo-white.png
Logo overlay: logo dimensions; W:1200, H:630
Text overlay: enabled
Text setting: default text; ( no text )
Text: no text detected in meta-data, getting text from page;
Text determination: text before filter bsi_text; Karriere
Text determination: text after filter bsi_text; Karriere
Text overlay: using font: ABSPATH/wp-content/uploads/bsi-uploads/PTSans-Bold.ttf
Using output format: jpg
Using JPEG quality: 75 ( 0 - 100 )
Peak memory usage: 14M
-- active plugins --
1: polylang-pro/polylang.php
2: acf-theme-code/acf_theme_code.php
3: advanced-custom-fields-pro/acf.php
5: branded-social-images/wp-plugin.php
6: bs-animate-on-scroll-main/main.php
7: bs-cookie-settings-main/main.php
8: classic-editor/classic-editor.php
9: custom-post-type-ui/custom-post-type-ui.php
10: duplicate-post/duplicate-post.php
11: email-address-encoder/email-address-encoder.php
12: enable-media-replace/enable-media-replace.php
13: google-sitemap-generator/sitemap.php
14: instagram-feed-pro/instagram-feed.php
15: limit-login-attempts-reloaded/limit-login-attempts-reloaded.php
16: litespeed-cache/litespeed-cache.php
17: microsoft-clarity/clarity.php
19: riwers-linkedin-feed.php
20: security-ninja/security-ninja.php
21: show-current-template/show-current-template.php
22: wp-sweep/wp-sweep.php
-- php/wp functions --
mime_content_type: exists
finfo_open: exists
wp_check_filetype: exists
exec: does not exist
shell_exec: does not exist
passthru: does not exist
system: does not exist
-- php settings --
memory_limit: 256M
max_execution_time: 300
-- end of log --Verified all notification settings, still did not get an email, sorry.
The debug information shows an image URL:
https://riwers.io/karriere/social-image.jpg/
This produces a perfectly fine social image. Perhaps I am missing the issue???
weird. but for other pages like
https://riwers.io/social-image.jpg/
https://riwers.io/angebot/social-image.jpg/
it is still just downloading an empty image.I see, but when I add the classic cachebuster (a URL parameter) to the URL;
https://riwers.io/angebot/social-image.jpg/?12
Then I get a valid image. So i suspect a caching plugin is causing troubles here.
ok, now we got it. I am using Litespeed Cache.
Is there a way to ommit that issue without completely disable Caching?The solution here could help you out;
https://www.ads-software.com/support/topic/request-add-timestamps-or-random-string-to-image-urls/
ok thanks. solved.
- The topic ‘Invalid Image Content Type Error’ is closed to new replies.