How to Log errors in Codeigniter
You do not have to build separate functions in codeignter to log errors in you rapplications.
Codeignter has an error logging function in the file system\core\common.php:
Code Ignter Error function
function log_message($level, $message)
{
static $_log;
if ($_log === NULL)
{
// references cannot…
Call to undefined method CI_DB_mysqli_driver::_error_number()
If you are a codeigniter developer and you are in the middle of a project scratching your heard asking why you cannot get a DB insert/delete success message determined, you are in the right place. You may not be doing anything wrong.
Here is a sample code that can generate…
Onsite Support: Fixing computers at home- Toronto and Area
Onsite Support: Fixing computers at home- Toronto and Area
Almost every home you can think of has one or more computers and so are issues with either with the software or hardware. In most developed countries, majority of the issues are software related while in most third world countries the computer…
How to Solve Codeigniter Time Zone error
How to Solve Codeigniter Time Zone error:
A PHP Error was encountered
Severity: Warning
Message: main(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function
If you have not seen this error before in your Codeigniter code but suddenly started…
How to fix error: Call to undefined function wp_get_theme() on Wordpress
It can be a nightmare when you are in the middle of a theme upload or after a theme activation, something happens and you end up with the following error:
1 |
Call to undefined function wp_get_theme() |
The most frustrating thing is that any link that you click on…
Archive
- February 2019(1)
- July 2018(1)
- February 2018(1)
- December 2017(1)
- August 2017(4)