{"id":25324,"date":"2012-10-22T05:44:17","date_gmt":"2012-10-22T09:44:17","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=25324"},"modified":"2018-09-21T08:23:17","modified_gmt":"2018-09-21T12:23:17","slug":"failed-to-open-stream-no-such-file-or-directory-in-x-on-line-y","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/failed-to-open-stream-no-such-file-or-directory-in-x-on-line-y.html","title":{"rendered":"Failed to open stream: No such file or directory in X on line Y"},"content":{"rendered":"<p>You can get errors like this:<\/p>\r\n\r\n<code>Failed to open stream: No such file or directory in foo.php on line 45<\/code>\r\n\r\n<p>If you reference a file that doesn&#8217;t exist.<\/p>\r\n\r\n<p class=\"attention\">Please perform the following steps to fix the issue:<\/p>\r\n\r\n<ol>\r\n\t<li>To troubleshoot the problem, look in the file given, at the line given (for this example, you would look at file foo.php on line 45.). The file mentioned on that line is the one that PHP can&#8217;t find.<\/li>\r\n\r\n\r\n\t<li>Make sure that the file in question has proper permissions (644 or 755) and is readable by the system\/server.<\/li>\r\n\r\n\t<li>Contact your hosting provider regarding the issue.<\/li>\r\n\r\n<\/ol>\r\n\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/cart.php?addOffer=587\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-1-(500-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>You can get errors like this: <code>Failed to open stream: No such file or directory in foo.php on line 45<\/code> if you reference a file that doesn&#8217;t exist.<\/p>\n","protected":false},"author":7,"featured_media":25325,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1019,944],"tags":[691,1397,1398,1399],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/25324"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=25324"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/25324\/revisions"}],"predecessor-version":[{"id":82852,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/25324\/revisions\/82852"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/25325"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=25324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=25324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=25324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}