WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Error passing PHP 5.2 to PHP 5.4 (11 posts)

  1. Fikx
    Member
    Posted 1 year ago #

    In English :
    I recently moved from version PHP 5.2 to PHP 5.4 and error has occurred in the page of the list of events :
    Warning: Creating default object from empty value in /homepages/2/d421693919/htdocs/zumba/wp-includes/capabilities.php on line 641
    If I revert to the version of PHP 5.2, the error disappears.

    Does anyone have a solution or can help me?

    Thank you in advance!

    In French :
    Je suis passé récemment de la version PHP 5.2 à PHP 5.4 et cette erreur est apparue dans la page de la liste des évènements :
    Warning: Creating default object from empty value in /homepages/2/d421693919/htdocs/zumba/wp-includes/capabilities.php on line 641
    Si je repasse à la version PHP 5.2, l'erreur disparaît.

    Est-ce que quelqu'un aurait une solution ou peut m'aider ?

    Merci d'avance !

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

  2. Fikx
    Member
    Posted 1 year ago #

    I found what is causing the error: the code #_AVAILABLESPACES.
    But I don't know why... Can we not see available spaces in the list of events ?

  3. Fikx
    Member
    Posted 1 year ago #

    Resolved ! It was because some reservations made by a person not registered... :S

  4. agelonwl
    Member
    Posted 1 year ago #

    thanks for updating.

  5. Fikx
    Member
    Posted 1 year ago #

    Finally, the problem reappears when you want to delete a user :

    Warning: Creating default object from empty value in /wp-includes/capabilities.php on line 641
    
    Warning: Cannot modify header information - headers already sent by (output started at /wp-includes/capabilities.php:641) in /wp-includes/pluggable.php on line 876

    But just before I deleted his booking. That is the problem ?
    And finally the user has been deleted.

    Does anyone have a solution or can help me?

    Thank you in advance !

  6. Fikx
    Member
    Posted 1 year ago #

    If I'm not mistaken, I think the problem is buddypress with PHP 5.4. Does someone can confirm ? I can't find solutions for the moment...

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    this may be partially a WP bug actually... will have to test this out when time permits as I don't have a server with 5.4 handy right now.

  8. Fikx
    Member
    Posted 1 year ago #

    Ok. Thank you Marcus !
    I'm going to do with, because I don't have a choice unfortunately. My host requires me to switch to php 5.4. :S
    Can I continue to use it with php 5.4 or I may have cause errors ?

    Thank you for your reply anyway and good weekend ! ;)

  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    the above shouldn't cause any adverse behaviour, if you disable php errors on your pages, e.g. disable_errors in your php.ini settings or in your .htaccess file it should hide the errors and work normally.

  10. Fikx
    Member
    Posted 1 year ago #

    Ok ! Thank you again Marcus ! ;)

  11. glyndavidson
    Member
    Posted 7 months ago #

    Thanks Fikx, that saved me a bunch of time.

    I had the same errors and it was because I'd deleted a user who had made a booking. Deleting the booking fixed the errors.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic