Title: Errors in debug.php
Last modified: July 21, 2024

---

# Errors in debug.php

 *  Resolved [ikiterder](https://wordpress.org/support/users/ikiterder/)
 * (@ikiterder)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/errors-in-debug-php/)
 * Hi
 * I switched from PHP 7.4 to 8.1 and there were errors in debug.log
 * `PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of
   type string is deprecated in \wp-includes\formatting.php on line 4720`
 * causes an error meta-key `ampforwp_custom_content_editor_checkbox` whose value
   is `null`
 * And here’s another error
   `PHP Deprecated: str_replace(): Passing null to parameter#
   3 ($subject) of type array|string is deprecated in \wp-content\plugins\accelerated-
   mobile-pages\pagebuilder\amp-page-builder.php on line 82`
 * That’s all I saw right away for now. There are others like this.
 * Sorry for My English.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/errors-in-debug-php/#post-17904263)
 * Hi, thank you for reaching out to us. We have raised a GitHub ticket regarding
   this concern, and it will be addressed in the upcoming update. We kindly request
   your patience in the meantime.
 * Here is the ticket: [https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/5621](https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/5621)
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/errors-in-debug-php/#post-17905335)
 * Hi, We have released a new update, **version ****1.0.97**, in which we have fixed
   this errors. Kindly update the plugin to the latest version, clear the cache,
   and give it a try. If you still encounter the same error or have any other issues,
   please let us know.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Errors in debug.php’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/errors-in-debug-php/#post-17905335)
 * Status: resolved