Problem with overriding files in views/meta/*.php

Home Forums Ticket Products Event Tickets Plus Problem with overriding files in views/meta/*.php

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1223464
    Gabriel
    Participant

    I am currently trying to override the field render files found in /event-ticket-plus/src/views/meta/*.php and this is not possible due to the fact that they are included via a static include path.

    Using the latest version of the plugin (4.4 premium and 4.4.0.1 core)

    The file /event-tickets-plus/src/Tribe/Meta/Field/Abstract_Field.php on line 222 includes the file from the plugin base path without checking if the user overrides it.

    222: include Tribe__Tickets_Plus__Main::instance()->plugin_path . "src/views/meta/{$template}";

    The correct way (probably) is:
    `222: include Tribe__Tickets_Plus__Main::instance()->get_template_hierarchy( “meta/{$template}” );

    Is there a way around this without modifying core files?

    Thank you!

    #1224024
    George
    Participant

    I’m really sorry to see this, @Morten. I believe that your assessment here is correct, and I have just filed an official bug ticket so that our developers can review this and get working on a fix.

    If this is indeed a bug—which it seems to be—there’s unfortunately no way to fix this without modifying the core files directly. 🙁

    I will mark this thread “Pending Fix” and post updates about this bug and if/when it will be fixed.

    Please let me know if there are any other issues or questions I can try to help with in the meantime!

    — George

    #1329132
    Victor
    Member

    Hello Morten!

    Just wanted to share with you that a new maintenance release (for the Week of 24 July 2017) is out, including a fix for this issue 🙂

    Find out more about this release → https://theeventscalendar.com/maintenance-release-week-24-july-2017/

    Please update the plugins and let us know if the fix works for your site.

    Best,
    Victor

    #1339185
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Problem with overriding files in views/meta/*.php’ is closed to new replies.