Only some images work
-
Hi I have a strange problem where the plugin works perfectly with only some images. Small files sizes (I think) get resized and uploaded fine. But larger ones get stuck resizing, let me know what information you need.
Thanks!
-
As an update I believe it has something to do with my cache settings as I was just messing around and suddenly got the error: There was an error accessing the WP REST API – Instant Images requires access to the WP REST API to fetch and upload images to your media library. I have reverted my changes, the error message is gone but I still cannot resize large files.
07/30/19 10:47:41.103 ?? ——POST HTTP/1.1 (HTTPS) /wp-json/instant-images/upload/
07/30/19 10:47:41.103 Query String:
07/30/19 10:47:41.103 HTTP_REFERER: https://website.com/wp-admin/upload.php?page=instant-images
07/30/19 10:47:41.103 User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
07/30/19 10:47:41.103 Accept: application/json, text/plain, */*
07/30/19 10:47:41.103 Accept Encoding: gzip, deflate, br
07/30/19 10:47:41.103 Cookie _lscache_vary: admin_bar:1;logged-in:1;role:99
07/30/19 10:47:41.103 X-LSCACHE: true
07/30/19 10:47:41.146 [Ctrl] X Cache_control -> private ( logged in user )
07/30/19 10:47:41.157 [Router] get_uid: 1 => LSC_Router::get_uid()@203 => LSC_Router::get_role()@222 => LSC_Config->in_exclude_optimization_roles()@351 => LSC->after_user_init()@234
07/30/19 10:47:41.157 [Router] get_role: administrator
07/30/19 10:47:41.157 Media init
07/30/19 10:47:41.157 CDN init
07/30/19 10:47:41.157 Task init
07/30/19 10:47:41.158 [Router] LSCWP_CTRL bypassed empty
07/30/19 10:47:41.158 GUI init
07/30/19 10:47:41.160 [Ctrl] X Cache_control init on
07/30/19 10:47:41.161 [Vary] Rest API init disabled vary change
07/30/19 10:47:41.171 [REST] ? Internal REST ON [filter] rest_request_before_callbacks
07/30/19 10:47:46.393 [Core] CHK html bypass: miss footer const
07/30/19 10:47:46.394 [Ctrl] X Cache_control off – not GET method:POST
07/30/19 10:47:46.394 [Ctrl] X Cache_control -> no Cache => LSC_Control::set_nocache()@317 => LSC_Control::finalize()@566 => LSC->send_headers()@614
07/30/19 10:47:46.394 [Cfg] role in vary_group [group] 99
07/30/19 10:47:46.394 [Vary] show_admin_bar_front: true
07/30/19 10:47:46.394 [Vary] admin bar : true
07/30/19 10:47:46.394 [Vary] no custimzed vary
07/30/19 10:47:46.394 [Core] Silence Comment due to REST/AJAX
07/30/19 10:47:46.394 X-LiteSpeed-Cache-Control: no-cache
07/30/19 10:47:46.394 [Core] CHK html bypass: miss footer const
07/30/19 10:47:46.394 [Media] bypass: Not frontend HTML type
07/30/19 10:47:46.394 GUI bypassed by no counter
07/30/19 10:47:46.394 [Optm] bypass: Not frontend HTML type
07/30/19 10:47:46.394 CDN bypass
07/30/19 10:47:46.394 End responseHi @anderson2000
Whats you max file upload size set to?64MB, I see in the instant-images folder (with correct permissions) that the images are being uploaded, however the resized images don’t appear in the media library (or the correct folder (2019/07/))
Thanks for your quick response
- This reply was modified 5 years, 4 months ago by anderson2000.
Have you gone thru this?
https://connekthq.com/plugins/instant-images/faqs/#8Yes. I have also tried reinstalling etc.
Im not sure then. I would have to see the error. The code you posted above doesn’t say if it’s an error.
It could be a server config issue which is definitely not my specialty.That was from the debug log, is there anywhere else I can find an error report?
in the browser console possibly if there actually is an error.
instant-images.min.js?ver=3.3.0:20 POST https://edtechhub.online/wp-json/instant-images/resize/ 503 (anonymous) @ instant-images.min.js?ver=3.3.0:20 e.exports @ instant-images.min.js?ver=3.3.0:20 e.exports @ instant-images.min.js?ver=3.3.0:38 Promise.then (async) s.request @ instant-images.min.js?ver=3.3.0:38 (anonymous) @ instant-images.min.js?ver=3.3.0:20 value @ instant-images.min.js?ver=3.3.0:31 (anonymous) @ instant-images.min.js?ver=3.3.0:31 Promise.then (async) value @ instant-images.min.js?ver=3.3.0:31 onClick @ instant-images.min.js?ver=3.3.0:31 o @ instant-images.min.js?ver=3.3.0:6 s @ instant-images.min.js?ver=3.3.0:6 executeDispatchesInOrder @ instant-images.min.js?ver=3.3.0:6 p @ instant-images.min.js?ver=3.3.0:6 f @ instant-images.min.js?ver=3.3.0:6 e.exports @ instant-images.min.js?ver=3.3.0:20 processEventQueue @ instant-images.min.js?ver=3.3.0:6 (anonymous) @ instant-images.min.js?ver=3.3.0:20 handleTopLevel @ instant-images.min.js?ver=3.3.0:20 f @ instant-images.min.js?ver=3.3.0:20 perform @ instant-images.min.js?ver=3.3.0:6 batchedUpdates @ instant-images.min.js?ver=3.3.0:20 batchedUpdates @ instant-images.min.js?ver=3.3.0:6 dispatchEvent @ instant-images.min.js?ver=3.3.0:20 instant-images.min.js?ver=3.3.0:31 Error: Request failed with status code 503 at e.exports (instant-images.min.js?ver=3.3.0:20) at e.exports (instant-images.min.js?ver=3.3.0:38) at XMLHttpRequest.f.<computed> (instant-images.min.js?ver=3.3.0:20)
By that error it looks like a 503 error.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503If you want, open a ticket here and I can have a look.
https://connekthq.com/support/A 503 Service Unavailable Error is an HTTP response status code indicating that your web server operates properly, but it can’t temporarily handle the request at the moment. This error happen for a wide variety of reasons. Normally, this error can be due to a temporary overloading or maintenance being performed on the server and it is resolved after a period of time or once another thread has been released by web-server application. The subsequent points serve as a possible fix, aimed toward resolving the potential root causes.
Reload (Refresh) the page
Scan for Malware
Visiting the website later
Contact server admin
- The topic ‘Only some images work’ is closed to new replies.