Title: Page crashes when shortcode is added
Last modified: September 18, 2018

---

# Page crashes when shortcode is added

 *  Resolved [dmjarvis](https://wordpress.org/support/users/dmjarvis/)
 * (@dmjarvis)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-crashes-when-shortcode-is-added/)
 * I’ve added the ICS Calendar plugin to a site, and have a valid .ics file to import.
   When I add the shortcode with the default fields, I get some page output. However,
   when I add the full .ics url the page crashes when I click ‘Save’ I get an http
   error 500. Shortcode is as below…
 * [ics_calendar url=”[https://calendar.google.com/calendar/ical/pumauk2000%40gmail.com/public/basic.ics&#8221](https://calendar.google.com/calendar/ical/pumauk2000%40gmail.com/public/basic.ics&#8221);
   title=”DISPLAY_TITLE” description=”DISPLAY_DESCRIPTION”]

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

 *  Plugin Author [Room 34 Creative Services, LLC](https://wordpress.org/support/users/room34/)
 * (@room34)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-crashes-when-shortcode-is-added/#post-10707592)
 * Hi… thanks for your feedback.
 * I tried your code on a test site, and it functioned properly. (I had to convert
   the smart quotes to straight quotes, but I think that may have been introduced
   when you pasted the shortcode in here. But be sure to check your site to see 
   that it is not using smart quotes in the shortcode.)
 * Another possibility is that your server has the allow_url_fopen PHP setting turned
   off. This is a requirement for the plugin.
 * I’ve just rolled out version 1.2.0 of the plugin which addresses various issues.
   Please download the new version and see if it helps. Let me know what you find.
   Thanks!
 *  [georg77](https://wordpress.org/support/users/georg77/)
 * (@georg77)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/page-crashes-when-shortcode-is-added/#post-11048901)
 * Hi and thanks for making this – it’s really helpful!
 * I seem to have a similar issue though: when adding the shortcode to a page, it
   renders only to the point of the shortcode. So the page is basically just a header,
   the rest is blank/white. The shortcode seems to be ok, because it works totally
   fine on a different site.
 * The website is hosted on 1&1, allow_url_fopen is on (but allow_url_include is
   off).
 * Any ideas what could cause the issue?
 * Thanks in advance, kind regards
 * George
 *  Plugin Author [Room 34 Creative Services, LLC](https://wordpress.org/support/users/room34/)
 * (@room34)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/page-crashes-when-shortcode-is-added/#post-11048922)
 * You should only need allow_url_fopen, not allow_url_include, so I don’t think
   that’s the problem.
 * My gut reaction is that the 1&1 server might be running an older version of PHP
   that doesn’t support one of the functions I’m using. Can you find out which version
   of PHP you’re using?
 * Beyond that, I’d suggest going into your wp-config.php file and temporarily setting
   the WP_DEBUG constant to true, then load the page. It should display an error
   message that will help us pinpoint the issue.
 * Thanks!
 *  [georg77](https://wordpress.org/support/users/georg77/)
 * (@georg77)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/page-crashes-when-shortcode-is-added/#post-11048935)
 * I just activated allow_url_include via php.ini, but this doesn’t solve the issue
   either.
 *  [georg77](https://wordpress.org/support/users/georg77/)
 * (@georg77)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/page-crashes-when-shortcode-is-added/#post-11049003)
 * Yes!!! That was it – the site was still running on php 5.6. I set it to 7.2 and
   now it’s running smoothly. Thanks for the super fast support and a great plugin!
 * Regards
 * Georg
 *  Plugin Author [Room 34 Creative Services, LLC](https://wordpress.org/support/users/room34/)
 * (@room34)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/page-crashes-when-shortcode-is-added/#post-11049035)
 * Thanks… I’m glad to hear you were able to resolve it. Even though I _thought_
   the plugin should work on 5.6… but I’m only running 7 on my testing environments,
   so maybe I used a 7-only function without realizing it.
 * Would you mind temporarily switching back to 5.6 and turning on WP_DEBUG in wp-
   config.php, and then letting me know what the error message is?
 * Thanks!
 *  [georg77](https://wordpress.org/support/users/georg77/)
 * (@georg77)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/page-crashes-when-shortcode-is-added/#post-11049132)
 * Ooops, sorry must have been php 5.5.
    So I reset it to php 5.5, switched on debugging
   and now it gets weird: the page loads fine with no errors shown.
 * I don’t get it…
 *  Plugin Author [Room 34 Creative Services, LLC](https://wordpress.org/support/users/room34/)
 * (@room34)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/page-crashes-when-shortcode-is-added/#post-11049187)
 * Hard to say… there might be some kind of server-side caching that was causing
   the problem and it got purged when you switched versions.
 * Anyway, if you don’t mind, I’ll mark this issue as resolved. If anything else
   comes up feel free to open another thread. Thanks!

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

The topic ‘Page crashes when shortcode is added’ is closed to new replies.

 * ![](https://ps.w.org/ics-calendar/assets/icon.svg?rev=3427980)
 * [ICS Calendar](https://wordpress.org/plugins/ics-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ics-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ics-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/ics-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ics-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ics-calendar/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Room 34 Creative Services, LLC](https://wordpress.org/support/users/room34/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/page-crashes-when-shortcode-is-added/#post-11049187)
 * Status: resolved