Database query error when login as admin

vinilrichard posted 13th of June 2008 in Community Voice. 11 comments.

i cant loggin as admin it says "database query error" my site running good but i cant access admin area

 
Comments
·Oldest
·Top
Please login to post a comment.
praveenkv1988
Whenever you get a database error you will get an email also.
Post the content of it for a right solution.
DosDawg
vinilrichard,
could you please post your inquiry in the forums under the appropriate topic?

also please read cyberxing's post about the blog rules

later,
DosDawg
vinilrichard
this is the cronjob mail i had
<div style="border:2px solid red;padding:4px;width:600px;margin:0px auto;">
<div style="text-align:center;background-color:red;color:white;font-weight:bold;">Error</div>
<div style="text-align:center;">Database query error</div>
</div>
AndreyP
inc\db.inc.php
change
define( 'DB_FULL_DEBUG_MODE', false );
to
define( 'DB_FULL_DEBUG_MODE', true );
and save file and try login as admin again - You will get more detailed error. Give it to us please
vinilrichard
this is the output i ahve
Error
Database query error
Query:
SELECT COUNT(`ID`) AS `Count` FROM `RayLivecamChannels` WHERE `Public`='true'
Mysql error:
Unknown column 'Public' in 'where clause'
Found error in file /home/orkubeco/public_html/inc/design.inc.php
at line 1128. Called db_value function with erroneous argument #0

Debug backtrace:

Array
(
[1] => Array
(
[file] => /home/orkubeco/public_html/inc/db.inc.php
[line] => 115
see more [function] => db_res
[args] => Array
(
[0] => SELECT COUNT(`ID`) AS `Count` FROM `RayLivecamChannels` WHERE `Public`='true'
[1] => 1
)

)

[2] => Array
(
[file] => /home/orkubeco/public_html/inc/db.inc.php
[line] => 133
[function] => db_arr
[args] => Array
(
[0] => SELECT COUNT(`ID`) AS `Count` FROM `RayLivecamChannels` WHERE `Public`='true'
[1] => 1
)

)

[3] => Array
(
[file] => /home/orkubeco/public_html/inc/design.inc.php
[line] => 1128
[function] => db_value
[args] => Array
(
[0] => SELECT COUNT(`ID`) AS `Count` FROM `RayLivecamChannels` WHERE `Public`='true'
)

)

[4] => Array
(
[file] => /home/orkubeco/public_html/inc/design.inc.php
[line] => 1228
[function] => getSiteStatBody
[args] => Array
(
[0] => Array
(
[capt] => RayzLivecam
[query] => SELECT COUNT(`ID`) AS `Count` FROM `RayLivecamChannels` WHERE `Public`='true'
[link] => rzlivecam.php
[icon] => rz_liv.gif
)

)

)

[5] => Array
(
[file] => /home/orkubeco/public_html/admin/index.php
[line] => 178
[function] => getSiteStatUser
[args] => Array
(
)

)

)

Called script: /admin/index.php
Request parameters:

Array
(
[strSec] => bf23302254341b462373fbcddc9ce30a
[logintheme] => cpanel
[cprelogin] => no
[cpsession] => closed
[FlyOverTester] => 1
[FlyOverExposed] => 1
[adminID] => XXXXXXX
[adminPassword] => 78302615c
)
AndreyP
Good, so,
are you can understand first several strings from this error?
Seems error already in english? :)

so, read:
Database query error
Query:
SELECT COUNT(`ID`) AS `Count` FROM `RayLivecamChannels` WHERE `Public`='true'
Mysql error:
Unknown column 'Public' in 'where clause'

last string what mean?
That you haven`t column 'Public' in your `RayLivecamChannels` table, not more :)
And seems that it anybody mod, So you must create this field for this table, understand? :) all simple
sarmi
I am having the same problem. I get this message in e-mail when trying to login as admin. Actual password is replaced with word password.

Database error in PeNePaL Community
Query:
SELECT * FROM `Admins` WHERE `Name` = 'dolphin' AND `Password` = MD5('password')

Mysql error:
Unknown column 'Name' in 'where clause'

Found error in file /home/penepal/public_html/dolphin/admin/index.php
at line 39. Called db_res function
with erroneous argument #0

Debug backtrace:
Array
(
[1] see more => Array
(
[file] => /home/penepal/public_html/dolphin/admin/index.php
[line] => 39
[function] => db_res
[args] => Array
(
[0] => SELECT * FROM `Admins` WHERE `Name` = 'dolphin' AND
`Password` = MD5('password')
)

)

)


Called script: /dolphin/admin/index.php

Request parameters:
Array
(
[relocate] => /dolphin/admin/index.php
[ID] => dolphin
[Password] => password
)
gobinathdpi
I am also getting the same error now even my full site is down after some time showing the same error
This also happens when you overwrite the administration index.php with the front page index.php or vice-versa.
This happens when you empty the cache
This will always happen whenever you empty the cache, so dont empty the cache. My whole site is down. Can anybody help?
 
 
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.
PET:0.05487585067749