CodeIgniter: Display custom view instead of 'Database Error' message - codeigniter

How Can I show a custom view instead of the generic error attached in cases of the database going down unexpectedly?

In applications folder there is a folder named errors. There are all error files which comes up when an error is occurred.
When database error is occured, error_db.php file is shown in browser. You can edit it or replace that with your custom file.
Hope this helps.

You should set $db_debug = FALSE; in your config database settings on your production server - you should NEVER show a raw database error message to your users, as it is a massive security risk

Related

oracle apex Error handling function not working properly

I am trying to use the oracle's apex_error package to implement error handling in my app.
test app: https://apex.oracle.com/pls/apex/f?p=145329:2:11482099171656::NO:::
table created: constraint_lookup
function provided by oracle "apex_error_handling_example". https://docs.oracle.com/database/apex-18.1/AEAPI/Example-of-an-Error-Handling-Function.htm#AEAPI2216
The solution works fine except when you click on the error it gives error in console instead of taking you to the tab of the IR report.
Now click on the message so it should take you to the duplicate DeptID, but it just gives you error in the console.
I have tried to handle this at page level, application level also I tried to set the column_alias manually so I don't have to use the APEX_ERROR.AUTO_SET_ASSOCIATED_ITEM but all in vain.
Any help and your time will be much appreciated.

magento custom theme error

trying to create a custom theme with bitnami XAMPP using magento devdocs
https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-create.html
I get this error when I try to access the admin panel
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 1130478184
I think you have to first check in your error log number "1130478184" where you exactly know what is the issue. I think from your given link which you refer your issue must be occured from theme.xml file's <preview_image>media/preview.jpg</preview_image> line. You have to try with comment following code in theme.xml file:-
<!--media>
<preview_image>media/preview.jpg</preview_image>
</media-->

URL validation failed error while accessing Oracle Form

I am developing custom application in Oracle Apps which will call an oracle form named form.fmx
I have put form.fmx in FORM_PATH variable of default.env
I have created section called vikram in formsweb.cfg
I am accessing as http://prod.txis.com:7406/forms/frmservlet?config=vikram&form=form
And getting this error
URL validation failed. The error could have been caused through the use of the browser's navigation buttons ( the browser Back button or refresh, for example). If the error persists, Please contact system administrator.
Try one of the following methods to resolve your issue :
Goto Internet Options >> Security Tab >> Trusted sites >> Sites >>
Add this website to the zone.
Issue select fnd_profile.value('APPS_MAINTENANCE_MODE') from dual;
to see whether returns the result NORMAL, If this is not the case you're in the maintenance mode, and use :
sqlplus mySchema/myPassword#$AD_TOP/patch/115/sql/adsetmmd.sql DISABLE
Click on Lock and Edit, and then
Navigate to Domain structure >> Services >> Data sources Where you should see both oacore_cluster1 and forms_cluster1 in
the EBSDataSource targets.
Assume forms_cluster1 is missing in the EBSdatasource target list, then click on the EBSDatasource and then go to the
Targets section. In this page, check the box for forms_cluster1.
Save and Activate the changes and see the following view in you weblogic screen :
Issue was with Forms server configuration.
With correct config, it is running fine

Exception printing is disabled by default for security reasons. Error log record number:

I just re-installed Magento and restored the old database with PhpMyAdmin.
The front page of the website is OK. But in the backend I've got this error when I go to Manage Categories.
Exception printing is disabled by default for security reasons.
Error log record number: 986836145855
Does anyone know how to solve this problem?
Go to magento/var/report and open the file with the Error log record number name (986836145855 in your case).
In that file you can find the complete description of the error.
For log files like system.log and exception.log, go to magento/var/log/.

Magento Error: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 113

I have copy the magento website from one server to another and done all the necessary changes and now when i opened my new site the following error is coming
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 1237612538
It is showing the numbers of errors first is
a:4:{i:0;s:115:
"SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 113"
;i:1;s:2374:"
#0 /home/content/32/9503032/html/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
Here is the solution:
Are you sure changed db credentials correct in xml file?
1 .Recheck db credentials with username and password correct or not?
File permisions
compilation mode enable/disable
clear cache
clear sesion
try it
if you want to more detail in error, you can change a little bit step as follows
go to Magento Folder
Magento Folder
errors
local.xml.sample to local.xml
Refresh Page. You will see more detail errors.

Resources