WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Warning: Creating default object from empty value (10 posts)

  1. buzzsonic
    Member
    Posted 1 year ago #

    I'm getting this error just on the Events category pages:
    here:http://undergroundtheatre.co.uk/events/categories/art-show/

    Warning: Creating default object from empty value Warning: Creating default object from empty value in /home/undergr/public_html/wp-content/plugins/events-manager/classes/em-category-taxonomy.php on line 22

    I haven't updated to the latest version of WP yet as it crashed at the last attempt and I had to get my host to backup a previous version.

    Any ideas what it could be, sorry, I know nothing about PHP whatsoever

    Thanks

    Adrian

    http://wordpress.org/extend/plugins/events-manager/

  2. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    Hi Adrian,

    Did you have Events Manager working before your host restored your copy of WordPress?

  3. buzzsonic
    Member
    Posted 1 year ago #

    Yes it was working fine

  4. agelonwl
    Member
    Posted 1 year ago #

    can I know your current EM and wp version?

    thanks

  5. buzzsonic
    Member
    Posted 1 year ago #

    WordPress 3.4.2 Events Mngr 5.3.9 thanks

  6. agelonwl
    Member
    Posted 1 year ago #

    how about if you temporarily disable other plugins or revert back/preview using default twenty twelve theme?

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    I think you need to try and upgrade your WP, as that'd be the ultimate solution.

    Otherwise, ask your hosts to turn display_errors off in your PHP settings, they should be able to help with that.

  8. noelj07
    Member
    Posted 1 year ago #

    The error for me doesn't have to do with other plugin's, it has to do with visitors registering for an account and either:

    • Not finishing the transaction with paypal or the merchant account.
    • Or the registrant that signed up doesn't have a user account within wordpress.

    I'm trying to see how the settings can fix this.

  9. noelj07
    Member
    Posted 1 year ago #

    I just looked into it, and it has to do with the em_bookings database table...
    The person_id, doesn't match a wordpress user ID. So if you already have bookings, you will see an error message for each one of the bookings that don't a user id associated with it.

    This can be fixed by doing these steps:

    To fix the current bookings already registered:

    1. Create a booking only user with the role of "Subscriber",
    2. Go to the users table within your wordpress database and see what the user id is for the new user account you just created.
    3. Copy that user id and then go to the em_bookings table and update the person_id column for each registrant where the person_id doesn't equal a registered wordpress user. Update it with the id that you just copied.
    4. That should remove each error message that you were getting on the front end as well as within the admin panel.

    Now to fix the Events Manager Settings so that it doesn't happen again:

    1. Login to the wp-admin and go to Events - Settings - Click on the Bookings tab.
    2. In General Options, I have Allow Guest Bookings set to yes,
    3. Now, in the No-User Booking mode I have "Enable No-User Booking mode" set to Yes
    4. Allow Bookings with registered emails set to no
    5. Assign bookings to ... I have this set to the same user I setup during step 1 above.
    6. Click Save Changes (all)

    So what I'm doing here is allowing visitors to register without signing up for an account. Then I'm assigning all of the bookings under the subscriber account that I setup so that the database has an actual user id associated to it for each booking.

    I hope that this helps!

  10. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    I still think upgrading WP will help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic