Support

Home Forums Event Espresso Premium Fatal PHP Error when adding Event

Fatal PHP Error when adding Event

Posted: February 18, 2015 at 4:44 am


Lyles Sutherland

February 18, 2015 at 4:44 am

Hi there,
Wordpress 4.1, EventEspresso 4.6.9.p, no Add-ons yet installed. Brand new Installation.
Out of the box with the TwentyFifteen theme, no other plugins.

Fatal error: Call to a member function base_type() on null in C:\Users\Sam\Projects\www.las.com\httpdocs\wp-content\plugins\event-espresso-core-reg\core\db_classes\EE_Taxes.class.php on line 78

I see the above when creating my first event, I added 3 types of ticket with various Prices. However, after deleting the event and saving without adding any tickets I did not receive the error. I also added a basic ticket with a price of “54” and got the above error once more. This breaks the editing functionality for events. As a side effect, after the PHP error the text in the WSIWYG editor is coloured white so it looks as though it has been deleted.

http://i.imgur.com/Cx007Ss.png see screenshot for details of the test ticket I added. I added 1 to the #EventTimes field in case that was also required. Also, I added a minimum quantity of 0 and a maximum quantity of 10 to test whether this was the cause, no luck.

Any ideas?

Thanks,
Sam


Tony

  • Support Staff

February 18, 2015 at 5:09 am

Hi Sam,

This thread, combined with you other here:

https://eventespresso.com/topic/php-error-on-general-settings-countries/

Would suggest something has gone wrong with the EE installation.

As this is a new install, my recommendation would be to first create a site backup (if any other data is within WP such as pages, posts etc if you have setup a new site to test EE4 then this isn’t needed), re-download Event Espresso 4 from your Account Page, de-activate and delete EE4, re-upload and activate.

Then go to Event Espresso -> Maintenance -> Reset/Delete Data -> Permanently Delete ALL Event Espresso Tables and Data – http://take.ms/UPfYq

This will completely remove all traces of Event Espresso from the database and start fresh, it will also de-activate Event Espresso.

Once you re-activate check both the issue reported here and the countries issue reported in your other thread, are they still present?


Lyles Sutherland

February 18, 2015 at 6:37 am

Hi Tony,

Thanks for getting back to me. I did as instructed however no luck as the errors still persist. Just as a sanity check I created a brand new blank wordpress install and installed the latest EE plugin and it seems to be working as intended.

It does mean that I will have to migrate the posts etc from the site I was working on to the new install. Not sure what the possible differences are as they are both running the TwentyFifteen Theme with only EventEspresso installed and I did Permanently Delete ALL EE Tables on both. Something may have just gone wrong with the initial test site setup.

For the moment I can continue to work on the events before I attempt to migrate the existing WordPress data.

Please feel free to close both support tickets (this and the one regarding countries) as both seem to be now working.

Thanks for your help.
Sam


Dean

February 18, 2015 at 6:53 am

Thanks for letting us know!

The support post ‘Fatal PHP Error when adding Event’ 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