Hi guys!
I’m having this issue where Google Analytics chart stoped being displayed in the PDF reports, returning a Image not found or type unknown message and a big square cross (print attached).
I went through searching in the forum before posting, so I already checked allow_url_fopen, tested on the default pdf template as well and checked for ssl issues on dompdf log.
I noticed a different warning in dompdf log that might be related to the issue:
Dompdf Warnings
file_get_contents(https://chart.googleapis.com/chart?cht=ls&chs=850x350&chd=t:1,5,0,1,3,0,4,2,10,1,19,1,2,12,4,0,0,4,4,2,6,0,0,1,3,1,5,1,6,0,0&chds=0,20&chco=18a4e0&chm=B,18a4e088,0,0,0&chls=2,0,0&chxt=x,y&chxl=0:%7CMar%201%7CMar%203%7CMar%205%7CMar%207%7CMar%209%7CMar%2011%7CMar%2013%7CMar%2015%7CMar%2017%7CMar%2019%7CMar%2021%7CMar%2023%7CMar%2025%7CMar%2027%7CMar%2029%7CMar%2031&chxr=1,0,20&chg=0,25,0,0&chtt=Visitas%20(Mar%C3%A7o%201,%202024%20-%20Mar%C3%A7o%2031,%202024)&chf=c,s,1c1d1b00%7Cbg,s,1c1d1b00): failed to open stream: HTTP request failed! HTTP/1.0 502 Bad Gateway
Image not found
https://chart.googleapis.com/chart?cht=ls&chs=850x350&chd=t:1,5,0,1,3,0,4,2,10,1,19,1,2,12,4,0,0,4,4,2,6,0,0,1,3,1,5,1,6,0,0&chds=0,20&chco=18a4e0&chm=B,18a4e088,0,0,0&chls=2,0,0&chxt=x,y&chxl=0:|Mar 1|Mar 3|Mar 5|Mar 7|Mar 9|Mar 11|Mar 13|Mar 15|Mar 17|Mar 19|Mar 21|Mar 23|Mar 25|Mar 27|Mar 29|Mar 31&chxr=1,0,20&chg=0,25,0,0&chtt=Visitas (Março 1, 2024 - Março 31, 2024)&chf=c,s,1c1d1b00%7Cbg,s,1c1d1b00
Do you guys might have any clue on how to fix this?
Thanks in advance, best regards,
JPFigueira