Support

Home Forums Event Espresso Premium Fatal error on EE4

Fatal error on EE4

Posted: May 23, 2016 at 9:01 am


williamvw7788

May 23, 2016 at 9:01 am

Fatal error: Call to a member function name() on a non-object in /home/cc/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Form_Fields.helper.php on line 1271
the events has suddenly vanished from my database. I try re-installing the latest version.But it still doesn’t work.


williamvw7788

May 23, 2016 at 9:06 am

In Events Espresso setting(general setting) there can’t show the more info include choose country and state


williamvw7788

May 23, 2016 at 9:06 am

my website :http://www.creativeconnect.cc/


williamvw7788

May 23, 2016 at 9:07 am

http://www.creativeconnect.cc/events-and-products/


Josh

  • Support Staff

May 23, 2016 at 9:15 am

Hi there,

I checked and I can see the events on the front end of the site here:

http://www.creativeconnect.cc/events/

Do you have a backup of the database that you can restore to?


williamvw7788

May 23, 2016 at 10:10 am

I never backup my data. Don’t worry about the events data.I can do it again.
What can I make event Espreess working again?


williamvw7788

May 23, 2016 at 10:11 am

In Events Espresso setting(general setting) there can’t show the more info include choose country and state


williamvw7788

May 23, 2016 at 10:14 am

also can’t register now

“This registration step could not be completed. Please refresh the page and try again.”


Josh

  • Support Staff

May 23, 2016 at 10:44 am

The registration error is from a fatal error that’s happening when the ajax call is made to process the registration.

There’s likely a more specific error that can be logged if you can set up error logging by following this guide:

https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging


williamvw7788

May 23, 2016 at 11:11 am

Josh Thanks so mush for your help.
Now Why in general setting there can’t edit ? there can’t show the more info include choose country and state


williamvw7788

May 23, 2016 at 11:14 am

I try re-installing the latest version again.But it still doesn’t show all general setting


williamvw7788

May 23, 2016 at 11:52 am

WordPress Version:
4.5.2
PHP Version:
5.4.33
MySQL Version:
5.5.49
Event Espresso Version:
4.8.43.p
WordPress Address (URL):
http://www.creativeconnect.cc
Site address (URL):
http://www.creativeconnect.cc


Josh

  • Support Staff

May 23, 2016 at 2:39 pm

Did you check the error log to see if there was a fatal error captured when the General Settings page loaded up?


williamvw7788

May 23, 2016 at 6:57 pm

[Sun May 22 05:27:32 2016] [error] [client 37.59.40.198] client denied by server configuration: /home/cc/public_html/wp-includes/SimplePie/theme-options.php


williamvw7788

May 23, 2016 at 7:04 pm

error log only this


williamvw7788

May 23, 2016 at 7:09 pm


williamvw7788

May 23, 2016 at 7:38 pm

I think if here any wrong about my Event Espresso License Key ? When I put in my Support License Key,here No response


williamvw7788

May 23, 2016 at 7:55 pm

yesterday I also make a mistake, when I Reset Event Espresso Capabilities,all data cleaned


Tony

  • Support Staff

May 24, 2016 at 7:04 am

I think if here any wrong about my Event Espresso License Key ? When I put in my Support License Key,here No response

Your license key has no effect on EE function so it will not cause this.

Your license key seems to be working find and it linked to your domain. Does it show an error message specifically regarding the license key? If not there is no issue with your key.

yesterday I also make a mistake, when I Reset Event Espresso Capabilities,all data cleaned

So did you click to reset your capabilities? This button – http://take.ms/wGghT


williamvw7788

May 24, 2016 at 8:32 am

Yes I did ,I Reset Event Espresso Capabilities

important is in general setting there can’t edit ? there can’t show the more info include choose country and state


williamvw7788

May 24, 2016 at 10:09 am

Yes I did ,I Reset Event Espresso Capabilities
important is in general setting there can’t edit ? there can’t show the more info include choose country and state


williamvw7788

May 24, 2016 at 10:41 am

Why in general setting there can’t edit ? there can’t show the more info include choose country and state


Josh

  • Support Staff

May 24, 2016 at 10:59 am

There should be no reason why you can’t.

There are a few possible causes to this issue. You can rule these out one by one:
1) A theme conflict. You can rule this out by temporarily switching to the default WordPress theme.
2) A plugin conflict. You can rule this out by temporarily deactivating any other installed WordPress plugins.
This was mentioned before, but it bears repeating: It may also help to turn on debug mode. You can set wp_debug to true by editing the wp-config.php file.
You can use an [FTP client][1] and [a text editor][2] to access change this line to the site’s wp-config.php file:
define(‘WP_DEBUG’, true);
[1]: http://codex.wordpress.org/FTP_Clients
[2]: http://codex.wordpress.org/Editing_Files#Acceptable_External_Editors


