Skip to:
Content
Pages
Categories
Search
Top
Bottom

Getting array offset error on value type Bool


  • rskangel
    Participant

    @rskangel

    Hello everyone, I am seeing this error while doing an update in my local machine.

    Warning: Trying to access array offset on value of type bool in C:[path]\wp-content\plugins\buddypress\bp-core\bp-core-avatars.php on line 1672

    Any suggestions? I did an update of the plugin as well but didn’t seem to fix the problem.

    Thank you for your assistance.

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

  • webmark487
    Participant

    @webmark487

    Hi,

    I´m getting exactly the same error message now.
    Did you get a grip on the error?
    Do you know about the reason?

    Best regards and thank you in advance
    Markus


    fawp
    Participant

    @fawp

    Hi @rskangel and @webmark487

    Today I started experiencing the same error message. In my case the line number is different. My error is

    Notice: Trying to access array offset on value of type bool in /var/www/<my website>/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 1625

    Have you recently changed anything to do with permissions, by any chance?


    webmark487
    Participant

    @webmark487

    Hi @fawp,

    On my site automatic backups are made with UpdraftPlus.
    Actually only 3 backups are always kept, older backups should automatically be deleted.
    In this case old backups were not deleted automatically, for whatever reason.

    It seems that the webspace quota was reached.

    After I deleted some backups manually, the site worked again. The error message was gone.


    fawp
    Participant

    @fawp

    Hi @webmark487, ok nice.


    fawp
    Participant

    @fawp

    MY POST IN THE BP 12 THREAD SEEMS TO HAVE DISAPPEARED, REPOSTING HERE JUST IN CASE


    @imath
    Hi Mathieu, I just wanted to point out an error. I am getting it on version 9.2.0 but I see the code is the same in version 11.2.0 so I am assuming it’s still not fixed.

    Please see this thread

    Getting array offset error on value type Bool

    The error is Notice: Trying to access array offset on value of type bool in /var/www/<my website>/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 1625 for 9.2.0 and

    Notice: Trying to access array offset on value of type bool in /var/www/<my website>/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 1672 for version 11.2.0

    Line 1672 in latest version reads:
    $retval = $upload_dir[$key];

    Hope this is sufficient. Thanks!


    Mathieu Viet
    Moderator

    @imath

    Hi @fawp

    This will be fixed in 12.0, here’s the ticket on our Trac environment: https://buddypress.trac.wordpress.org/ticket/8966


    fawp
    Participant

    @fawp

    great, thank you @imath! 🙂


    helenaren5
    Participant

    @helenaren5

    The error message you’re encountering indicates an issue related to accessing an array offset on a boolean value in a specific file of the Buddypress plugin. Deactivate other plugins one by one and test the update process to check if the issue is caused by a conflict with another plugin. This will help you identify if a specific plugin is causing the problem. Ensure that your PHP version is compatible with the Buddypress plugin. Check the plugin documentation or support resources for recommended PHP versions.

    Debugging: Enable WordPress


    ousm adapter
    Participant

    @jerrellpalmino

    I have same problem.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Skip to toolbar