Edits in pro/photo/single-event.php and pro/photo/loop.php break the calendar

Home Forums Calendar Products Events Calendar PRO Edits in pro/photo/single-event.php and pro/photo/loop.php break the calendar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1216525
    Daan
    Participant

    Hi there,

    My previously working changes in pro/photo/single-event.php now break the calendar, the page remains empty, though other views do work.
    I only added a few spans, so nothing should be breaking.
    Any ideas?

    Regards,
    Daan

    #1216713
    George
    Participant

    Hi Daan,

    It’s indeed true that customizations to old versions of code may not work in new versions of code.

    This is an inherent fact about customizations, and is one of the reasons we do not provide any assistance with or support for customizations. Please read here to learn about what we can help with in terms of product support → https://theeventscalendar.com/knowledgebase/what-support-is-provided-for-license-holders/

    In other words, you are ultimately responsible for creating, testing, fixing, and maintaining your customizations, and we cannot guarantee a solution to your issues here.


    With all of this being said, I would be happy to at least try taking a quick look at your custom coding. I may be able to identify an obvious factor in the code that is causing issues, and may be able to recommend a fix.

    Again, such a resolution is not guaranteed, and is unlikely—but I’m happy to try! 😀

    To help me help you out on this, please copy and paste the full, un-edited version of your custom pro/photo/single-event.php file into a Gist at http://gist.github.com

    Then share a link to that Gist here and I will take a look, and will try to identify the culprit.

    Thanks!
    George

    #1217255
    Daan
    Participant

    Hi George,
    Thanks for taking some time.

    https://gist.github.com/DaanDirk/ed158f4d8552930d8ef713313c3c2172
    Like I said. Just added a few spans. Look at line 31:

    <span class="tentoonstelling"></span><span class="lezing cursus"></span><span class="dada"></span><span class="bloemen"></span><span class="collectie"></span><span class="kinderen"></span><span class="PietMondriaan"></span><span class="BartvanderLeck"></span><span class="TheovanDoesburg"></span><span class="Theater"></span><a class="tribe-event-url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title() ?>" rel="bookmark">

    Regards,
    Daan

    #1217260
    Daan
    Participant

    Hi George.
    Or view it like this:

    <span class="tentoonstelling"></span>
    <span class="lezing cursus"></span>
    <span class="dada"></span>
    <span class="bloemen"></span>
    <span class="collectie"></span>
    <span class="kinderen"></span>
    <span class="PietMondriaan"></span>
    <span class="BartvanderLeck"></span>
    <span class="TheovanDoesburg"></span>
    <span class="Theater"></span>
    <a class="tribe-event-url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title() ?>" rel="bookmark">

    That last bit was already there.
    Also, a few spans works fine, but after a certain about of characters it just fails.
    It feels like there is a bottleneck somewhere. Can you tell me where that originates, or what number of characters the cap is at?

    because this reduced version does work:

    <span class="tt"></span><span class="lezing cursus"></span><span class="dada"></span><span class="bloemen"></span><span class="kinderen"></span><span class="pm"></span><span class="Theater"></span>
    			<a class="tribe-event-url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title() ?>" rel="bookmark">

    Happy I solved it, for now, but a bit annoyed at the randomness and the loss of time.
    All in all, I feel strongly neutral 😐 https://www.youtube.com/watch?v=ussCHoQttyQ

    Regards,
    Daan

    #1217944
    George
    Participant

    Weird stuff, Daan. I’m glad you solved it for now—I will close this thread. If issues arise again though, open a new thread any time!

    Thanks,
    George

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Edits in pro/photo/single-event.php and pro/photo/loop.php break the calendar’ is closed to new replies.