← Back to team overview

phpdevshell team mailing list archive

[Bug 659198] Re: Error: Can't find any 'template' because dependancy is wrong

 

Hi Greg, so far I've noticed the following:

The problem happens on line 138 in PHPDS.inc.php:

if (is_a($e, 'PHPDS_databaseException') && (in_array($e->getCode(),
array(1146, 2002)))) {

It seems that for some reason MySQL is returning error code 0 when the
query fails. This in turn causes the code to run the default exception
handler instead of redirecting the browser to the install script. We
need to try and figure out two things:

1) Why is error code 0 returned by MySQL (the MySQL service is running as other local sites still works)
2) Why is the template dependency error caused instead of simply displaying the database error.

-- 
Error: Can't find any 'template' because dependancy is wrong
https://bugs.launchpad.net/bugs/659198
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.

Status in Open Source php gui type development framework.: Triaged

Bug description:
Note: This problem seems to happen on Microsoft Windows specifically.

Steps to reproduce the problem:
1) Create the database
2) Rename the configuration files
3) Run the website, i.e. http://localhost/mysite

PHPDS fails to detect that it is not installed yet and tries to execute database queries on a database structure that is not fully created yet. The following errors and problems occur as a result of this:

Uncaught Exception while running:
Can't find any 'template' because dependancy is wrong

It seems this error is displayed due to another error that is thrown by the database but the error unfortunately does not specifically state what is wrong. I know that the problem is that the table actually doesn't exist but the error displayed is the following:
The MySQL database engine returned with an error (code 0).





References