Welcome Guest, Not a member yet? Register   Sign In
Codeigniter and Wamp Issue - SOLVED
#1

[eluser]Molchy[/eluser]
Hi,

I am using:
- Latest CI version
- HMVC
- WAMP localhost server

Issue:
Wamp server takes control on displaying native PHP errors and saves it to its logs. I wanna invoke that and give control to Codeigniter error handler which logs it into app.../logs and that way wanna have all errors on one place and not in two different logs. How can i do that on localhost ?

When that would work i plan to TRY CATCHE Module Loading in HMVC and when error is captured i wish to display basic part and then module or custom error with basic part, is that possible?


Please help tnx u, searched forum and google and nothing Sad
#2

[eluser]Molchy[/eluser]
Please any tip or solution will be gladly accepted...
#3

[eluser]InsiteFX[/eluser]
check your apache config httpd.conf

And PHP.ini for error logging settings
#4

[eluser]Molchy[/eluser]
[quote author="InsiteFX" date="1331067991"]check your apache config httpd.conf

And PHP.ini for error logging settings
[/quote]

Allready tryed PHP.ini with disabling error logging ... and restarted localhost but then i get "Blank page" and no native PHP errors .... Appache logging is only set to WARN and isnt apache logs for server issues ?

Or i get WAMP error display or none Sad i wanna se CI only Sad

#5

[eluser]InsiteFX[/eluser]
You can set CIerror handling in the ./application/config/config.php

Code:
/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| If you have enabled error logging, you can set an error threshold to
| determine what gets logged. Threshold options are:
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = 0;

/*
|--------------------------------------------------------------------------
| Error Logging Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/logs/ folder. Use a full server path with trailing slash.
|
*/
$config['log_path'] = '';

/*
|--------------------------------------------------------------------------
| Date Format for Logs
|--------------------------------------------------------------------------
|
| Each item that is logged has an associated date. You can use PHP date
| codes to set your own date formatting
|
*/
$config['log_date_format'] = 'm-d-Y H:i:s';
#6

[eluser]Molchy[/eluser]
I know i allways have set:
$config['log_threshold'] = 1;

Nothing Sad

[quote author="InsiteFX" date="1331070747"]You can set CIerror handling in the ./application/config/config.php

Code:
/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| If you have enabled error logging, you can set an error threshold to
| determine what gets logged. Threshold options are:
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = 0;

/*
|--------------------------------------------------------------------------
| Error Logging Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/logs/ folder. Use a full server path with trailing slash.
|
*/
$config['log_path'] = '';

/*
|--------------------------------------------------------------------------
| Date Format for Logs
|--------------------------------------------------------------------------
|
| Each item that is logged has an associated date. You can use PHP date
| codes to set your own date formatting
|
*/
$config['log_date_format'] = 'm-d-Y H:i:s';
[/quote]
#7

[eluser]Molchy[/eluser]
Any other possible solutions ? Maybe HMVC issue from wanwiz ? Anyone else using CI 2.1 + HMVC + Wamp and codeignite error showing works with native PHP errors?
#8

[eluser]Molchy[/eluser]
Just wanna say sorry to all who tryed to help me out.

I found what is the issue and can not be done in error handling:

The following error types cannot be handled with a user defined function: E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR, E_COMPILE_WARNING, and most of E_STRICT raised in the file where set_error_handler() is called.


It seems custom error handling is limited so some errors can not be captured and handled by user ... We can only disable if shown or not ... because of that Blank page or custom apache and php error display ...




Theme © iAndrew 2016 - Forum software by © MyBB