[Wordpress] Provide better error message in wp-config.php

Bug #365783 reported by Sebastian Geiger
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wordpress (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: wordpress

It would be usefull to provide a more descriptive errro message in wp-config.php if the wp-settings.php file is not found.

Currently the script only outputs:
        header("HTTP/1.0 404 Not Found");
        echo "404 Not found";

if the file /etc/wordpress/config-localhost.php is not available. This file contains the user/password information.

Suggested message would be some hind that the wp-config file could not load /etc/wordpress/config-localhost.php and an explanation of why this happens.

Revision history for this message
Bhavani Shankar (bhavi) wrote :

Can you please explain with a sample of the description?

Regards

Revision history for this message
Sebastian Geiger (lanoxx) wrote : Re: [Bug 365783] Re: [Wordpress] Provide better error message in wp-config.php

There should be something like:

"File: /etc/wordpress/config-localhost.php could not be found. The file
is either not readable by this process or does not exist. Pleas check if
/etc/wordpress/config-localhost.php exists and contains the right
password/username. Also make sure the file has mode 520."

Basically an error like this is very undescriptive because you dont know
where to start looking for:
        header("HTTP/1.0 404 Not Found");
        echo "404 Not found";

But I filed this bug quite some time ago, I can not quite recall what
was the exact problem other from what I wrote in the bug report. But I
had something to do with the fact the one for the files I mentioned was
missing or not readable.

Bhavani Shankar wrote:
> Can you please explain with a sample of the description?
>
> Regards
>

Changed in wordpress (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.