Event date not displaying on event page

Permalink Browser Info Environment
I select the event page from within calendar and I get to a new page. I get and <h1>Event Title>

<p><span class="event-description"></span></p>


but I get no event date within the page

running
concrete - 5.4.5
Calendar - 1.3.4

Type: Discussion
Status: New
wavemedia
View Replies:
andrew replied on at Permalink Reply
andrew
Do you have a page named calendar_event.php in your theme? If so, make sure that it contains <?=$event->getDateString()?> somewhere in it.

If you don't, then it should be using the calendar_event.php file found in packages/calendar/page_types/calendar_event.php, which should contain this string. Does it? If you look in your page is there an empty DIV after your h1 tag ?
wavemedia replied on at Permalink Reply
wavemedia
I am running a theme, but the calendar is installed separately within the packages folder. I do see the calendar_event.php you speak of, and yes it does include <div><?php echo $event->getDateString();?></div>

but it doesnt print out anything. I add dummy html text within the tags and it doesnt print out anything to my pages, as though this page isnt the page printing out the request.
wavemedia replied on at Permalink Reply
wavemedia
empty
wavemedia replied on at Permalink Reply
wavemedia
I installed a calendar_event.php file to my theme and now I am able to display a date, but the date is December 31, 1969, 4:00 pm for all events. So it must not be reading something correctly.

Im not sure what i have to modify on my pages, themes, settings in order to get it to display a valid date.
andrew replied on at Permalink Reply
andrew
If you edit your event and look at its properties, does it have a start and end date?
wavemedia replied on at Permalink Reply
wavemedia
I do get a event start and end date in the event page properties page. Here is a link to my Calendar page in actionhttp://c5.westop.org/eaop/about/events-calendar/...... I also built a mini 3 event side calendar for all other non calendar pages as seen onhttp://c5.westop.org/eaop/

So the dates for the events are there, but somehow the individual event page is not pulling the data correctly.
andrew replied on at Permalink Reply
andrew
Testing 5.4.1 with the latest calendar doesn't duplicate this problem. I can't really know more unless I have access to the site.
wavemedia replied on at Permalink Reply
wavemedia
which access in needed ftp or concrete 5 login
wavemedia replied on at Permalink Reply
wavemedia
This is what we did to get calendar to work.

Removing "parent" from line7 of site/packages/calendar/blocks/controller/page_types/calendar_event.php

$ce = CalendarEvent::getByID($c->getCollectionParentID(), 'ACTIVE');

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.