Hi there!
Suddenly the Asset Manager cannot show the thumbnail, it keeps showing the spinner animation.
Yesterday everything is going fine.
Kindly check this screenshot: http://prntscr.com/qyskok
I tried to check another Cockpit installation in the same server, the Asset Manager is doing fine. I think there is an error when generating thumbnail.
How do troubleshoot it?
any idea how to solve this?
artur
February 7, 2020, 11:10am
2
can you inspect the browsers networkpanle and what is returned by the server for the image requests?
Hi artur,
this is what returned:
I tried to logs what happens in
modules/Cockpit/bootstrap.php
thumbnail function.
the path is correct, the thumbnail is generated. but somehow in this line
echo $this->app->filestorage->read($thumbpath);
returns empty
Below is the logs:
generate thumbnail
{"src":"http:\/\/localhost\/_BZ\/moire_cockpit\/storage\/uploads\/2020\/02\/08\/5e3e333b15abemaps-detail.png","fp":null,"mode":"bestFit","filters":[],"width":20,"height":20,"quality":85,"rebuild":0,"base64":0,"output":1}
hash"c02f7e1f4920375a7469a45d4b6d969b_20x20_85_1581134651_bestFit_adb115059e28d960fa8badfac5516667.png"
cachefolder"thumbs:\/\/"
thumbpath"thumbs:\/\/\/c02f7e1f4920375a7469a45d4b6d969b_20x20_85_1581134651_bestFit_adb115059e28d960fa8badfac5516667.png"
Filestorage read function >>
locations"F:\/xampp_php7\/htdocs\/_BZ\/moire_cockpit\/storage\/thumbs\\c02f7e1f4920375a7469a45d4b6d969b_20x20_85_1581134651_bestFit_adb115059e28d960fa8badfac5516667.png"
CONTENTsnull
Any idea ?
Finally this issue is solved.
The problem is one of my addon has extra space after the PHP closing tag, i think it’s because of some editor automatically convert linebreak.
Thank you for your support @artur