Title: Debugging Template
Last modified: May 20, 2018

---

# Debugging Template

 *  Resolved [billsall54](https://wordpress.org/support/users/billsall54/)
 * (@billsall54)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/debugging-template/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdebugging-template%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/debugging-template/#post-10306767)
 * did you already check your php logs? trying the link above or [https://slasystemstest.com/wp/events/events.ics](https://slasystemstest.com/wp/events/events.ics)
   we are getting
 * “This site can’t be reached”
 *  Thread Starter [billsall54](https://wordpress.org/support/users/billsall54/)
 * (@billsall54)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/debugging-template/#post-10310861)
 * well, the ‘file’ exists because I’m able to post to gmail calendar. My permalink
   structure is: [http://slasystemstest.com/wp/sample-post/](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](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/debugging-template/#post-10348637)
 * 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.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [debugging](https://wordpress.org/support/topic-tag/debugging/)
 * [printf](https://wordpress.org/support/topic-tag/printf/)

 * 3 replies
 * 2 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/debugging-template/#post-10348637)
 * Status: resolved