'null' page title when browsing through events

Home Forums Calendar Products Events Calendar PRO 'null' page title when browsing through events

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #116678
    tobias
    Participant

    Hi again,

    I’ve encountered another small problem. Sometimes – unfortunately I can’t reproduce it now – the page title in my browser’s window dynamically changes to “null” or “(null)” when using the AJAX pagination (“next events”/”previous events”). It does not seem to correlate with the (properly displayed) content of the list itself. Any idea where that might come from?

    Best regards,
    Tobias

    #116751
    Casey
    Participant

    tobias,
    Thanks for getting in touch! If I’m remembering correctly, you were previously customizing your title tags using a snippet from this thread. Is that still the case? If so, then it’s highly likely that that’s what is causing the ‘null’ issue. Can you try temporarily removing that customization to see if you’re still having this issue? Thanks! πŸ™‚

    -Casey-

    #120735
    Casey
    Participant

    I just wanted to follow up and see if you’re all set here or if you still have further questions. Just let me know if you need further help or if I should go ahead and close out this thread. Thanks! πŸ™‚

    -Casey-

    #122308
    tobias
    Participant

    Hi Casey,

    sorry for not replying so far. Actually, I’m experiencing another problem right now that might be related – but I haven’t figured out yet what exactly is happening and if it’s probably my fault. πŸ˜‰ Because of that, I wasn’t able to check your suggestion on this matter here. I’ll get back to you as soon as possible.

    Thanks,
    Tobias

    #122359
    Casey
    Participant

    Ok great. Just let me know if you need further help, and I’d be glad to assist. Thanks! πŸ™‚

    -Casey-

    #122370
    tobias
    Participant

    Hi Casey,

    in the meantime, I got rid of the other problem I mentioned and checked out your hint on our earlier thread. The page title modification in functions.php works fine, and all four if-cases (lines 24 to 35 in the GitHub code you sent me) for list views are up and running. Other cases do not apply on list views, apparently. And if I remove the filter, the “null” problem stays. So that doesn’t seem to be the problem here.

    In fact, the “null” page title only occurs when I’m using the event pagination at the bottom of a list. When loading the list view, the page title set in the functions.php filter shows up correctly. When clicking on the next or past events link, AJAX reloads the list while staying on the page, but it also sets the page title to “null”. If I click back to the “present events” (the ones that are loaded by default), “null” stays. Only if I remove the “?action=tribe_list&tribe_paged=1” suffix from the URL and reload, the page title is restored to its correct form.

    Any idea where this is coming from? And is there any way for me to avoid it?

    Best,
    Tobias

    #122819
    Casey
    Participant

    Tobias,
    I just tried to investigate the issue on your site further, but it looks like it’s temporarily down for maintenance (screenshot). Could you let me know when the site is back up and available to review? Thanks! πŸ™‚

    -Casey-

    #123186
    tobias
    Participant

    Hi Casey,

    actually, the site is blocked until it’s ready to go live. Just for you, we opened it now. πŸ˜‰ If you could take a look, that would be great. As you see, we customized the plugin a lot – and as you see, the site is in German only.

    The problem occurs when you hover on the second menu entry, “Wann hast du Zeit?”, then selecting the second sub-entry “Liste”. Now click on “NΓ€chste Veranstaltungen” and see what happens. All the sub-entries of the third menu, “Was willst du erleben?”, are category list views, too, with the same problem.

    Thanks for your help,
    Tobias

    #123300
    Casey
    Participant

    Tobias,
    Can you try temporarily reverting to the default 2013 theme to see if this issue persists? I suspect that this is an issue with the customizations you made in your theme, but just want to narrow it down a bit before troubleshooting further. Give that a try and let me know what you discover.

    Thanks! πŸ™‚

    -Casey-

    #125176
    Casey
    Participant

    Tobias,
    I just wanted to follow up and see if you’re all set here or if you still have further questions. Just let me know if you need further help or if I should go ahead and close out this thread. Thanks! πŸ™‚

    -Casey-

    #125264
    tobias
    Participant

    Hi Casey,

    after a while of trying stuff out, I was able to narrow down the problem. Basically, it was the absence of the “List Header” and “Header Navigation” code parts in list.php that caused the “null”. I threw them out because we don’t really need them, but obviously, they pull some routines related to the page title tag. Funny enough, it seems to be the presence of the DIV “tribe-events-header” that makes the difference, and not the calls of the various php actions (other than I would have suggested). I tried changing all the lines one by one, and only without the DIV, title will be set to “null”. It’s now back in our code, made invisible, so the title works correctly again.

    BTW: Without the list being navigated, the error was “masked” by the title tag routine of our template. Only when the AJAX navigation changed the list, title tag management was handed over to the plugin, which cause the strange effect that the title was okay at first load, but not anymore after using the list navigation. I threw out that part of the template routine, so the plugin can handle all title tags for all views, no matter if navigated or not. And in combination with the solution mentioned above, it all works smoothly now.

    Thanks again for your effort!
    Tobias

    #125854
    Casey
    Participant

    Great! Thanks for confirming that this got you sorted. Since it looks like you’re all set, I’m going to mark this thread “Answered” and close it out.

    By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://wordpress.org/support/view/plugin-reviews/the-events-calendar?filter=5

    Thanks in advance. πŸ™‚

    Cheers,
    Casey

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘'null' page title when browsing through events’ is closed to new replies.