Site icon TestingDocs.com

How to fix DB Access Testlink Error – debug_print_backtrace()

Overview

In this post, let’s see the steps involved to fix the following error: DB Access Testlink Error – debug_print_backtrace()

Error Trace

DB Access Error – debug_print_backtrace() OUTPUT START
ATTENTION: Enabling more debug info will produce path disclosure weakness (CWE-200)
Having this additional Information could be useful for reporting
issue to development TEAM.

#0 database->exec_query() called at [/testlink/lib/functions/plugin_api.php:495]
#1 plugin_register_installed() called at [/testlink/lib/functions/plugin_api.php:514]
#2 plugin_init_installed() called at [/testlink/lib/functions/common.php:500]
#3 testlinkInitPage() called at [/testlink/lib/general/navBar.php:13]

Fix

Install Time

If the error occurred during the TestLink install the most common cause of the error is invalid DB credentials supplied in the DB install screen. Check the MySQL root credentials, DB TestLink database credentials. Shared hosting would not have MySQL root access. We need to manually install the DB tables if that is the case.

More details here:

https://www.testingdocs.com/mysql-testlink-database-configuration/

During Page Access

If the error pops up while access the TestLink page or right after the login page then there is something wrong with the DB setup. Check if all the DB tables, views are properly installed, check the privileges of the TestLink DB user. Grant all privileges to the TestLink user on the Database objects

Check the logs directory for DB errors.

Sample DB Example error:

ERROR ON exec_query() – database.class.php <br />1044 – Access denied for user ‘testlinkdb2’@’localhost’ to database ‘mysql’ – SELECT DISTINCT user AS user FROM user<br />THE MESSAGE : SELECT DISTINCT user AS user FROM user

Here this case the TestLink DB user has no privilege to execute the SQL query.

To Understand TestLink Database Schema:

https://www.testingdocs.com/testlink-database-schema/

TestLink Tutorial on this website:

https://www.testingdocs.com/testlink-tutorials/

More information on TestLink, official website:

https://testlink.org/

Exit mobile version