{"id":1179022,"date":"2016-10-19T06:54:19","date_gmt":"2016-10-19T13:54:19","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/"},"modified":"2016-10-19T06:54:19","modified_gmt":"2016-10-19T13:54:19","slug":"month-view-hitting-php-memory-limit","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/","title":{"rendered":"Month view hitting PHP memory limit"},"content":{"rendered":"<p>Hello &#8211; we&#8217;ve had a recurrence of the issue raised here:  https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-causing-php-memory-limit-error-with-wp-super-cache\/ &#8211; when we go to the month view of the calendar, the page crashes.<\/p>\n<p>I&#8217;ve managed to reproduce the problem on our test site (just by copying the whole database over), so I&#8217;ve had a chance to go through and disable plugins and themes &#8211; it&#8217;s not just the caching plugin that&#8217;s causing the site to hit the php memory limit, although it does get noticeably worse when the caching plugin is enabled. <\/p>\n<p>When all the plugins are enabled and caching is turned on, we get the following error message:<\/p>\n<p>Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0<\/p>\n<p>When the caching plugin is turned off (not disabled), we start to see &#8216;Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 81 bytes) in \/home\/womensli\/public_html\/crashtest\/wp-includes\/wp-db.php on line 2409&#8217; messages &#8211; depending on how many plugins we have enabled, the page will start to load and either get no further that the WP theme header, or part-way through the page before getting stuck. It gets a little further when the WP default theme is used, but only nominally; sometimes the error message is logged but not displayed.<\/p>\n<p>We do have a lot of events (2 or 3 long events over weeks or months, with at least 1 and up to five or six one-off or recurring events on weekdays), but there wouldn&#8217;t have been many added over the course of the month, so I&#8217;m not sure why the problem&#8217;s arising now when it had been working okay for the first week or so.<\/p>\n<p>I&#8217;ve tried turning on the ECPro month view cache, and that doesn&#8217;t seem to make any difference.<\/p>\n<p>If I manually enter the next month&#8217;s url, or click forward through the photo or list view until I&#8217;m in November and then switch to the month view, it displays, and I can then click into the &#8216;previous&#8217; month &#8211; at this point October, which makes the error even more frustrating.<\/p>\n<p>We&#8217;re on shared hosting, so I don&#8217;t have control over the PHP memory limit &#8211; the system info copied over from WP seems to think it&#8217;s set to 256M, but it&#8217;s actually 64M.<\/p>\n<p>(Our test site is running v. 4.3, but the live site hasn&#8217;t been upgraded yet, and is on 4.2.4)<\/p>\n","protected":false},"template":"","class_list":["post-1179022","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Month view hitting PHP memory limit -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Month view hitting PHP memory limit -\" \/>\n<meta property=\"og:description\" content=\"Hello &#8211; we&#8217;ve had a recurrence of the issue raised here: https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-causing-php-memory-limit-error-with-wp-super-cache\/ &#8211; when we go to the month view of the calendar, the page crashes. I&#8217;ve managed to reproduce the problem on our test site (just by copying the whole database over), so I&#8217;ve had a chance to go through and disable plugins and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/\",\"name\":\"Month view hitting PHP memory limit -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-10-19T13:54:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Month view hitting PHP memory limit\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Month view hitting PHP memory limit -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/","og_locale":"en_US","og_type":"article","og_title":"Month view hitting PHP memory limit -","og_description":"Hello &#8211; we&#8217;ve had a recurrence of the issue raised here: https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-causing-php-memory-limit-error-with-wp-super-cache\/ &#8211; when we go to the month view of the calendar, the page crashes. I&#8217;ve managed to reproduce the problem on our test site (just by copying the whole database over), so I&#8217;ve had a chance to go through and disable plugins and [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/","name":"Month view hitting PHP memory limit -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-10-19T13:54:19+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/month-view-hitting-php-memory-limit\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Month view hitting PHP memory limit"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1179022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1179022\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1179022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}