• Resolved StickyPixels

    (@stickypixels)


    Just wanted to let you know that after updating to version 2.0.71 some of my pages stopped working properly. So I had to revert to 2.0.68 in order to get them working again.
    I’m currently developing on a local machine, so unfortunately I can’t post any link. I’m using a child theme based on BlankSlate.
    I’ll try to give some details, hope that will provide some insight.

    The weird thing is that it concerns just two out of three pages containing EME shortcodes (‘event history’ and ‘event list in certain category’).
    All three pages use the same template and setup, but the two that stopped working are child pages from the one that still worked. Changing or removing the shortcode didn’t help.
    Also the bug (?) stopped the pages from loading beyond the shortcode: background images are loaded after the page content, these disappeared as well.
    When I deactivated EME plugin, both pages appeared with the text ‘This page is used by EME [etc]’. But that’s not how I set things up, these pages are in no way connected (AFAIK).

    I’m sorry I can’t give any more insight right now, but I just thought I’d give you a heads up. I’ll let you know when I have more info.

    cheers, Leo

Viewing 15 replies - 1 through 15 (of 20 total)
  • 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.

    Thread Starter StickyPixels

    (@stickypixels)

    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.

    Thread Starter StickyPixels

    (@stickypixels)

    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

    Thread Starter StickyPixels

    (@stickypixels)

    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 6 years, 3 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.

    Thread Starter StickyPixels

    (@stickypixels)

    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 …

    Thread Starter StickyPixels

    (@stickypixels)

    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:
    https://tt-theater.nl/voorstellingen/toneelhistorie/
    https://tt-theater.nl/voorstellingen/ttips/ (does currently not contain events)

    These are both child pages from https://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 …

    Thread Starter StickyPixels

    (@stickypixels)

    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.

    Thread Starter StickyPixels

    (@stickypixels)

    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

    Thread Starter StickyPixels

    (@stickypixels)

    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 …

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Latest update breaks pages’ is closed to new replies.