TCPDf error in CodeIgniter - 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); }
*/

Related

HMVC codeigniter MX URI routing broken, application\third_party\MX\Router.php

I using HMVC of Codeigniter first time.
From application\third_party\MX\Router.php file view this error!
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: core/Router.php
Line Number: 268
Backtrace:
File: F:\server\htdocs\HMVC_Task\application\third_party\MX\Router.php
Line: 190
Function: _set_request
File: F:\server\htdocs\HMVC_Task\index.php
Line: 315
Function: require_once
404 Page Not Found
The page you requested was not found.
Codeigniter version is 3.1.11.
Now I'm trying to fix it by googling.
If any one have any suggestion please share.
That was version related error.
**Now I understand the solution.**
**When you use: codeigniter V2:**
In CI v2.x finished with $this->_set_request($this->uri->segments);
**When you use: codeigniter V3:**
whereas CI v3.0-dev finishes with $this->_set_request(array_values($this->uri->segments));

HMVC integration with hybridauth codeigniter extension

I am working on a project in which I am using codeigniter's HMVC & hybridauth extension. HMVC is working fine. But I have problems in running hybridauth extension. After the initial setup for hybridauth, when I run it the following two errors are displayed:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI::$hybridauthlib
Filename: MX/Loader.php
Line Number: 165
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\SADD_contest\system\core\Exceptions.php:185)
Filename: Hybrid/Auth.php
Line Number: 354
I think the second error is due to first error..Is the hybridauth library not compatible with MX_controller? I am a total newbie both in these two library. How can I resolve the issue?
you can check my answer at this url Hybrid Auth with Codeigniter which is the code that i use for hybridauth and HMVC ..

how to add QuickBase a CodeIgniter

I'm looking for how to integrate the QuickBase API in a website developed with the CodeIgniter framework
I esayer add the api as a library
$this->load->library('quickbase', 'login','password', true, 'table');
and when I do I call displays error
A PHP Error was encountered
Severity: Warning
Message: Missing argument 1 for QuickBase::__construct(), called in /var/www/vhosts/************/httpdocs/system/core/Loader.php on line 1099 and defined
Filename: libraries/quickbase.php
Line Number: 43
A PHP Error was encountered
Severity: Warning
Message: Missing argument 2 for QuickBase::__construct(), called in /var/www/vhosts/**************/httpdocs/system/core/Loader.php on line 1099 and defined
Filename: libraries/quickbase.php
Line Number: 43
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: un
Filename: libraries/quickbase.php
Line Number: 45
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: pw
Filename: libraries/quickbase.php
Line Number: 49
thank you in advance
Your error is because the Quickbase API file(s) does not have the same calling format as a CodeIgniter library needs to work with the load->library syntax. You will need to read up on the Creating Libraries section of the manual and then create your own CodeIgniter compatible Quickbase library that includes the file(s) for the Quickbase API.

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.

CI log_threshold Problem

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

Resources