Plugin Author
Franky
(@liedekef)
I can’t say I heard anything similar so far.
On several sites I manage, all is still ok.
Hearing the description about an empty page, seems to be some html-error. Run the resulting html through an online html-validator (https://validator.w3.org/ is one) and see if that returns anything specific.
For now I’ll mark this resolved, but feel free to post your findings.
Thanks for your instant reply. I’ve done some more exploring, and narrowed it down to the pages being child pages! As soon as I make them top-level pages everything works fine!
Maybe this helps? I’ll also have a look at the differences between both EME releases, maybe that will clarify anything. Unfortunately I’m not very proficient in PHP…
Plugin Author
Franky
(@liedekef)
I remember that some time ago someone mentioned somthing similar. Maybe a theme thing then … I’ll see if I can reproduce it here
Plugin Author
Franky
(@liedekef)
I changed one page to a child page (so with a parent page): all still worked ok in twentyseventeen theme.
Thanks again, I have no doubt it may have something to do with my home made theme. 😉
I’ve been using the theme for years without problems, and because it happened after a relatively minor update of EME the cause shouldn’t be to hard to figure out, and I was about to clean up code anyway.
I’ll keep you posted.
Regards, Leo
Unfortunately, I’m still clueless… spent all morning testing but no improvement.
What I did so far:
– I tried four different themes (including default themes).
– Deactivated all other plugins.
– Upgraded to the latest WordPress 5.0.
But the problem persists!
Then I tried upgrading EME by replacing the plugin files one by one, and narrowed it down to four files. When replacing any of these the problem appeared:
eme_events.php
eme_functions.php
eme_locations.php
events-manager.php
The only other thing I can think of is a corrupted database, but when I downgrade to previous version of EME everything works fine again, so that really couldn’t be it, can it?
So I activated Debug in my wp-config file and got this message on the failing pages:
Notice: Undefined index: event_id in /Users/leo/Sites/htdocs/TTtheater/wp-content/plugins/events-made-easy/eme_functions.php on line 397
Hope any of this will shed some light. Thanks anyway for your time and effort.
cheers, Leo
PS: I forgot to mention earlier: What I’m getting on the faulty pages is a ‘page not found’. So it’s not a faulty page, but apparently something to do with a faulty path.
-
This reply was modified 7 years, 7 months ago by
StickyPixels.
Plugin Author
Franky
(@liedekef)
That’s weird … that line is in the function eme_events_url, and should always have an event_id (otherwise other issues might arise). And it only happens if the event has no slug (short url) …
I’ll try to reproduce that this evening.
Wow, that was quick again. 😉
I was still editing my last post, please re: my PS:
PS: I forgot to mention earlier: What I’m getting on the faulty pages is a ‘page not found’. So it’s not a faulty page, but apparently something to do with a faulty path.
So yes, it seems to have to do with the generated url somehow.
Plugin Author
Franky
(@liedekef)
Can you check the relevant event in the backend? See if has a slug? If not: just edit and press save again, then verify again.
And then click on “preview event” in the event overview, to see if that works …
It’s not one specific event. The affected pages should list events. They contain these shortcodes:
[eme_events category=1 scope=past order=DESC paging=1]
and
[eme_events notcategory=1 paging=1]
The live pages (with previous EME version installed, so still functional) are here:
http://tt-theater.nl/voorstellingen/toneelhistorie/
http://tt-theater.nl/voorstellingen/ttips/ (does currently not contain events)
These are both child pages from http://tt-theater.nl/voorstellingen/ (also empty)
Plugin Author
Franky
(@liedekef)
Ok, getting closer … the list of events of course needs an url for each event too. And it seems there’s an issue where the event_slug is not filled out for an event, so this results in a php notice. And that notice might prevent your page from showing correctly.
I’ll check where the call to eme_event_url happens, maybe that’s the base of the problem …
That makes sense, but on the other hand, the second shortcode does not generate any events (because there are no future events as yet), but still doesn’t appear.
AFAIK all events have url’s, but I’ll check.
I seem to have narrowed it down even more: it seems the problem is the parent page. Soon as I link the pages to another parent they show up fine.
No idea why this happens (maybe some database error in this specific page entry?), but at least this seems to be the way forward.
Thanks for all you efforts so far and your amazing plugin!
cheers, Leo
More precisely: it’s the slug! When I changed the slug for the new parent page to the same as the old one (‘voorstellingen’) the problem reappeared.
Plugin Author
Franky
(@liedekef)
Is the parent page the “master” event page (set in the EME settings)?
Because that might be causing the problem …