Forum
404 When I add a new page
I've set up my master page and followed the step by step guide but when I 'Visit Page' after adding it, I get a 404.
What info do you guys need so that you can maybe see what's up?
I've set up my master page and followed the step by step guide but when I 'Visit Page' after adding it, I get a 404.
What info do you guys need so that you can maybe see what's up?
Does the file exist?
Yip.
This is what is in it when I download it:
Nothing else.
If there's a file at that location, but accessing it gives you a 404 then you have a server configuration issue.
It actually gives me this:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Ok - have you checked the server error log for more information about the error?
“The error logged for this site is: PHP Warning: include(): https:// wrapper is disabled in the server configuration by allow_url_include=0 in C:\Inetpub\vhosts\strathearn.org.uk\httpdocs\manager\templates\pages\standard_page.php on line 32 PHP Warning: include(https://www.strathearn.org.uk/inc/header.php): failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\strathearn.org.uk\httpdocs\manager\templates\pages\standard_page.php on line 32 PHP Warning: include(): Failed opening 'https://www.strathearn.org.uk/inc/header.php' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\strathearn.org.uk\httpdocs\manager\templates\pages\standard_page.php on line 32 PHP Warning: include(): https:// wrapper is disabled in the server configuration by allow_url_include=0 in C:\Inetpub\vhosts\strathearn.org.uk\httpdocs\manager\templates\pages\standard_page.php on line 35 PHP Warning: include(https://www.strathearn.org.uk/inc/nav.php): failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\strathearn.org.uk\httpdocs\manager\templates\pages\standard_page.php on line 35 PHP Warning: include(): Failed opening 'https://www.strathearn.org.uk/inc/nav.php' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\strathearn.org.uk\httpdocs\manager\templates\pages\standard_page.php on line 35 PHP Warning: include(): https:// wrapper is disabled in the server configuration by allow_url_include=0 in C:\Inetpub\vhosts\strathearn.org.uk\httpdocs\manager\templates\pages\standard_page.php on line 47 PHP Warning: include(https://www.strathearn.org.uk/inc/footer.php): failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\strathearn.org.uk\httpdocs\manager\templates\pages\standard_page.php on line 47 PHP Warning: include(): Failed opening 'https://www.strathearn.org.uk/inc/footer.php' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\strathearn.org.uk\httpdocs\manager\templates\pages\standard_page.php on line 47 I have set this option to enabled within Plesk php.ini directives: allow_url_include=1; Which the produces the following error: PHP Warning: include(https://www.strathearn.org.uk/inc/footer.php): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in C:\Inetpub\vhosts\strathearn.org.uk\httpdocs\manager\templates\pages\standard_page.php on line 47 PHP Warning: include(): Failed opening 'https://www.strathearn.org.uk/inc/footer.php' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\strathearn.org.uk\httpdocs\manager\templates\pages\standard_page.php on line 47 The error displayed on https://www.strathearn.org.uk/inc/footer.php is as follows: PHP Fatal error: Call to undefined function perch_pages_navigation() in C:\Inetpub\vhosts\strathearn.org.uk\httpdocs\inc\footer.php on line 5
Apologies... Appears I'm an idiot and added in absolute URL's into PHP includes.