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":"/yzqWXqoxdOn6PbzYYQfJn1PYeyN.jpg","genre_ids":[18],"id":26431,"original_language":"en","original_title":"Pu-239","overview":"A worker at a Russian nuclear facility gets exposed to a lethal dose of radiation. In order to provide for his family, he steals some plutonium and sets out to sell it on Moscow's black market with the help of an incompetent criminal.","popularity":6.726,"poster_path":"/fRyusBzphrpoEfMNff0jlR0ulQ6.jpg","release_date":"2006-09-12","title":"Pu-239","video":false,"vote_average":6.6,"vote_count":64,"character":"Facility Director","credit_id":"6504ec9d109dec00ca062359","order":6,"media_type":"movie"},{"adult":false,"backdrop_path":"/mMZSt7BTl2fPfReea7YJHuBAdPG.jpg","genre_ids":[18,35],"id":1205174,"original_language":"en","original_title":"Our Kid","overview":"Twelve-year-old Laura's goal in life is to one day play football professionally. Laura has many footballing heroes, but it's her older brother Thomas who's her biggest hero.","popularity":1.328,"poster_path":"/1QW4Cy0QHhKrZzHi7GJfACkn8Q9.jpg","release_date":"2023-10-29","title":"Our Kid","video":false,"vote_average":0.0,"vote_count":0,"character":"John Reilly","credit_id":"65ef3ce3e25860017b4d0349","order":8,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":38911,"original_language":"en","original_title":"Yasmin","overview":"In England, the Pakistanis Yasmin lives two lives in two different worlds: in her community, she wears Muslin clothes, cooks for her father and brother and has the traditional behavior of a Muslin woman. Further, she has a non-consumed marriage with the illegal immigrant Faysal to facilitate the British stamp in his passport, and then divorce him. In her job, she changes her clothes and wears like a Westerner, is considered a standard employee and has a good Caucasian friend who likes her. After the September, 11th, the prejudice in her job and the treatment of common people makes her take side and change her life.","popularity":1.913,"poster_path":"/4cYqclKFRwbe1KanOS5yGGYJAxF.jpg","release_date":"2004-08-07","title":"Yasmin","video":false,"vote_average":6.8,"vote_count":6,"character":"Reception Officer","credit_id":"57c5aec392514121d6002e2e","order":16,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":38911,"original_language":"en","original_title":"Yasmin","overview":"In England, the Pakistanis Yasmin lives two lives in two different worlds: in her community, she wears Muslin clothes, cooks for her father and brother and has the traditional behavior of a Muslin woman. Further, she has a non-consumed marriage with the illegal immigrant Faysal to facilitate the British stamp in his passport, and then divorce him. In her job, she changes her clothes and wears like a Westerner, is considered a standard employee and has a good Caucasian friend who likes her. After the September, 11th, the prejudice in her job and the treatment of common people makes her take side and change her life.","popularity":1.913,"poster_path":"/4cYqclKFRwbe1KanOS5yGGYJAxF.jpg","release_date":"2004-08-07","title":"Yasmin","video":false,"vote_average":6.8,"vote_count":6,"character":"Sergeant","credit_id":"57c5aeabc3a36815c7003d1c","order":15,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[53,10770,80,18],"id":437836,"original_language":"en","original_title":"Danielle Cable: Eyewitness","overview":"Dramatisation of the real-life road-rage killing in 1996 of Stephen Cameron by Kenneth Noye, who was also implicated in the Brinks Mat bullion robbery and the murder of a policeman. The only witness to the killing of Stephen Cameron was his fiancée, Danielle Cable, who was forced to change her identity after giving the evidence which convicted Noye.","popularity":1.688,"poster_path":"/tZAzqGE9i5Za7CivYF05iD4JWRm.jpg","release_date":"2003-04-14","title":"Danielle Cable: Eyewitness","video":false,"vote_average":0.0,"vote_count":0,"character":"Steve Allan","credit_id":"588d0c9f9251410a3d0061f2","order":13,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[18,10751],"id":410932,"original_language":"en","original_title":"Summerhill","overview":"Summerhill, whose headmistress is Zoe Redhead, is a seventy year old progressive school, run on cooperative lines with pupils having an equal say in its constitution. However officious OFSTED inspector Wharton regards it as a waste of money and a means of teaching children disrespect - though his assistant Myrtle is charmed by its ambience. In a court hearing to decide the school's future barrister Geoffrey Robertson points to the many alumni from the school but also, thanks to a tip-off from a pupil, is able to reveal that Wharton had told Myrtle that the school was virtually due for closure and the inspection was purely a formality. Consequently Summerhill is saved, Myrtle gets to teach there and the children launch a pirate ship with the banner 'Freedom' to celebrate the victory. Two children whose future at the school looked uncertain are also given cause to celebrate.","popularity":1.197,"poster_path":"/e4oDyofTJI7SH1zh6YjM2kkWOzG.jpg","release_date":"2008-01-21","title":"Summerhill","video":false,"vote_average":7.3,"vote_count":7,"character":"Len","credit_id":"5d82ceda162bc30272dcf844","order":0,"media_type":"movie"},{"adult":false,"backdrop_path":"/i0o8lVnCDkcCIep6PFhiCYZ9B31.jpg","genre_ids":[18],"id":2387,"origin_country":["GB"],"original_language":"en","original_name":"Murder City","overview":"Murder City is a British police drama that centres on two mismatched detectives who scour London solving complex cases.","popularity":6.573,"poster_path":"/5ejJ4tRlAjX32IdQZ4F97wCuq7u.jpg","first_air_date":"2004-03-17","name":"Murder City","vote_average":7.7,"vote_count":3,"character":"","credit_id":"525734a4760ee3776a391895","episode_count":10,"media_type":"tv"},{"adult":false,"backdrop_path":null,"genre_ids":[18,35],"id":4969,"origin_country":["GB"],"original_language":"en","original_name":"Drop Dead Gorgeous","overview":"Drop Dead Gorgeous is a British comedy-drama for BBC Three. Set in Runcorn, it tells the story of 15-year-old Ashley Webb, whose life is turned upside-down when she is approached by a spotter from a local modelling agency. Events move at lightning speed and the whole family, including Ashley's fraternal twin sister Jade, are affected.\n\nThe first episode was shown on BBC Three on Sunday, 11 June 2006 at 10pm, with weekly episodes until the finale, which aired on 2 July 2006. The first series was shown for the first time on BBC One in August 2007, in the run up to the premiere of the second series on BBC Three. The second series began on 16 September 2007 at 9pm, again with weekly episodes until the finale on 22 October 2007. As yet, the BBC have not cleared the series for release on DVD.","popularity":8.246,"poster_path":"/6DE7Ji0vyosyDghCnh2ELG7CIqE.jpg","first_air_date":"2006-06-11","name":"Drop Dead Gorgeous","vote_average":6.0,"vote_count":2,"character":"","credit_id":"52577c7e760ee36aaa594187","episode_count":10,"media_type":"tv"},{"adult":false,"backdrop_path":"/qSiZuj4BnxejGK220nwa9JlI4dz.jpg","genre_ids":[18,80,99],"id":16532,"origin_country":["GB","US"],"original_language":"en","original_name":"Buried","overview":"Buried is a British television drama series, produced by World Productions for Channel 4 and originally screened in 2003. The programme starred Lennie James as Lee Kingley, who is serving a long prison sentence in order to protect a member of his family from a violent criminal. Critically well-received, the programme won the Best Drama Series category at the British Academy Television Awards in 2004.","popularity":3.058,"poster_path":"/8VSKOv1mwbLFTN1Ctgo179zH6nG.jpg","first_air_date":"2003-01-14","name":"Buried","vote_average":8.0,"vote_count":1,"character":"Martin Steddon","credit_id":"52584e74760ee34661025f58","episode_count":8,"media_type":"tv"},{"adult":false,"backdrop_path":"/q5pHoCGndSOcedKDY5nSDIrtBBH.jpg","genre_ids":[80,9648,18],"id":4860,"origin_country":["GB"],"original_language":"en","original_name":"Waking the Dead","overview":"A detective team apply new techniques to old crimes as they solve cold cases.","popularity":70.128,"poster_path":"/pthoQb9tOrM0gi43ZER4cOKgm8D.jpg","first_air_date":"2001-06-18","name":"Waking the Dead","vote_average":7.2,"vote_count":37,"character":"DCI Gulley","credit_id":"6124ba0be194b00060c0ad74","episode_count":2,"media_type":"tv"},{"adult":false,"backdrop_path":"/dRVToyhldkgjzGcrhPlZf4IuK0y.jpg","genre_ids":[80,18,35],"id":2585,"origin_country":["GB"],"original_language":"en","original_name":"Heartbeat","overview":"Set during the 1960s in the fictional North Yorkshire village of Aidensfield, this enduringly popular series interweaves crime and medical storylines.","popularity":66.408,"poster_path":"/jAmkMnqyKP6kD9QlXvJxkxMLwDB.jpg","first_air_date":"1992-04-10","name":"Heartbeat","vote_average":7.0,"vote_count":30,"character":"Adam Lee","credit_id":"5a76dfa90e0a26642a048ed6","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/do4NUauwqXiqbwxW9ehSPalHoga.jpg","genre_ids":[80,18],"id":11634,"origin_country":["GB"],"original_language":"en","original_name":"See No Evil: The Moors Murders","overview":"See No Evil: The Moors Murders is a British two-part television serial directed by Christopher Menaul. It was produced by Granada Television and broadcast on ITV during May 2006. It tells the story of the Moors Murders, which were committed during the 1960s by Myra Hindley and Ian Brady, from the view of Hindley's sister Maureen Smith and her husband David.","popularity":0.942,"poster_path":"/b71BaRjp9TwxUZodLGgSRIlkfL8.jpg","first_air_date":"2006-05-14","name":"See No Evil: The Moors Murders","vote_average":6.4,"vote_count":37,"character":"DCS Dougie Nimmo","credit_id":"5a95f0299251417bd30010fa","episode_count":2,"media_type":"tv"},{"adult":false,"backdrop_path":"/5WmkDjpgqwO3nU11YEmlSSx8YhH.jpg","genre_ids":[80,18],"id":2750,"origin_country":["GB"],"original_language":"en","original_name":"Silent Witness","overview":"Silent Witness is a British crime thriller series focusing on a team of forensic pathology experts and their investigations into various crimes.","popularity":105.056,"poster_path":"/9JHIvbCsGTO4KzozHcMxYxGmAZ1.jpg","first_air_date":"1996-02-21","name":"Silent Witness","vote_average":7.5,"vote_count":86,"character":"Tony Kennedy","credit_id":"6606d307303c85017cb963a9","episode_count":2,"media_type":"tv"}],"crew":[{"adult":false,"backdrop_path":null,"genre_ids":[80,53],"id":1236045,"original_language":"en","original_title":"Animals","overview":"When the son of an L.A. mayoral candidate is kidnapped, he and his wife have a few hours to come up with the ransom payment. With most of their money spent on his political campaign, they have to get their hands dirty and expose a side of their lives they never intended to see the light of day.","popularity":0.719,"poster_path":"/9ZAQilQOj7CuiwcXHKzjERzRP4l.jpg","release_date":"","title":"Animals","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"65b2c1944a0b190184caaa12","department":"Writing","job":"Writer","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'] ?? [];