Home › Forums › Calendar Products › Events Calendar PRO › 'null' page title when browsing through events
- This topic has 11 replies, 2 voices, and was last updated 12 years ago by
Casey.
-
AuthorPosts
-
March 10, 2014 at 12:29 am #116678
tobias
ParticipantHi 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,
TobiasMarch 10, 2014 at 6:53 am #116751Casey
Participanttobias,
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-
March 18, 2014 at 11:25 am #120735Casey
ParticipantI 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-
March 24, 2014 at 2:16 am #122308tobias
ParticipantHi 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,
TobiasMarch 24, 2014 at 9:13 am #122359Casey
ParticipantOk great. Just let me know if you need further help, and I’d be glad to assist. Thanks! π
-Casey-
March 24, 2014 at 10:28 am #122370tobias
ParticipantHi 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,
TobiasMarch 25, 2014 at 5:50 am #122819Casey
ParticipantTobias,
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-
March 25, 2014 at 3:03 pm #123186tobias
ParticipantHi 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,
TobiasMarch 26, 2014 at 5:57 am #123300Casey
ParticipantTobias,
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-
March 31, 2014 at 7:11 am #125176Casey
ParticipantTobias,
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-
March 31, 2014 at 7:54 am #125264tobias
ParticipantHi 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!
TobiasMarch 31, 2014 at 9:00 pm #125854Casey
ParticipantGreat! 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 -
AuthorPosts
- The topic ‘'null' page title when browsing through events’ is closed to new replies.
