Current time: 11-22-2024, 09:58 AM Hello There, Guest! (LoginRegister)


Post Reply 
SQL Error from 1.0.7
Author Message
flotix Offline
Junior Member
*

Posts: 28
Joined: Jan 2009
Reputation: 0
Post: #1
SQL Error from 1.0.7
Hello,

From 1.0.7 when i want to incarn a resseler i have this message :
Quote:PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: no parameters were bound - Query: SELECT * FROM `domain` WHERE `domain_id` = ?

A solution? :s

An exception with the following message was raised in file
/var/www/ispcp/gui/include/sql.php (Line: 90):

=================================================================

PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number:
no parameters were bound - Query:
SELECT
*
FROM
`domain`
WHERE
`domain_id` = ?

=================================================================

Debug backtrace:
---------------

File: /var/www/ispcp/gui/include/reseller-functions.php (Line: 568)
Function: exec_query()
File: /var/www/ispcp/gui/include/reseller-functions.php (Line: 370)
Function: get_user_props()
File: /var/www/ispcp/gui/reseller/index.php (Line: 178)
Function: generate_reseller_user_props()
File: /var/www/ispcp/gui/reseller/index.php (Line: 348)
Function: generate_page_data()
(This post was last modified: 12-04-2010 10:35 PM by flotix.)
12-04-2010 10:32 PM
Find all posts by this user Quote this message in a reply
tomdooley Offline
Development Team
*****
Dev Team

Posts: 332
Joined: Sep 2007
Reputation: 7
Post: #2
RE: SQL Error from 1.0.7
Seems like "created_by" has an invalid value for the domain in "admin" database table. Can you verify this?
12-04-2010 10:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
flotix Offline
Junior Member
*

Posts: 28
Joined: Jan 2009
Reputation: 0
Post: #3
RE: SQL Error from 1.0.7
The value is correct.
But is not a domain, it's a resseler.
For domain it's ok, it's just for resseler, there are this error
No problem with a new resseler :s
(This post was last modified: 12-04-2010 11:28 PM by flotix.)
12-04-2010 11:23 PM
Find all posts by this user Quote this message in a reply
sykosoft Offline
Newbie
*

Posts: 8
Joined: Dec 2010
Reputation: 0
Post: #4
RE: SQL Error from 1.0.7
(12-04-2010 11:23 PM)flotix Wrote:  The value is correct.
But is not a domain, it's a resseler.
For domain it's ok, it's just for resseler, there are this error
No problem with a new resseler :s

Is there any update to this? It's happening to me also with one reseller. I've checked several database tables (admin, domains, etc) and see no abnormal values.

Michael
(12-17-2010 12:46 PM)sykosoft Wrote:  
(12-04-2010 11:23 PM)flotix Wrote:  The value is correct.
But is not a domain, it's a resseler.
For domain it's ok, it's just for resseler, there are this error
No problem with a new resseler :s

Is there any update to this? It's happening to me also with one reseller. I've checked several database tables (admin, domains, etc) and see no abnormal values.

Michael

I found my problem:

I had a mismatch (don't know how or why) in admin and domain for an admin_id and a domain_admin_id, where in the admin table, the domain user had an id of 128, in domain, the domain_admin_id was 126. Don't know how this happened, but that mismatch was causing this problem. I found this by turning on my mysql general query log, looking at the last few queries, where I could tell that it was bombing, and is was a select from domain where domain_admin_id = x (which when executed manually returned an empty set).

Michael
(This post was last modified: 12-17-2010 01:21 PM by sykosoft.)
12-17-2010 12:46 PM
Find all posts by this user Quote this message in a reply
Boss Online Offline
Junior Member
*

Posts: 11
Joined: Nov 2009
Reputation: 0
Post: #5
RE: SQL Error from 1.0.7
how ? can you write tutorial for this, i have it problem too. need help.
03-23-2012 09:31 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)