Posted: 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 |
|
In Events Espresso setting(general setting) there can’t show the more info include choose country and state |
|
my website :http://www.creativeconnect.cc/ |
|
|
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? |
|
|
I never backup my data. Don’t worry about the events data.I can do it again. |
|
In Events Espresso setting(general setting) there can’t show the more info include choose country and state |
|
also can’t register now “This registration step could not be completed. Please refresh the page and try again.” |
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 |
|
|
Josh Thanks so mush for your help. |
|
I try re-installing the latest version again.But it still doesn’t show all general setting |
|
WordPress Version: |
Did you check the error log to see if there was a fatal error captured when the General Settings page loaded up? |
|
|
[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 |
|
error log only this |
|
|
|
I think if here any wrong about my Event Espresso License Key ? When I put in my Support License Key,here No response |
|
yesterday I also make a mistake, when I Reset Event Espresso Capabilities,all data cleaned |
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.
So did you click to reset your capabilities? This button – http://take.ms/wGghT |
|
|
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 |
|
Yes I did ,I Reset Event Espresso Capabilities |
|
Why in general setting there can’t edit ? there can’t show the more info include choose country and state |
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: |
|
|
Omg,I did everything follow you.but still can’t show full general setting. |
|
Is there have anyway fine detail reason? |
|
If the reason is put the code:define( ‘EE_DROP_BAD_TABLES’, TRUE); to the site’s wp-config.php ? |
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.
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? |
|
|
I update PHP.But never manually editing the database |
|
I already removed ( ‘EE_DROP_BAD_TABLES’, TRUE);from the site’s wp-config.php |
|
haven’t any error info shown |
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 update the file, then you reactivate Event Espresso.
|
|
|
so sorry I put 4.8.44.rc.001 in espresso.php,but still doesn’t work |
|
would you help me chick my wp-config.php ?maybe there find some wrong |
|
*redacted*/wp-config.php |
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. |
|
|
Hi Josh |
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. |
|
|
Is there have another way to fix it? |
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? |
|
|
Can i send to you wp-config.php code as massage? |
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. |
|
|
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 |
|
got a error,how to fix it? |
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? |
|
|
I just Replace WordPress files,but still can’t edit general setting |
|
also have error massage |
|
When i put in this code.the error massage is gone // Enable Debug logging to the /wp-content/debug.log file // Disable display of errors and warnings // Use dev versions of core JS and CSS files (only needed if you are modifying these core files) |
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 |
|
|
sorry Would you tell me where to edit the MySQL/MariaDB database privileges |
|
The database user does have full permissions so that would not prevent the user from creating a database table. |
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? |
|
|
not find _esp_state table |
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. |
|
|
Thanks Tony, I find the wp_esp_state in my database. |
Your host might be able to help find out why the tables can’t be written to. |
|
|
Ohh, Godaddy also can’t fix it |
You did or did not find that table? If that table exists does it have any data within the table?
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. |
|
|
I make sure wp_esp_state in my database,this is state table. |
|
do you think this issue has come WordPress of jquery version. |
So the table is there, ok, can you answer this question please:
As in, does wp_esp_state have anything within it or is it empty?
No. This seems to be an issue with reading/writing data to the database which does not use jQuery. |
|
|
wp_esp_state in my database,this is states names |
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. |
|
|
I after update WordPress there have a massage: |
Can you install the Adminer plugin so we can take a look within the database? |
|
|
I don’t know how to do that |
You can do that within: Dashboard -> Plugins -> Add new. Search for ‘Adminer’ and install the plugin – http://take.ms/nS0k5 |
|
|
Josh, Already install ‘Adminer’ thanks a lot |
Okay it’s fixed now. |
|
|
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.