App\Core\Tmdb\TmdbClient->send():108 PHP 8.2.25

Tmdb Client Error: {"success":false,"status_code":11,"status_message":"Internal error: Something went wrong, contact TMDb.","combined_credits":{"cast":[{"adult":false,"backdrop_path":"/pQEN65gWFZc8bonPJ2TDOZgA3hK.jpg","genre_ids":[18,35,36],"id":57626,"original_language":"it","original_title":"Lavorare con lentezza","overview":"Bologna, 1976. The paths of two aimless young friends intertwine with those of Radio Alice, a pirate radio politically aligned with the leftist student movement.","popularity":1.92,"poster_path":"/2jevzNwOqlHyQbmg6mx0xSBEtV3.jpg","release_date":"2004-10-01","title":"Working Slowly (Radio Alice)","video":false,"vote_average":6.5,"vote_count":40,"character":"Area (as part of Afterhours)","credit_id":"52fe493dc3a36847f819021f","order":29,"media_type":"movie"},{"adult":false,"backdrop_path":"/gMxW2r3QzWIjGEOW97Cr6RWQ8It.jpg","genre_ids":[99],"id":1037940,"original_language":"it","original_title":"Liberi e pensanti - Uno maggio Taranto","overview":"","popularity":0.304,"poster_path":"/nLoEd5Uz4LpqQMaxYXyvndHU6yQ.jpg","release_date":"2020-05-01","title":"Liberi e pensanti - Uno maggio Taranto","video":false,"vote_average":0.0,"vote_count":0,"character":"Self","credit_id":"6351b47a84448e007f777195","order":11,"media_type":"movie"},{"adult":false,"backdrop_path":"/gTgnr47LvbtfLDDQufPZUtqnXPy.jpg","genre_ids":[10402],"id":1279359,"original_language":"it","original_title":"Pompeii Echoes - Max Gazzè","overview":"","popularity":0.369,"poster_path":"/hrz9MEHaHhTcpa4rBIUQwsjAFll.jpg","release_date":"2022-10-21","title":"Pompeii Echoes - Max Gazzè","video":true,"vote_average":0.0,"vote_count":0,"character":"","credit_id":"6628c676a13533017e18069a","order":1,"media_type":"movie"},{"adult":false,"backdrop_path":"/vhXEqCygZ5XC84xbSC49AEDDjMv.jpg","genre_ids":[99],"id":505321,"original_language":"it","original_title":"Caravaggio - L'anima e il sangue","overview":"An exciting and unsettling cinematic journey through the life, work and torments of Caravaggio.","popularity":2.818,"poster_path":"/o2MaC8c3tLNlWZnkhyewa4bu4CK.jpg","release_date":"2018-05-17","title":"Caravaggio: The Soul and the Blood","video":false,"vote_average":6.7,"vote_count":42,"character":"Narrator / Caravaggio (voice)","credit_id":"5a8567000e0a265453020000","order":0,"media_type":"movie"},{"adult":false,"backdrop_path":"/tEMlKcDjCFfzUrYSZXYJ6VxPPGd.jpg","genre_ids":[99,10402],"id":718040,"original_language":"it","original_title":"Nick Drake - Songs in a conversation","overview":"","popularity":0.304,"poster_path":"/rAtMqItl12nPB6gyyOkZKbAEpph.jpg","release_date":"2019-10-22","title":"Nick Drake - Songs in a conversation","video":false,"vote_average":0.0,"vote_count":0,"character":"Himself","credit_id":"5ef0ec1eb0cd200035b7aa26","order":2,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[99,10402,36],"id":340889,"original_language":"it","original_title":"Questa non è una esercitazione","overview":"A documentary about the Italian provocateur industrial band Disciplinatha.","popularity":0.548,"poster_path":null,"release_date":"2012-11-09","title":"Questa non è una esercitazione","video":false,"vote_average":7.0,"vote_count":2,"character":"Himself","credit_id":"5ef9251ce93e950032b7c612","order":3,"media_type":"movie"},{"adult":false,"backdrop_path":"/tFGqw91nuUwU20v1XlnUpdaPDlK.jpg","genre_ids":[99],"id":805376,"original_language":"it","original_title":"Note di viaggio: Il film","overview":"","popularity":0.484,"poster_path":"/5ayU0yfdfcDcFxR0p8IMDlHHewv.jpg","release_date":"2021-03-17","title":"Note di viaggio: Il film","video":false,"vote_average":9.5,"vote_count":1,"character":"Self","credit_id":"604c707f1d5386003d165d04","order":12,"media_type":"movie"},{"adult":false,"backdrop_path":"/yeJSNyia2obC5WJ6ItLnQ2t4DPn.jpg","genre_ids":[99],"id":1369867,"original_language":"it","original_title":"Un carnevale dei pazzi, dei sedotti e degli abbandonati","overview":"","popularity":0.829,"poster_path":"/mS4N1N1y2KOiogboS3F0hAifuHh.jpg","release_date":"2024-10-11","title":"Un carnevale dei pazzi, dei sedotti e degli abbandonati","video":false,"vote_average":0.0,"vote_count":0,"character":"Sé stesso","credit_id":"67096ed3e1db9ec4862e89b8","order":1,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[10767],"id":136438,"origin_country":["IT"],"original_language":"it","original_name":"Lui è peggio di me","overview":"","popularity":10.951,"poster_path":null,"first_air_date":"2021-02-11","name":"Lui è peggio di me","vote_average":0.0,"vote_count":0,"character":"","credit_id":"6169519979b3d40064bed32d","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/gXdTX8TojqqBr2DhwdNS0NjdZer.jpg","genre_ids":[37],"id":125359,"origin_country":["FR"],"original_language":"en","original_name":"Django","overview":"In the Wild West in the 1860s and 1870s, Sarah and John have founded New Babylon, a city of outcasts of all backgrounds. Haunted by the murder of his family eight years earlier, Django is still looking for his daughter, believing she may have survived the killing. When Django shockingly finds her in Babylon, about to marry John, Sarah - now a grown woman - wants Django to leave fearing he'll put Babylon in jeopardy. But Django, believing the city is in danger, is adamant that he will not lose his daughter twice.","popularity":14.968,"poster_path":"/eQ4GRmP0EEkxjwlPbZlVn7HLoZp.jpg","first_air_date":"2023-02-13","name":"Django","vote_average":5.3,"vote_count":35,"character":"Oscar Beaunney","credit_id":"65e4724aa672540185ab3f27","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/sEze05ERzI9PiqurQINYG2Qsj1O.jpg","genre_ids":[10751,10764],"id":66550,"origin_country":["IT"],"original_language":"it","original_name":"Festival di Sanremo","overview":"The Sanremo Music Festival is the most popular Italian song contest and awards, held annually in the town of Sanremo, Imperia, Italy, and consisting of a competition amongst previously unreleased songs. The Festival was the inspiration for the Eurovision Song Contest.","popularity":24.969,"poster_path":"/oGzMJqHv0Vc7lYePqxraJMRgxs6.jpg","first_air_date":"1951-01-29","name":"Sanremo Music Festival","vote_average":7.7,"vote_count":13,"character":"Self - Guest Artist","credit_id":"65e675ac79a1c3016285e8a1","episode_count":2,"media_type":"tv"},{"adult":false,"backdrop_path":"/bf0ascUshvc1EEUOvQ1YluViV0k.jpg","genre_ids":[10767],"id":211050,"origin_country":["IT"],"original_language":"it","original_name":"Stasera c’è Cattelan su Raidue","overview":"A Late Show with a strong identity that bears the name of Alessandro Cattelan: surprising interviews, monologues, music and guests who face all the challenges, even the most unlikely, but without ever taking themselves seriously.","popularity":7.797,"poster_path":"/yt3tcfjLTG2zicsFqP6Pf6RAVQl.jpg","first_air_date":"2022-09-20","name":"Stasera c’è Cattelan su Raidue","vote_average":8.3,"vote_count":9,"character":"Self","credit_id":"633e7ecf85b105007d37deb8","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/3qV1CwhatoNRNcpfrP7yJacqoes.jpg","genre_ids":[10764,10751],"id":16322,"origin_country":["IT"],"original_language":"it","original_name":"X Factor","overview":"X Factor is the Italian version of the British musical talent show The X Factor. The first four seasons aired on Rai 2, but since 2011 it has been broadcast on Sky Uno, with reruns on TV8, after Rai dropped the show due to high costs. Sky Italia acquired the format, extending its broadcast until 2024. Starting from the eleventh season, RTL 102.5 became the official radio station, replacing Radio Deejay and Radio 105. The show was hosted by Francesco Facchinetti (2008-2010), Alessandro Cattelan (2011-2020), Ludovico Tersigni (2021), and Francesca Michielin (2022-2023). From 2024 onwards, Giorgia will take over as host. Since the seventh season, the show has been produced by Fremantle Italia without the collaboration of Magnolia, which had produced the selection episodes in the early seasons.","popularity":24.381,"poster_path":"/uW7ultF5vlPJsrWflEifAYxPjz5.jpg","first_air_date":"2008-03-10","name":"X Factor","vote_average":7.4,"vote_count":9,"character":"Self - Judge","credit_id":"5f6677921684f7003957b4b2","episode_count":82,"media_type":"tv"}],"crew":[{"adult":false,"backdrop_path":"/kU4wkdVPV3ZilwH4jTt4VGJTGqj.jpg","genre_ids":[80,28,9648,53],"id":593395,"original_language":"it","original_title":"Diabolik","overview":"1960s, the city of Clerville. The forthcoming visit of heiress Eva Kant, who'll be bringing a famous pink diamond with her, catches the attention of Diabolik, the infallible and elusive thief whose real identity is unknown: while trying to steal the jewel, he finds himself bewitched by Eva's charm, a feeling she may be reciprocating. But the police, led by relentless Inspector Ginko, is rapidly closing in on him...","popularity":15.735,"poster_path":"/9bOwV2V9r6LikmKHMDgmu9jcE92.jpg","release_date":"2021-12-16","title":"Diabolik","video":false,"vote_average":6.0,"vote_count":578,"credit_id":"64106b5bb42242007d71c277","department":"Sound","job":"Songs","media_type":"movie"}]}}

/home/movtv/public_html/app/Core/Tmdb/TmdbClient.php:108

                                    
96
        'Content-Type' => 'application/json;charset=utf-8',
97
        'Authorization' => sprintf('Bearer %s'Configurator::$instance->get('tmdb'))
98
    ];
99
100
    // Append language preference to headers to avoid adult content
101
    $headers['Accept-Language'] = 'en-US'// Example: Set language preference to English
102
103
    // Make the GET request with headers
104
    $resp EasyCurl::setHeaders($headers)->get(...$args);
105
106
    // Check if response status is not 200 OK
107
    if ($resp->getStatus() != 200) {
108
        throw new TmdbClientException('Tmdb Client Error: ' $resp->getBody(), $resp->getStatus());
109
    }
110
111
    // Check for adult content in response (assuming TMDB API supports such filtering)
112
    $jsonResponse json_decode($resp->getBody(), true);
113
    
114
115
    return $resp;
116
}
117
118
119
    public function getGenre(): array
120
    {
121
        return $this->request('genre/' $this->getType() . '/list')['genres'] ?? [];