Title: critical error
Last modified: February 5, 2023

---

# critical error

 *  [YB](https://wordpress.org/support/users/yahyabassa/)
 * (@yahyabassa)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/critical-error-471/)
 * 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:
 *     ```wp-block-code
       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 
       ```
   
    -  This topic was modified 3 years, 3 months ago by [YB](https://wordpress.org/support/users/yahyabassa/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcritical-error-471%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘critical error’ is closed to new replies.

 * ![](https://ps.w.org/wp-advanced-pdf/assets/icon-256x256.png?rev=1384838)
 * [WP Advanced PDF](https://wordpress.org/plugins/wp-advanced-pdf/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-advanced-pdf/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-advanced-pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-advanced-pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-advanced-pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-advanced-pdf/reviews/)

## Tags

 * [critical error](https://wordpress.org/support/topic-tag/critical-error/)

 * 0 replies
 * 1 participant
 * Last reply from: [YB](https://wordpress.org/support/users/yahyabassa/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/critical-error-471/)
 * Status: not resolved