Title: PHP Deprecated: trim()
Last modified: August 17, 2023

---

# PHP Deprecated: trim()

 *  Resolved [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-deprecated-trim-2/)
 * Hi, this is with WP 6.3 and PHP 8.1.x
 * [17-Aug-2023 14:56:30 UTC] PHP Deprecated: trim(): Passing null to parameter #
   1 ($string) of type string is deprecated in /home/wp-content/plugins/betterdocs/
   includes/Core/Rewrite.php on line 117
 * Thanks

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

 *  Plugin Support [Zeba Afia Shama](https://wordpress.org/support/users/zebaafiashama/)
 * (@zebaafiashama)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-deprecated-trim-2/#post-16981538)
 * Hi [@dimalifragis](https://wordpress.org/support/users/dimalifragis/) 
   I hope
   you are doing well. It seems like an unusual issuePlease make sure you are using
   the latest version of BetterDocs free and pro(if any) plugin, which is currently
   v2.5.1
 * Could you kindly provide the Site Info? To do so, please follow these steps: 
   Navigate to your WordPress Dashboard, then proceed to **Tools -> Site Health -
   > Info**. From there, you can easily Copy Site Info to the clipboard.
 * Furthermore, it would be immensely helpful if you could provide a screenshot 
   from the BetterDocs Settings page. You can capture this screenshot using the 
   following link as an example: [https://d.pr/i/A8dY91](https://d.pr/i/A8dY91)
 * I’m waiting for your valuable response. 
   Thank You
    -  This reply was modified 2 years, 9 months ago by [Zeba Afia Shama](https://wordpress.org/support/users/zebaafiashama/).
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-deprecated-trim-2/#post-16981567)
 * Hi, nothing wrong with my site health.
 * Anyways, thanks
 *  Plugin Support [Zeba Afia Shama](https://wordpress.org/support/users/zebaafiashama/)
 * (@zebaafiashama)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-deprecated-trim-2/#post-17004040)
 * Hi [@dimalifragis](https://wordpress.org/support/users/dimalifragis/) 
   I hope
   you are doing well. I am so sorry I couldn’t follow up you earlier. Actually,
   our dev team has already fixed some PHP error issues in the latest version. So,
   In order to assist you more effectively, could you please provide us with some
   specific information? This will help us investigate the problem and work toward
   a solution.
 * Could you kindly provide the following details from your BetterDocs Settings 
   page:
    1. **Enable Built-in Documentation Page:** Please let us know if this option is
       enabled or disabled in your settings.
    2. **BetterDocs Root Slug:** Kindly share the value you’ve set for the root slug
       in your BetterDocs configuration.
    3. **Single Docs Permalink:** Please provide the permalink structure you’ve chosen
       for individual documentation pages.
 * Additionally, we would appreciate it if you could let us know which version of
   BetterDocs you are currently using.
 * Our development team has been actively working to address various concerns, and
   there’s a possibility that the latest build may contain fixes for the issue you’re
   facing. So, once we have the above details, we’ll be able to offer more tailored
   guidance or direct you towards a solution.
 * Thank you for your cooperation and patience as we work to resolve this matter.
 * I look forward to your response.
 * Best regards,
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-deprecated-trim-2/#post-17004120)
 * Hi, thank you for the reply. I haven’t seen that error (or any error) after the
   latest update. So i’m good.

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

The topic ‘PHP Deprecated: trim()’ is closed to new replies.

 * ![](https://ps.w.org/betterdocs/assets/icon-256x256.png?rev=2953105)
 * [BetterDocs – Knowledge Base Docs & FAQ Solution for Elementor & Block Editor](https://wordpress.org/plugins/betterdocs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/betterdocs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/betterdocs/)
 * [Active Topics](https://wordpress.org/support/plugin/betterdocs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/betterdocs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/betterdocs/reviews/)

## Tags

 * [PHP Deprecated](https://wordpress.org/support/topic-tag/php-deprecated/)

 * 4 replies
 * 2 participants
 * Last reply from: [dimal](https://wordpress.org/support/users/dimalifragis/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/php-deprecated-trim-2/#post-17004120)
 * Status: resolved