Skip to:
Content
Pages
Categories
Search
Top
Bottom

ERROR: Call to a member function close() on null


  • ma3ry
    Participant

    @ma3ry

    I am getting this error since I had an issue with BuddyPress Xprofile Custom Fields. I made the change as suggested by Varun (https://wordpress.org/support/topic/warning-breaks-with-bp-3-0/) and it stopped the error from appearing on my dashboard, but I now have the following error when doing back up with BackWPup

    ERROR: Call to a member function close() on null

    I’m assuming the two are related. Is there a fix for this?

    Many thanks!

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

  • Varun Dubey
    Participant

    @vapvarun

    @ma3ry BuddyPress Xprofile Custom Fields have some security loopholes and it will need dedicated time to fix all issues and make it compatible with the latest version.

    @venutius
    check it once if you have time. It has 6000+ active install, needs some attention.


    Venutius
    Moderator

    @venutius

    Which file and line number is the error showing from?


    ma3ry
    Participant

    @ma3ry

    It happens when I run BackWPup. There are no line numbers. It shows up in the logs as follows.

    [18-May-2018 09:49:33] Database backup done!
    [18-May-2018 09:49:33] 1. Trying to create a WordPress export to XML file …
    [18-May-2018 09:49:36] Check WP Export file …
    [18-May-2018 09:49:36] WP Export file is a valid WXR file.
    [18-May-2018 09:49:36] Compressing file …
    [18-May-2018 09:49:36] Compressing done.
    [18-May-2018 09:49:36] ERROR: Call to a member function close() on null
    [


    ma3ry
    Participant

    @ma3ry

    Is anyone likely to update BuddyPress Xprofile Custom Fields?


    Venutius
    Moderator

    @venutius

    It’s not possible, it’s been closed for security reasons, we can only summise that it’s got an issue that the original author can’t or won’t fix. It’s possible that someone could make a fork of it but the problem is WP would not let them inform the installed base.


    ma3ry
    Participant

    @ma3ry

    Wow! That puts me in a real pickle, but at least I know now. Thank you so much!

    I’ll talk to my coder about it.


    Venutius
    Moderator

    @venutius

    I don’t think the changes I’ve made could have caused that, I only updated the version checking which is internal to the plugin and not referenced by other, and I didn’t change any data that was being recorded in the database. If you deactivate xprofile custom fields, does the problem go away?


    ma3ry
    Participant

    @ma3ry

    Oh no, I’m sorry, I didn’t mean to imply that your changes caused it.

    This backup error happened before I made the changes.

    Your changes helped me very much!


    Venutius
    Moderator

    @venutius

    Ah ok, but you think this is related to BuddyPress?


    ma3ry
    Participant

    @ma3ry

    Yes, I think it is the same issue as the one I originally wrote about re XProfile Custom Fields showing an error on my dashboard.

    I got the notification on the dashboard first, then I saw that my backups also had problems. I think both are related to the same plugin.

    Your solution helped with the dashboard issue. It is no longer showing.


    Venutius
    Moderator

    @venutius

    I think the next thing to do is to deactivate BP then run your backup, see if that fixes it. Then we will know for sure.


    ma3ry
    Participant

    @ma3ry

    Thank you for the suggestion. I deactivated the XProfile plugin first and ran the backup job – still had the error, so I deactivated the BuddyPress plugin and ran the backup job again. I still have the error. I guess I’m going to have to look into this further.

    One thing I did notice when I deactivated the XProfile plugin, I retained all my current extra fields. The only one I had a problem with is birthdate. It used to show age, not birthdate. Perhaps there is a plugin that will deal with just this issue. I’ll have to look around.

    Thank you again for all your excellent help. I really appreciate it!!!!


    Venutius
    Moderator

    @venutius

    Yes, with xProfile once you have configured the field from the plugin, BP remembers those settings so you no longer need the plugin, however you’d need it to add new fields supported by the plugin. I’ve put in a request to include this plugins features in BP core, if that happens you should get the ongoing support that is required.

    I guess regarding your backup issue the next step is to check with that plugins support pages and report the issue there. WP also updated at the same time as BP so it’s not inconceivable that the error stems from that.


    ma3ry
    Participant

    @ma3ry

    That would be great (if it were added to BP core).

    Re my backup issues I have sent it off to my Systems Admin. He’s a genius at this kind of thing.

    Thank you again so very, very much for all your help!

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