• Resolved dimal

    (@dimalifragis)


    Hi, WP 6.3 and PHP 8.1.x.

    LOTS of Warnings:

    [17-Aug-2023 14:56:30 UTC] PHP Warning: Attempt to read property “post_name” on null in /home/wp-content/plugins/betterdocs/includes/Core/Rewrite.php on line 114

    [17-Aug-2023 14:56:30 UTC] PHP Warning: Attempt to read property “post_name” on null in /home/wp-content/plugins/betterdocs/includes/Core/PostType.php on line 612

    [17-Aug-2023 14:56:09 UTC] PHP Warning: Attempt to read property “ID” on null in /home/wp-includes/link-template.php on line 409

    [17-Aug-2023 14:56:09 UTC] PHP Warning: Attempt to read property “ID” on null in /home/wp-includes/link-template.php on line 456

    [17-Aug-2023 14:56:09 UTC] PHP Warning: Attempt to read property “ID” on null in /home/wp-includes/link-template.php on line 445

    [17-Aug-2023 14:56:08 UTC] PHP Warning: Attempt to read property “ID” on null in /home/wp-includes/link-template.php on line 409

    Thanks

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter dimal

    (@dimalifragis)

    Downgraded to PHP 8.0.x but the warnings still appear. So it is not an PHP 8.1.x issue but a general one.

    Thread Starter dimal

    (@dimalifragis)

    Those seem to appear when i DISABLE

    Enable Built-in Documentation Page

    Plugin Support Amit Paul

    (@paulamit)

    Hi @dimalifragis,

    Greetings. Really sorry to hear that and also sorry for the delay in reaching you.

    Would you kindly confirm for us if you’re getting these PHP warnings using our latest version of BetterDocs 2.5.1?

    Thank you!

    Thread Starter dimal

    (@dimalifragis)

    @paulamit Hi,

    NO: Version 2.5.1, WP 6.2.x and PHP 8.1.x but tried also PHP 8.0.x. No luck.

    I don’t see 2.5.2 anywhere, 2.5.1 is what is listed here at WP.org

    Plugin Support Amit Paul

    (@paulamit)

    Hi again! @dimalifragis

    Thanks, for confirming. Yeah, I wanted to mention the version 2.5.1.

    However, Could you please try this updated version by downloading it from the below link?

    Updated version: https://d.pr/f/RYaeZ9

    And let me know how it goes then, please.

    Thanks for your co-operation!

    Thread Starter dimal

    (@dimalifragis)

    @paulamit This version shows only these:

    [18-Aug-2023 11:31:34 UTC] PHP Warning: Attempt to read property “ID” on null in /home/wp-includes/link-template.php on line 405

    [18-Aug-2023 11:31:34 UTC] PHP Warning: Attempt to read property “ID” on null in /home/wp-includes/link-template.php on line 452

    [18-Aug-2023 11:31:34 UTC] PHP Warning: Attempt to read property “ID” on null in /home/wp-includes/link-template.php on line 441

    Plugin Support Amit Paul

    (@paulamit)

    Hi, Sorry to hear that again. Are you using the BetterDocs pro version as well?

    Thread Starter dimal

    (@dimalifragis)

    nope. but those don’t point at betterdocs.

    • This reply was modified 2 years, 9 months ago by dimal.
    Thread Starter dimal

    (@dimalifragis)

    Also trying to Save in General settings, i get a RED failed and:

    Object { code: "update_failed", message: "Something went wrong!", data: {…} }
    
    code: "update_failed"
    
    ​data: Object { status: 500 }
    
    ​message: "Something went wrong!"
    
    ​<prototype>: Object { … }settings.js:1:926286
    Plugin Support Amit Paul

    (@paulamit)

    Okay. We need to investigate this again with our DEV team. Kindly, allow us time, I will get back to you soon with the update.

    Thanks again! @dimalifragis

    Thread Starter dimal

    (@dimalifragis)

    @paulamit no problem. Thanks

    Thread Starter dimal

    (@dimalifragis)

    Plugin Support Pial

    (@iapial)

    Hello @dimalifragis

    Extremely sorry for the delayed response please accept my apologies.

    We have created a fix regarding the recent issues. Please kindly update BetterDocs from the below link

    BetterDocs Dev: https://d.pr/f/PHak27

    After that please rest the permalink To rest the Permalink please check this video : https://d.pr/v/lGOjg5
    And please check the BetterDocs custom category slug and the custom tag slug from WordPress Dashboard -> BetterDocs -> Settings -> General and make sure it’s not only category and tag. For reference please check this screencast – https://d.pr/v/kanMeB And please make sure to save the settings

    After doing this please check the issue again.
    Again we apologize for the inconvenience

    Let me know how it goes

    Thanks

    Thread Starter dimal

    (@dimalifragis)

    @iapial It goes much much better.

    Still some issue: If

    Enable Built-in Documentation Page

    is DISABLED, the permalinks have a problem. The permalink of betterdocs page (after the home) is empty and those errors appear:

    1. [20-Aug-2023 11:45:09 UTC] PHP Warning: Undefined variable $docs_page_title in /home/wp-content/plugins/betterdocs/views/widgets/breadcrumbs.php on line 36
    2. [20-Aug-2023 11:45:09 UTC] PHP Warning: Undefined variable $docs_page_url in /home/wp-content/plugins/betterdocs/views/widgets/breadcrumbs.php on line 35
    3. [20-Aug-2023 11:45:09 UTC] PHP Warning: Undefined variable $li_classes in /home/wp-content/plugins/betterdocs/views/widgets/breadcrumbs.php on line 34

    Flushing the permalinks in WP doesn’t fix that.

    Thanks

    Thread Starter dimal

    (@dimalifragis)

    ok, please ignore the above, somehow with the update is fixed now.

    Many thanks

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

The topic ‘PHP Warnings’ is closed to new replies.