CI log_threshold Problem - codeigniter

A PHP Error was encountered
Severity: Notice
Message: Undefined index: log_threshold
Filename: codeigniter/Common.php
Line Number: 246
in my CI Project when i work locally it works fine but when i upload it to server it gives this error
serverlink http://outshinebd.com/sm/
Please some body help me
Thanks

check your config.php file in application/config folder. To me it seems like your config file is missing the following entry
$config['log_threshold'] = 1;
the values range from 0-4

Related

Codeigniter "Call to undefined function mysqli_init()" error

I am receiving this error in CodeIgniter app on localhost
Here are the error lines:
An uncaught Exception was encountered
Type: Error
Message: Call to undefined function mysqli_init()
Filename: C:\xampp\htdocs\domainswat.com\system\database\drivers\mysqli\mysqli_driver.php
Line Number: 135
Backtrace:
File: C:\xampp\htdocs\domainswat.com\application\controllers\Login.php
Line: 17
Function: __construct
File: C:\xampp\htdocs\domainswat.com\index.php
Line: 315
Function: require_once
I have already changed the "mysql" to "mysqli" in my code but error persists.
When trying to access phpMyAdmin, it says that mysqli extension is missing but it is not missing.
I also checked the config file and it refers to that DLL file.
So I am out of ideas here...
edit yours php config php.ini
search for mysqli and delete semicolon ; it look likes this
;extension=php_ldap.dll
extension=php_mbstring.dll
extension=php_mysqli.dll
;extension=php_oci8_12c.dll
;extension=php_openssl.dll

Issue while Exporting products Magento

When I try to export the product, I get the following error: No valid data sent. In the error_log file, I found the following error:
Call to undefined method
Mage_Catalog_Model_Product_Attribute_Backend_Price::getAllOptions() in
/app/code/core/Mage/ImportExport/Model/Export/Entity/Abstract.php on
line 369
In my case this problem occured because my app/etc/config.xml file was missing. Try to see if your XML's config files are there.

Laravel 5 Storage::delete() error

I am trying to delete a file stored in app_folder/storage/app/images/business/filename_here.png using the following code:
Storage::delete(storage_path('app/images/business/'.$business->logo));
The error that I get is the following:
FileNotFoundException in Filesystem.php line 381:
File not found at path: home/vagrant/Code/app_folder/storage/app/images/business/1_logo.png
The problem is that the path that is displayed is absolutely correct, the filename also. Any ideas ?

CodeIgniter "No input file specified"

I just finished developing a website using codeigniter and in the end the person I was developing for switched from one hosting service to another. Now, when I try to go in the website at first I got a message saying
"No input file specified"
after going through some websites I found out I could try and fix this by using index.php? changing these on the config.php file:
$config['index_page'] = "index.php?";
$config['uri_protocol'] = "QUERY_STRING";
I tried that but now I am getting this message:
A PHP Error was encountered
Severity: Notice
Message: Undefined property:
Login::$session
Filename: controllers/login.php
Line Number: 121
Fatal error: Call to a member function
userdata() on a non-object in
/home/content/34/5024634/html/pdv/application/controllers/login.php
on line 121
on line 121 of controllers/login.php you see this:
if ($this->session->userdata('logged_in') == TRUE)
which works perfectly fine on the old server as well as on localhost. Now, going back to the previous host isn't an option according to my client so I've been stuck with this error for a while now and haven't been able to find any solution, would any of you guys know how to fix this?
The most helpful websites I've checked out are these two:
http://anon83.wordpress.com/2007/12/11/codeigniter-vs-godaddy-problems/
http://codeigniter.com/wiki/Godaddy_Installaton_Tips/
You probably forgot to load your session library
$this->load->library('session'); in your construct or autoload it.

TCPDf error in CodeIgniter

I am using TCPDF, but i encountered these problem.
please give me solution.
A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant K_CELL_HEIGHT_RATIO - assumed 'K_CELL_HEIGHT_RATIO'
Filename: libraries/Loader.php
Line Number: 928
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\small projects\project1\system\libraries\Exceptions.php:166)
Filename: tcpdf/tcpdf.php
Line Number: 8060
TCPDF ERROR: Some data has already been output to browser, can't send PDF file
Check out this. You probably doing it wrong.
Check this CodeIgniter Forum
just comment line 3 to 8 on libraries/pdf.php
your code should look like this:
/*
override the default TCPDF config file
if(!defined(‘K_TCPDF_EXTERNAL_CONFIG’))
{
define(‘K_TCPDF_EXTERNAL_CONFIG’,
TRUE); }
*/

Resources