Support » Plugin: Events Manager » Debugging Template

  • Resolved billsall54

    (@billsall54)


    I’ve made modification to ical.php and I am not able to debug. Although the calendar is added to my google calendar, no events are posted (if I run this without the modified ical.php template, the events are posted). Therefore, I understand that there is something wrong with the modification I’ve put into the ical.php.

    I’ve been in touch with my hosting company, and they suggested that I look 1) in the debug.log file to find the error – yet no debug.log file exists (I’m not sure an error is being generated), and 2) the printf command I’ve placed in the modified ical.php – they cannot tell me where I should be able to find that output. Their answer is to 1) ask you why the debug.log file is not created and where the printf output is going and/or 2) step back the level of php.

    I’m trying to add a link to the actual event in the event description so that anyone can get back to the detailed event on the original calendar.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    did you already check your php logs? trying the link above or https://slasystemstest.com/wp/events/events.ics we are getting

    “This site can’t be reached”

    Thread Starter billsall54

    (@billsall54)

    well, the ‘file’ exists because I’m able to post to gmail calendar. My permalink structure is: http://slasystemstest.com/wp/sample-post/ (events are treated like ‘posts’) – and I see entries in the database.

    When I say the ‘page’I need help with – that is not exactly correct. I use that link as the url to add the events to my google calendar.

    I am not exactly sure how this works, but my guess is that there is an interchange of sorts with Google Calendar (a request from google calendar) to provide the évents.ics file. The ical.php template is invoked and it builds the file from the database of events and sends in response to the request. I don’t believe there is a physical events.ics file – at least I can’t find one!

    I have been modifying the ical.php (within the child theme) and put in writes to capture the results of my code.

    I have intentionally created a php error (used invalid variable name) and am trying to find the error on the php error log. Can’t find the error log, which implies that no error is being thrown. (This is highly unusualy, since 2 days ago, an error was thrown for this same problem.

    Further, the writes I’ve put in are not writing anywhere.

    I can continue to add the calendar via URL, but it’s picking up an old calendar that does not show the new events I’ve created today and yesterday.

    This leads me to think that some old copy of the data is being picked up and that the ical.php file is not being invoked.

    Is there something within the Events-Manager logic to explain this? Is there some memory area I’m supposed to clear to force it to run the template? I’ve been beating myself up for 3 days trying to figure this out… Making me feel pretty stupid.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    I tried this on our test server and seems to be working fine; are you using any caching plugin ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Debugging Template’ is closed to new replies.