williamvw7788

May 24, 2016 at 6:28 pm

Omg,I did everything follow you.but still can’t show full general setting.


williamvw7788

May 24, 2016 at 6:55 pm

Is there have anyway fine detail reason?


williamvw7788

May 24, 2016 at 7:05 pm

If the reason is put the code:define( ‘EE_DROP_BAD_TABLES’, TRUE); to the site’s wp-config.php ?


Tony

  • Support Staff

May 25, 2016 at 4:47 am

Omg,I did everything follow you.but still can’t show full general setting.

Does it show an error when you load the page now? You should have WP_DEBUG enabled if you followed all of the steps so if theres a problem an error should be shown.

If the reason is put the code:define( ‘EE_DROP_BAD_TABLES’, TRUE); to the site’s wp-config.php ?

You added that to wp-config.php and then the error was thrown?

Remove that from wp-config.php please, you do not need it there.

It looks like there is a problem with the database table that holds your states/countries. The reg form shows no countries or states – http://take.ms/qsuwh

Have you been manually editing the database?


williamvw7788

May 25, 2016 at 6:17 am

I update PHP.But never manually editing the database


williamvw7788

May 25, 2016 at 6:19 am

I already removed ( ‘EE_DROP_BAD_TABLES’, TRUE);from the site’s wp-config.php


williamvw7788

May 25, 2016 at 6:21 am

haven’t any error info shown


Josh

  • Support Staff

May 25, 2016 at 8:32 am

You might have done some damage to the database from an earlier action. You might be able to get things back on track by letting the database do a version bump/reset.

First, you deactivate Event Espresso.
Then, you edit the version number in espresso.php so it’s
4.8.44.rc.001.
Here’s a screenshot that shows the edit in context.

Then you update the file, then you reactivate Event Espresso.

  • This reply was modified 7 years, 11 months ago by  Josh. Reason: fomatting


williamvw7788

May 25, 2016 at 9:14 am

so sorry I put 4.8.44.rc.001 in espresso.php,but still doesn’t work


williamvw7788

May 25, 2016 at 9:17 am

would you help me chick my wp-config.php ?maybe there find some wrong


williamvw7788

May 25, 2016 at 9:19 am

*redacted*/wp-config.php


Josh

  • Support Staff

May 25, 2016 at 9:27 am

Sorry, I can’t see your wp-config.php and that’s actually a good thing. If you want to fill out the secure form on this page, someone can take a look.

https://eventespresso.com/send-login-details/


williamvw7788

May 25, 2016 at 9:53 am

Hi Josh
send thanks


Josh

  • Support Staff

May 25, 2016 at 12:23 pm

Hi there,

It looks like you missed the part of the form where it asks for FTP credentials. You were looking for someone to check the wp-config.php file, correct? If so, you can re-send the secure form and be sure to include FTP credentials.


williamvw7788

May 25, 2016 at 2:05 pm

Is there have another way to fix it?


Josh

  • Support Staff

May 25, 2016 at 2:14 pm

We’d need some kind of file access to be able to even see the wp-config.php file and it’d be best to be able to access the wp-content/debug.log file. If you don’t have FTP access you can send, maybe you can send cpanel file access over the secure form?


williamvw7788

May 25, 2016 at 5:06 pm

Can i send to you wp-config.php code as massage?


Josh

  • Support Staff

May 25, 2016 at 5:18 pm

No I would not recommend doing that because that file has all the access info for your site’s database. Along with that, it won’t help narrow down what’s causing the error on your General Settings page.


williamvw7788

May 25, 2016 at 7:54 pm

Fatal error: Call to a member function name() on a non-object in /home/cc/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Form_Fields.helper.php on line 1271


williamvw7788

May 25, 2016 at 7:55 pm

got a error,how to fix it?


Josh

  • Support Staff

May 26, 2016 at 6:37 am

Usually Event Espresso will fix the database automatically if it detects that the esp_state table is missing or damaged. Can you make sure your WordPress site can write to custom tables?


williamvw7788

May 26, 2016 at 8:36 am

I just Replace WordPress files,but still can’t edit general setting


williamvw7788

May 26, 2016 at 8:37 am

also have error massage
Fatal error: Call to a member function name() on a non-object in /home/cc/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Form_Fields.helper.php on line 1271


williamvw7788

May 26, 2016 at 8:47 am

When i put in this code.the error massage is gone
// Enable WP_DEBUG mode
define( ‘WP_DEBUG’, true );

// Enable Debug logging to the /wp-content/debug.log file
define( ‘WP_DEBUG_LOG’, true );

