Warning: Creating default object from empty value in "—" on line 642"

Home Forums Calendar Products Events Calendar PRO Warning: Creating default object from empty value in "—" on line 642"

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1516747
    Jo
    Participant

    Since last week I have been unable to add new posts/events to our website:

    Home

    The following text appears on the add new post/event pages:

    Warning: Creating default object from empty value in /homepages/30/d648578034/htdocs/southamptonvsBackup/site/wp-admin/includes/post.php on line 642

    I have tried the following, all to no avail:

    Deactivating all plugins
    Reverting to TwentySeventeen
    Updating plugins/wordpress os
    Setting up a new database
    Updating my PHP to 7.1
    Removing all expired transient files
    fresh install of wordpress

    Some articles I’ve found have noted that this issue has been reported in the past with Events Calendar Pro, so I’m checking with you to see whether the issue is with this plugin.

    I would be extremely grateful for any help you can offer.

    #1518060

    Hi Jo,

    Thanks so much for reaching out!

    As a first step, can you update your Events Calendar related plugins to the most recent version?

    Let me know if this issue still occurs after doing so.

     

    Thanks,

    Jaime

    #1518947
    Jo
    Participant

    Hi Jaime,

    Thanks for your email. I have updated all our modern tribe plugins to the latest versions:

    Event Calendar 4.6.14.1
    Event Calendar Pro 4.4.25
    Filter Bar 4.5.5

    Unfortunately this has not fixed the issue.

    Ben

    #1518983

    Hi Ben,

    One error I am seeing on your site is that Google Maps API has been included multiple times.  Can you try removing from everywhere but one place.  For example, it could be in your theme and on our plugin.

    Also, are you able to add regular WordPress posts?  Is this only affecting your events?

    Let me know!

     

    Thanks,

    Jaime

    #1518992
    Jo
    Participant

    Hi Jaime,

    I’ve gone ahead and removed the Google API however that hasn’t resolved the issue.

    I’m unable to add posts, events or media – I get the following text at the top of the ‘add a…’ pages:

    Warning: Creating default object from empty value in /homepages/30/d648578034/htdocs/southamptonvsBackup/site/wp-admin/includes/post.php on line 642

    And the publish button has been replaced with a submit for review button that on click says ‘Sorry, you are not allowed to edit this post.’

    Ben

    #1519085

    Hi Ben,

    Okay, so in other words, this affects the functionality of your site as a whole, rather than just the ability to add events with our plugin.  Is that correct?

    As a next step, let’s try to rule out if there is some type of conflict at play.
    This is usually because of:

    • A conflict with another plugin
    • A conflict with your WordPress theme
    • A template customization for the Events Calendar that requires updating

    When it comes to that type of issue, it is preferable to troubleshoot in a staging environment if you have one.

    A first quick test is to simply temporarily revert back to a default WordPress theme such as twenty-sixteen to see if the issue persists.

    The next step would be to go through our testing for conflicts procedure and let us know what you find out.

    Basically the goal here is to revert back to a bare WordPress installation to see if the problem persists. It also allows us to pinpoint what the cause of the issue is.

    But, before you do that, there are 2 things I would advise:

    • Make a backup of your database
    • Consider activating a “Maintenance Page” plugin if you are doing this on your live site (to minimize impact on your visitors)

    Let me know how that goes!

     

    Thanks,

    Jaime

    #1519137
    Jo
    Participant

    Hi Jaime,

    Yes, this is affecting the entire functionality of the website. I’ve checked for conflicts using your procedure – still no luck, the issue is still there.

    Ben

    #1519148

    Hi Ben,

    It seems that this issue is related to WordPress as a whole, rather than an issue with our plugin.  Is that correct?

    You can try implementing some of the solutions mentioned in the WordPress.org forum on this issue:

    https://wordpress.org/support/topic/creating-default-object-from-empty-value-of-line-639-wp-adminincludespostphp/#post-8820087

    Let me know if that helps!

     

    Thanks,

    Jaime

    #1519193
    Jo
    Participant

    Hi Jaime,

    It’s a site-wide issue but I believe the issue has been caused by the events calendar. My belief is that a bug with the ‘Enable the Month View Cache’ option caused our database to slowly fill up causing the issue adding events/posts/media.

    When checking our database last week I discovered our database had exceeded it’s allowance, with almost 1GB of stored events calendar related transient data. When googling I then found this article:

    600mb database caused by events calendar

    Since reading that article, I’ve unchecked the ‘Enable month view cache’ option, used the plugin recommended (Transient Cleaner) which removed the bulk of the transient files. Annoying the 1&1 database wouldn’t update to reflect the reduction in file size so I duplicated the remaining content (about 25mb) onto a fresh database and pointed the wp-config.php file to the new database.

    Annoyingly, even though the database is now fine, we’re still unable to add new events/posts/media etc.

    Any tips?

    Ben

    #1519965

    Hi Ben,

    I’m sorry to hear that you are still experiencing this issue.

    Were you able to try some of the suggestions I mentioned in my previous reply?

    https://wordpress.org/support/topic/creating-default-object-from-empty-value-of-line-639-wp-adminincludespostphp/#post-8820087

    Alternatively, can you try using a fresh WordPress install and importing the content that you need there?

    Let me know if this helps!

     

    Thanks,

    Jaime

    #1519999
    Jo
    Participant

    Hi Jaime,

    Yes, I went through all the advice in the link you provided, unfortunately none of it worked.

    I’ve tried a fresh install of wordpress before contacting you along with several other fixes. To confirm I’ve now tried the following:

    Deactivating all plugins
    Reverting to TwentySeventeen
    Updating all plugins/wordpress os
    Removing all expired transient files from database
    Repairing existing database
    Checking wp_posts are set to auto increment
    Setting up a new database
    Updating my PHP to 7.1
    fresh install of wordpress

    At this point I’m utterly stumped…

    #1520065

    Hi Ben,

    One other thought I had was that perhaps this is related to a file and folder permissions error.

    You can use the following tutorial to check on the permissions that you have set up:

    http://www.wpbeginner.com/beginners-guide/how-to-fix-file-and-folder-permissions-error-in-wordpress/

    Also, you may want to post in the WordPress.org support forum and see if they have any additional suggestions for you as well.

    Let me know if that helps!

     

    Thanks,

    Jaime

    #1537150
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Warning: Creating default object from empty value in "—" on line 642"’ is closed to new replies.