Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity – ReferenceError: postboxes not defined


  • ksporich12
    Participant

    @ksporich12

    I had been designing a BuddyPress site for a couple months now and I had several plugins installed. Every plugin was working well with each other. I decided to make a few major changes and I installed several more plugins to test. I did a lot of installing, testing, and uninstalling. Eventually I wound up installing Jetpack when I noticed that comments and activity posts were not working correctly. I clicked on the activity page in my dashboard and I noticed an error notice from the AG Custom Admin plugin.

    I uninstalled every plugin one at a time and the error never went away. I began to investigate the code when I soon notice that I could no longer log in to my back end. I tried everything i could think of. Ultimately ended up deleting BuddyPress folder in my FileManager and reinstalled it. Same error with only BuddyPress and AG Custom Admin. I uninstalled the entire wordpress site from my server and started completely over.

    I have uninstalled the database and started completely from scratch. I installed WordPress, and BuddyPress. I opened up my browser console and the error is still there.

    Can anyone provide any insight? This has been a very frustrating process and I am not experienced enough to figure this out. I can’t seem to find anyone else who may have already solved this issue.

    Thanks,
    Ken

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

  • ksporich12
    Participant

    @ksporich12

    AG Custom Admin Caught Error


    Carme Mias
    Participant

    @carmemias

    Hello,
    I get the same error message in the BuddyPress Activity admin page. Also, AG Custom Admin don’t seem to give any solution either.
    Does anyone have a recommendation on how to solve this?
    Thanks

    I’m slightly surprised a reference error causes this issue, one tends to see plenty of them from many files including some from WP JS.

    We could run a check on the variable to see if it’s defined before parsing that line, I’ll open a trac ticket with a patch, but that – if accepted – won’t be in core for a month or so.

    You could edit your core file, but I stress this is a core modification and will be overwritten in updates so if this fix works for you but doesn’t get committed to core you would need to add it again after updates.

    locate admin.js in /buddypress/bp-activity/js/ and modify line 170 to resemble this:

    
    // in single Activity Administration screen.
    
    if( typeof postboxes !== 'undefined' ) {
    
     postboxes.add_postbox_toggles( bp_activity_admin_vars.page );
    }
    
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Activity – ReferenceError: postboxes not defined’ is closed to new replies.
Skip to toolbar