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":"/yC4N4fBLDy2h3fNgmUfwKxCLyjD.jpg","genre_ids":[12,18],"id":18635,"original_language":"en","original_title":"One Week","overview":"Ben Tyler has been diagnosed with cancer. With a grim chance of survival in the best case scenario even if he immediately begins treatment, he instead decides to take a motorcycle trip from Toronto through the Canadian prairies to British Columbia.","popularity":8.873,"poster_path":"/jwbw0Nbl9lplCmudOogGC8hV3rN.jpg","release_date":"2008-09-08","title":"One Week","video":false,"vote_average":6.8,"vote_count":121,"character":"Self (archive footage) (uncredited)","credit_id":"657dbbd48d22fc0547459274","order":25,"media_type":"movie"},{"adult":false,"backdrop_path":"/xIuP3tDEVRa2nwQIB6evGZK1ITi.jpg","genre_ids":[80,18,53],"id":61778,"original_language":"sv","original_title":"Hassel 07 - De giriga","overview":"Roland Hassel is chasing a criminal who deals with stolen luxury cars and narcotics.","popularity":1.615,"poster_path":"/9XAgJUMSPw70JGkmzNMCfpyTNd6.jpg","release_date":"1992-03-05","title":"Hassel 07 - De giriga","video":false,"vote_average":3.3,"vote_count":3,"character":"Robber","credit_id":"63264aa6db154f007d3c72c8","order":12,"media_type":"movie"},{"adult":false,"backdrop_path":"/8LcYDEeTTFh7kuTBcVPvFngxFAE.jpg","genre_ids":[10764,10767],"id":76628,"origin_country":["SE"],"original_language":"sv","original_name":"Renées brygga","overview":"TV presenter invites Swedish celebrities and interesting personalities to her summer island in the Stockholm Archipelago for an evening filled with food, drink, laughs and emotion. She interviews her guests about their career, life and dreams, trying to learn new things about them.","popularity":9.703,"poster_path":"/tCE30K1GTDQNk1Honyo1UeYBUt5.jpg","first_air_date":"2015-02-18","name":"Renées brygga","vote_average":0.0,"vote_count":0,"character":"Himself","credit_id":"60081ee7cb8028003ef9cefb","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/vMf5vOGqLnurbvYJzrN4OZHRWvI.jpg","genre_ids":[80,18,10759],"id":225575,"origin_country":["SE"],"original_language":"sv","original_name":"Hassel","overview":"","popularity":4.144,"poster_path":"/57YYdqoaP8KgMAws1Vf23I7Ikhb.jpg","first_air_date":"1986-10-11","name":"Hassel","vote_average":0.0,"vote_count":0,"character":"Robber","credit_id":"644e7f53a6c104139967793e","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":84210,"origin_country":["SE"],"original_language":"sv","original_name":"Vem kan slå Anja och Foppa?","overview":"Athletes team up to try and beat Anja Pärson and Peter Forsberg in different events.","popularity":2.257,"poster_path":"/aHcPMrmjYMPBM6BpnTPKDu3gCcQ.jpg","first_air_date":"2018-11-11","name":"Who can beat Anja and Foppa?","vote_average":6.0,"vote_count":2,"character":"Challenger","credit_id":"612ae8f1e8a3e1006240463e","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/7OrDrYlFhOgFFVid3XloFXFhIaR.jpg","genre_ids":[10767,10751,10764],"id":132374,"origin_country":["SE"],"original_language":"sv","original_name":"Carina Bergfeldt","overview":"","popularity":7.727,"poster_path":"/mBa1ekpNKaCNvRjgIPLyyE5pBi9.jpg","first_air_date":"2021-01-15","name":"Carina Bergfeldt","vote_average":7.7,"vote_count":3,"character":"Self - Guest","credit_id":"612d5a32fac5020026f99e66","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/qzgBWDYOO8n6U2PFbKfuLcV4LEi.jpg","genre_ids":[10767,35],"id":51666,"origin_country":["SE"],"original_language":"sv","original_name":"Hellenius Hörna","overview":"","popularity":15.428,"poster_path":"/rEIsDt97H8rK4BwBxDb3CDD1Z7v.jpg","first_air_date":"2010-10-07","name":"Hellenius Hörna","vote_average":0.0,"vote_count":0,"character":"Self - Guest","credit_id":"62200bcae194b0001b751529","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/tUKekS8ZiKRjqJc2BZDptA769m.jpg","genre_ids":[18],"id":232331,"origin_country":["SE"],"original_language":"sv","original_name":"Börje - The Journey of a Legend","overview":"From a small town in Sweden to an NHL icon - the inspiring story of hockey legend Börje Salming and his road to international stardom and passionate love.","popularity":5.631,"poster_path":"/beOerZM9ADXZTtor3vB1dDoOZEt.jpg","first_air_date":"2023-11-19","name":"Börje - The Journey of a Legend","vote_average":7.3,"vote_count":6,"character":"Self","credit_id":"657f7fb5904f6d07247fd350","episode_count":6,"media_type":"tv"},{"adult":false,"backdrop_path":"/2rI7t5sbdVC2MzwvY2FXO6G7Sza.jpg","genre_ids":[10764],"id":41947,"origin_country":["SE"],"original_language":"sv","original_name":"Allt för Sverige","overview":"Allt för Sverige is a Swedish reality show based on the original Norwegian format Culture Shock:Norway. The first season of Allt för Sverige premiered on Sveriges Television SVT1 on October 30, 2011, and the last episode aired on December 18, 2011. The series is about Swedish Americans who return to their Swedish roots. In the program, they give the participants more about their families but in each episode one in the group must leave the show and therefore know less about their ancestry.","popularity":21.565,"poster_path":"/vISxEPGQFLO37CNImg6aKeL9wmo.jpg","first_air_date":"2011-10-30","name":"Allt för Sverige","vote_average":6.0,"vote_count":1,"character":"Himself","credit_id":"5cd845a79251415ec5ce323b","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/tpE0FHaRhVGOIc0z8ixTS4D65sd.jpg","genre_ids":[99],"id":249998,"origin_country":["SE"],"original_language":"sv","original_name":"Salminggenen","overview":"When Börje Salming becomes ill with ALS, Bianca Salming’s life is turned upside down. Suddenly, a strong, safe and supportive father is not by her side when she invests in becoming the best in the world in athletics. Bianca decides to get to know the greatness and driving forces of her father, the hockey legend. She wants to understand and take with her what made Börje Salming the best in the world, one of Sweden’s most beloved sports personalities and a beloved husband, brother and father. The series follows Bianca Salming’s life and sports career from November 2021 to September 2023. During that time, Börje Salming falls ill and dies of ALS, then follows Bianca’s struggle to move on in life and her sports career without her father.","popularity":1.28,"poster_path":"/iXcYIQixzYvjBQbQVXuEEnEgCl9.jpg","first_air_date":"2023-11-19","name":"Salminggenen","vote_average":0.0,"vote_count":0,"character":"Self","credit_id":"65feb777459ad60164f7cb72","episode_count":3,"media_type":"tv"}],"crew":[{"adult":false,"backdrop_path":"/yC4N4fBLDy2h3fNgmUfwKxCLyjD.jpg","genre_ids":[12,18],"id":18635,"original_language":"en","original_title":"One Week","overview":"Ben Tyler has been diagnosed with cancer. With a grim chance of survival in the best case scenario even if he immediately begins treatment, he instead decides to take a motorcycle trip from Toronto through the Canadian prairies to British Columbia.","popularity":8.873,"poster_path":"/jwbw0Nbl9lplCmudOogGC8hV3rN.jpg","release_date":"2008-09-08","title":"One Week","video":false,"vote_average":6.8,"vote_count":121,"credit_id":"657dbc157ad08c06974ffe14","department":"Crew","job":"Thanks","media_type":"movie"},{"adult":false,"backdrop_path":"/tUKekS8ZiKRjqJc2BZDptA769m.jpg","genre_ids":[18],"id":232331,"origin_country":["SE"],"original_language":"sv","original_name":"Börje - The Journey of a Legend","overview":"From a small town in Sweden to an NHL icon - the inspiring story of hockey legend Börje Salming and his road to international stardom and passionate love.","popularity":5.631,"poster_path":"/beOerZM9ADXZTtor3vB1dDoOZEt.jpg","first_air_date":"2023-11-19","name":"Börje - The Journey of a Legend","vote_average":7.3,"vote_count":6,"credit_id":"64d4b361f14dad013a8a581f","department":"Writing","episode_count":6,"job":"Writer","media_type":"tv"}]}}

/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'] ?? [];