{"id":1150742,"date":"2016-08-11T15:49:20","date_gmt":"2016-08-11T22:49:20","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/permalinks-issue-flockfopen-functions\/"},"modified":"2016-08-11T15:49:20","modified_gmt":"2016-08-11T22:49:20","slug":"permalinks-issue-flockfopen-functions","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/permalinks-issue-flockfopen-functions\/","title":{"rendered":"Permalinks issue &#8211; flock\/fopen functions"},"content":{"rendered":"<p>Hi there,<br \/>\nA client is having issues with permalinks, &amp; th hosting company has provided some feedback on this &amp; I was wanting your opinion please.<br \/>\n&#8220;Over the past few months the website has been experiencing a permalink issue.  I presumed it was due to the WP or theme updates.  However, the hosting company has investigated and it seems that the issue lies with the Event&#8217;s Calendar.  The plugin provides continuous issues with the permalinks &#8211; see explanation below.  I usually login and reset the Permalinks to fix it, but it is an ongoing issue.&#8221;<\/p>\n<p>&#8220;There are a few entries in the site&#8217;s error log to indicate issues with The Events Calendar plugin. It appears that when a new event is created or edited, the plugin initiates an update of the WP permalinks and this is causing an error (sometimes). It also appears that The Events Calendar plugin uses a couple of PHP functions which are disabled on our servers for security reasons (these functions, particularly flock and fopen are often disabled by hosts because of their inherent security risks), and this could also be contributing to the issue. The Events Calendar plugin should not rely on these functions.&#8221;<\/p>\n<p>[Wed Aug 10 21:01:57 2016] [warn] [client 203.96.136.49] mod_fcgid: stderr: PHP Warning:  fgets() expects parameter 1 to be resource, boolean given in \/var\/www\/vhosts\/diamondharbour.info\/httpdocs\/wp-content\/plugins\/the-events-calendar\/common\/src\/Tribe\/Admin\/Notice\/Plugin_Upgrade_Notice.php on line 176, referer: http:\/\/diamondharbour.info\/wp-admin\/options-permalink.php<\/p>\n<p>[Wed Aug 10 21:01:57 2016] [warn] [client 203.96.136.49] mod_fcgid: stderr: PHP Warning:  fopen(): data:\/\/ wrapper is disabled in the server configuration by allow_url_fopen=0 in \/var\/www\/vhosts\/diamondharbour.info\/httpdocs\/wp-content\/plugins\/the-events-calendar\/common\/src\/Tribe\/Admin\/Notice\/Plugin_Upgrade_Notice.php on line 174, referer: http:\/\/diamondharbour.info\/wp-admin\/options-permalink.php<\/p>\n<p>Any thoughts on what I should do to hopefully alleviate the issues they are having?<br \/>\nThanks,<br \/>\nJason<\/p>\n","protected":false},"template":"","class_list":["post-1150742","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>Permalinks issue - flock\/fopen functions -<\/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\/permalinks-issue-flockfopen-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Permalinks issue - flock\/fopen functions -\" \/>\n<meta property=\"og:description\" content=\"Hi there, A client is having issues with permalinks, &amp; th hosting company has provided some feedback on this &amp; I was wanting your opinion please. &#8220;Over the past few months the website has been experiencing a permalink issue. I presumed it was due to the WP or theme updates. However, the hosting company has [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/permalinks-issue-flockfopen-functions\/\" \/>\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\/permalinks-issue-flockfopen-functions\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/permalinks-issue-flockfopen-functions\/\",\"name\":\"Permalinks issue - flock\/fopen functions -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-08-11T22:49:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/permalinks-issue-flockfopen-functions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/permalinks-issue-flockfopen-functions\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/permalinks-issue-flockfopen-functions\/#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\":\"Permalinks issue &#8211; flock\/fopen functions\"}]},{\"@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":"Permalinks issue - flock\/fopen functions -","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\/permalinks-issue-flockfopen-functions\/","og_locale":"en_US","og_type":"article","og_title":"Permalinks issue - flock\/fopen functions -","og_description":"Hi there, A client is having issues with permalinks, &amp; th hosting company has provided some feedback on this &amp; I was wanting your opinion please. &#8220;Over the past few months the website has been experiencing a permalink issue. I presumed it was due to the WP or theme updates. However, the hosting company has [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/permalinks-issue-flockfopen-functions\/","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\/permalinks-issue-flockfopen-functions\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/permalinks-issue-flockfopen-functions\/","name":"Permalinks issue - flock\/fopen functions -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-08-11T22:49:20+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/permalinks-issue-flockfopen-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/permalinks-issue-flockfopen-functions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/permalinks-issue-flockfopen-functions\/#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":"Permalinks issue &#8211; flock\/fopen functions"}]},{"@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\/1150742","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\/1150742\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1150742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}