Home › Forums › Calendar Products › Events Calendar PRO › Warning: Creating default object from empty value in "—" on line 642"
- This topic has 11 replies, 2 voices, and was last updated 7 years, 11 months ago by
Jo.
-
AuthorPosts
-
April 26, 2018 at 6:22 am #1516747
Jo
ParticipantSince last week I have been unable to add new posts/events to our website:
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 wordpressSome 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.
April 27, 2018 at 11:28 am #1518060Jaime Marchwinski
KeymasterHi 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
April 30, 2018 at 3:36 am #1518947Jo
ParticipantHi 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.5Unfortunately this has not fixed the issue.
Ben
April 30, 2018 at 4:25 am #1518983Jaime Marchwinski
KeymasterHi 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
April 30, 2018 at 4:38 am #1518992Jo
ParticipantHi 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
April 30, 2018 at 6:05 am #1519085Jaime Marchwinski
KeymasterHi 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
April 30, 2018 at 6:45 am #1519137Jo
ParticipantHi 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
April 30, 2018 at 6:55 am #1519148Jaime Marchwinski
KeymasterHi 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:
Let me know if that helps!
Thanks,
Jaime
April 30, 2018 at 7:38 am #1519193Jo
ParticipantHi 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:
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
May 1, 2018 at 5:17 am #1519965Jaime Marchwinski
KeymasterHi 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?
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
May 1, 2018 at 5:49 am #1519999Jo
ParticipantHi 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 wordpressAt this point I’m utterly stumped…
May 1, 2018 at 6:58 am #1520065Jaime Marchwinski
KeymasterHi 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
May 23, 2018 at 9:35 am #1537150Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Warning: Creating default object from empty value in "—" on line 642"’ is closed to new replies.
