critical error
-
Hi. I am receiving the error “There has been a critical error on this website” when trying to download a pdf. I am using PHP 8.1. Please advise me on how to fix this.
Full trace:
Deprecated: Optional parameter $meta_key declared before required parameter $meta_value is implicitly treated as a required parameter in /usr/www/users/yunusp/wp-content/plugins/xt-bright-cpt-n-shortcode/admin/framework/functions/fallback.php on line 31 Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/www/users/yunusp/wp-includes/Requests/Cookie/Jar.php on line 63 Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/www/users/yunusp/wp-includes/Requests/Cookie/Jar.php on line 73 Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/www/users/yunusp/wp-includes/Requests/Cookie/Jar.php on line 89 Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/www/users/yunusp/wp-includes/Requests/Cookie/Jar.php on line 102 Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/www/users/yunusp/wp-includes/Requests/Cookie/Jar.php on line 111 Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/www/users/yunusp/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40 Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/www/users/yunusp/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51 Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/www/users/yunusp/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68 Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/www/users/yunusp/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82 Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/www/users/yunusp/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91 Fatal error: Uncaught TypeError: Unsupported operand types: string * float in /usr/www/users/yunusp/wp-content/plugins/wp-advanced-pdf/tcpdf_min/tcpdf.php:3502 Stack trace: #0 /usr/www/users/yunusp/wp-content/plugins/wp-advanced-pdf/pdfheader.php(20): TCPDF->Header() #1 /usr/www/users/yunusp/wp-content/plugins/wp-advanced-pdf/tcpdf_min/tcpdf.php(3617): CUSTOMPDF->header() #2 /usr/www/users/yunusp/wp-content/plugins/wp-advanced-pdf/tcpdf_min/tcpdf.php(3284): TCPDF->setHeader() #3 /usr/www/users/yunusp/wp-content/plugins/wp-advanced-pdf/tcpdf_min/tcpdf.php(3196): TCPDF->startPage('P', Array, false) #4 /usr/www/users/yunusp/wp-content/plugins/wp-advanced-pdf/wp-advanced-pdf.php(1374): TCPDF->AddPage('P', Array, false, false) #5 /usr/www/users/yunusp/wp-content/plugins/wp-advanced-pdf/wp-advanced-pdf.php(525): wpppdf->generate_post_to_pdf_file(8647) #6 /usr/www/users/yunusp/wp-includes/class-wp-hook.php(308): wpppdf->ptp_generate_post_to_pdf(Object(WP)) #7 /usr/www/users/yunusp/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #8 /usr/www/users/yunusp/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #9 /usr/www/users/yunusp/wp-includes/class-wp.php(797): do_action_ref_array('wp', Array) #10 /usr/www/users/yunusp/wp-includes/functions.php(1332): WP->main('') #11 /usr/www/users/yunusp/wp-blog-header.php(16): wp() #12 /usr/www/users/yunusp/index.php(17): require('/usr/www/users/...') #13 {main} thrown in /usr/www/users/yunusp/wp-content/plugins/wp-advanced-pdf/tcpdf_min/tcpdf.php on line 3502
The page I need help with: [log in to see the link]
- The topic ‘critical error’ is closed to new replies.