• Resolved nointelligentlife

    (@nointelligentlife)


    Hi, sorry run into another problem (please see my previous post for environment details – the staging site is a copy of the live site). The Google Search Console is throwing errors on the web page where I list events. I use the Structured Data Testing tool https://search.google.com/structured-data/testing-tool/ to help display the error detail. It’s the same for each event in the list – the name of the event is missing. Other data is there – description, start date, end date but no name.
    Actually you will also see the @id field is wrong it shows (for one of the events) https://staging.acemonmouth.org/festival/event-4902 which is not the correct url for this event. The id is 4092 but the correct url is https://staging.acemonmouth.org/festival/political-debate
    Also its creating data of @type = Event from the page data, calling it Festival and then using the publication date as the start and end dates. I don’t want this!!
    Hope you can help me.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nointelligentlife

    (@nointelligentlife)

    I have fixed the two errors by hacking the ectbe-widget.php file. The meta tag for the name of the event is missing. As you loop through each event you assign a variable to the event title
    $event_title=$event[‘title’];
    So on line 846 which begins
    $venue_details_html = ‘<span class=”ectbe-icon”>……
    I added the meta tag into the start of the string
    <meta itemprop=”name” content=”‘.$event_title.'”>
    Now that’s not the right place to put it, but it fixes the error.
    The second problem is caused by lines 806-808 which create a JSON-LD data structure for the page. I have no idea why this is included so I commented those 3 lines out. That eliminates the error.
    The url for the event is still wrong – it is using “event-” + id instead of using the event title. It doesn’t cause an error but it does need to be fixed.

    Plugin Support Jyoti Bhandari

    (@jyoti197)

    Hi @nointelligentlif,

    Sorry, for the delay in response.
    Thanks for spotting an issue we will fix this issue in an upcoming version.

    Thanks & Regards

    Thread Starter nointelligentlife

    (@nointelligentlife)

    Fab. Thanks, I look forward to the update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Structured Data giving errors’ is closed to new replies.