![]() |
|
Zenphoto 1.2.5 (6/2/09) - Page Not Found 404 Error - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Zenphoto 1.2.5 (6/2/09) - Page Not Found 404 Error (/thread-5247.html) |
Zenphoto 1.2.5 (6/2/09) - Page Not Found 404 Error - boo - 2009-06-03 Hi, This is not working with 1.2.5. From gallery root (domain/gallery/type-non-existent-page) we get: The requested URL /cgi-bin/php5.fcgi/gallery/index.php was not found on this server. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. From (domain/gallery/parrot-photos/type-non-existent-page) we get: Notice: Trying to get property of non-object in /home/users/username/html/domain/gallery/zp-core/functions-controller.php on line 414 Warning: Cannot modify header information - headers already sent by (output started at /home/users/username/html/domain/gallery/zp-core/functions-controller.php:414) in /home/users/username/html/domain/gallery/index.php on line 21 Warning: Cannot modify header information - headers already sent by (output started at /home/users/username/html/domain/gallery/zp-core/functions-controller.php:414) in /home/users/username/html/domain/gallery/index.php on line 124 Warning: Cannot modify header information - headers already sent by (output started at /home/users/username/html/domain/gallery/zp-core/functions-controller.php:414) in /home/users/username/html/domain/gallery/index.php on line 125 The 404 page is displayed below the above error messages. Please help.... ;-) Zenphoto 1.2.5 (6/2/09) - Page Not Found 404 Error - acrylian - 2009-06-03 Actually you should not have to change the root index.php file. A theme can have its own 404.php page for custom error pages or the default one will be used. Take a look at the standard themes. FastCGI should not matter as that works fine on my site, too. Zenphoto 1.2.5 (6/2/09) - Page Not Found 404 Error - boo - 2009-06-03 Hi, I am using the un-modified index.php and we also get the issue with the Thanks. Zenphoto 1.2.5 (6/2/09) - Page Not Found 404 Error - acrylian - 2009-06-03 Well, I have no idea as it does works on both my local and my webserver. Maybe sbillard will have an idea. Zenphoto 1.2.5 (6/2/09) - Page Not Found 404 Error - sbillard - 2009-06-03 Modify functions-controller.php as follows: line 412: line 414: Zenphoto 1.2.5 (6/2/09) - Page Not Found 404 Error - boo - 2009-06-03 Hi, ok have done that, now we don't get the error messages but the theme 404 *** Actually I've just re-edited the index.php and removed the line as we did with zen 1.22 and it's working !!! removed header("Status: 404 Not Found"); Brilliant, thanks very much!!! Do I need to ask my hosting provider to change anything at their end to fix this without editing the files ? Zenphoto 1.2.5 (6/2/09) - Page Not Found 404 Error - sbillard - 2009-06-04 We do not understand why that line needs to be removed. Zenphoto 1.2.5 (6/2/09) - Page Not Found 404 Error - boo - 2009-06-04 Hi, ok your possible reason was: You suggested to try and remove either or both lines from index: header("HTTP/1.0 404 Not Found"); It is important that search engines see a proper 404, looking at Google's webmaster tools, images / albums that have been deleted or renamed etc are reported as "404 Not Found". So that is good. Thankyou for your help. |