Blog - feature/defeature

Was playing around with blogs. As a user, I made a blog, added an entry to it, made that first entry as featured. A bit later, I went in and tried to "de-feature" the entry and got a mysql error:

Query:

SELECT `ID` FROM `sys_localization_languages` WHERE `Name`='en' LIMIT 1

Mysql error: Table 'saltcomu_dolphin.sys_localization_languages' doesn't exist

Found error in the file '/home/saltcomu/public_html/dolphin/inc/classes/BxDolEmailTemplates.php' at line 31.
Called 'getOne' function with erroneous argument #0.

Have no idea why this happened. Am looking into it.

What is more is that a debug dump continued below this showing all the mysql information to a normal user (not admin) which included mysql database name, user, password!

Oooh, bad.

Quote · 25 Jan 2010

try this

with notepad create a file called phperr.txt
now upload it to root /inc/

edit your php.ini

display_errors = Off
display_startup_errors = Off
log_errors = On
error_log = /home/content/your/path/html/inc/phperr.txt
error_reporting = E_ALL

all error reports will be saved to that file   so your users don't see it ;)

Quote · 25 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.