Home Forums Event Espresso Premium [bug] two small bugs + fixes

[bug] two small bugs + fixes

Posted: May 10, 2018 at 1:44 pm


May 10, 2018 at 1:44 pm


Using version 4.9.61.p:

Bug #1:

in the file event-espresso-core-reg/core/db_models/EEM_CPT_Base.model.php
on line 2, it reads:
define('EE_Event_Category_Taxonomy', 'espresso_event_category');

and it should be, as used everywhere else in EE:
define('EE_Event_Category_Taxonomy', 'espresso_event_categories');

The above is problematic only in the same file, where it’s used in the add_event_category() and remove_event_category() methods.

Bug #2:

in the same file on line 323, it reads:
'count' => 1,

This throws an EE_Error Exception:
Invalid field (count) passed to constructor of EE_Term_Taxonomy. Allowed fields are :term_taxonomy_id, term_id, taxonomy, description, parent, term_count

as the error indicates, it should be:
'term_count' => 1,

according to the model, in file event-espresso-core-reg/core/db_models/EEM_Term_Taxonomy.model.php
on line 66:
'term_count' => new EE_Integer_Field(


  • Support Staff

May 10, 2018 at 1:51 pm

Hi TopOnline,

Thanks so much for reporting this. If you’d like to submit a pull request with your suggested fixes, you are invited to make that happen via our Github repository:

If not, I’ll be sure to report these as issues there. In the future if you find anything else that needs fixing you’re welcome to post an issue on the public Github repo.


May 10, 2018 at 2:02 pm

Please report them, I’ll post as an issue on the Github repo next time. Thanks.


  • Support Staff

May 10, 2018 at 2:13 pm

done and done

Thanks again for your help!

The support post ‘[bug] two small bugs + fixes’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 10 months, 1 week ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!