Support

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

[bug] two small bugs + fixes

Posted: May 10, 2018 at 1:44 pm


TopOnline

May 10, 2018 at 1:44 pm

Hello,

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(


Josh

  • 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:

https://github.com/eventespresso/event-espresso-core/pulls

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.


TopOnline

May 10, 2018 at 2:02 pm

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


Josh

  • 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.

Event Espresso