// Disable display of errors and warnings
define( ‘WP_DEBUG_DISPLAY’, false );
@ini_set( ‘display_errors’, 0 );

// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( ‘SCRIPT_DEBUG’, true );


Josh

  • Support Staff

May 26, 2016 at 9:20 am

I’m afraid replacing the WordPress files and/or changing WordPress debug settings isn’t going to fix this.

Can you make sure your WordPress site can write to custom tables? Here’s a link to the applicable WordPress codex article:

http://codex.wordpress.org/Hardening_WordPress#Restricting_Database_User_Privileges


williamvw7788

May 26, 2016 at 10:30 am

sorry Would you tell me where to edit the MySQL/MariaDB database privileges
SELECT, INSERT, UPDATE and DELETE.


williamvw7788

May 26, 2016 at 10:57 am

The database user does have full permissions so that would not prevent the user from creating a database table.
so WordPress site can write to custom tables


Josh

  • Support Staff

May 26, 2016 at 12:21 pm

Thanks for checking. Can you check to see if your database has an _esp_state table? If it does, is there any data in it?


williamvw7788

May 26, 2016 at 4:17 pm

not find _esp_state table


Tony

  • Support Staff

May 27, 2016 at 4:01 am

Just to be clear, the table will be {prefix}_esp_state

{prefix}_ is often just ‘wp_’ so the table would be wp_esp_state but it can be anything at the begging, the important part is esp_state.

If you do not have a esp_state table at all in the database then somehow it has been removed, however EE checks for all of its tables and will re-create them if they are missing.

For example here is the table in one of my test sites – http://take.ms/Got0A

If I drop that table completely – http://take.ms/3HC4Q

It has now been removed from the database – http://take.ms/61Oj4

However if I then re-visit Event Espresso -> General Settings.

wp_esp_state is regenerated within the database after the fatal error is thrown – http://take.ms/qRUeW

So it seems something is preventing EE from re-creating the table on your server.


williamvw7788

May 27, 2016 at 12:52 pm

Thanks Tony, I find the wp_esp_state in my database.
You are right maybe something is preventing EE from re-creating the table on server. but how to find it and fix it?


Josh

  • Support Staff

May 27, 2016 at 1:31 pm

Your host might be able to help find out why the tables can’t be written to.


williamvw7788

May 29, 2016 at 8:54 am

Ohh, Godaddy also can’t fix it


Tony

  • Support Staff

May 31, 2016 at 4:07 am

Thanks Tony, I find the wp_esp_state in my database.

You did or did not find that table?

If that table exists does it have any data within the table?

Ohh, Godaddy also can’t fix it

What did GoDaddy say about the issue?

If EE cant not create/alter tables within the database it will be due to a server config issue.


williamvw7788

May 31, 2016 at 7:35 am

I make sure wp_esp_state in my database,this is state table.
Godaddy just say everything is working.


williamvw7788

May 31, 2016 at 7:49 am

do you think this issue has come WordPress of jquery version.


Tony

  • Support Staff

May 31, 2016 at 10:36 am

So the table is there, ok, can you answer this question please:

If that table exists does it have any data within the table?

As in, does wp_esp_state have anything within it or is it empty?

do you think this issue has come WordPress of jquery version.

No.

This seems to be an issue with reading/writing data to the database which does not use jQuery.


williamvw7788

June 1, 2016 at 8:20 pm

wp_esp_state in my database,this is states names


Tony

  • Support Staff

June 2, 2016 at 9:19 am

We need to take a look within your database to confirm the tables are setup correctly. As you will not provide FTP access we will not install any plugins on your site.

So can you either install the Adminer plugin so we can take a look within the database, or provide access to some other tool we can use to view the database for this site, whatever that may be.


williamvw7788

June 6, 2016 at 1:49 pm

I after update WordPress there have a massage:
Call to a member function name() on a non-object in /home/cc/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Form_Fields.helper.php on line 1271


Josh

  • Support Staff

June 6, 2016 at 1:57 pm

Can you install the Adminer plugin so we can take a look within the database?


williamvw7788

June 6, 2016 at 6:26 pm

I don’t know how to do that


Tony

  • Support Staff

June 7, 2016 at 6:09 am

You can do that within:

Dashboard -> Plugins -> Add new.

Search for ‘Adminer’ and install the plugin – http://take.ms/nS0k5


williamvw7788

June 7, 2016 at 7:39 am

Josh, Already install ‘Adminer’ thanks a lot


Josh

  • Support Staff

June 8, 2016 at 8:21 am

Okay it’s fixed now.


williamvw7788

June 8, 2016 at 3:15 pm

Great Josh,thanks so much!

The support post ‘Fatal error on EE4’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso