how to add QuickBase a CodeIgniter - 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.

Related

Am getting this error when i upload my website to cpanel a codeigniter project

A PHP Error was encountered
Severity: Warning
Message: fopen(/var/cpanel/php/sessions/ea-php74/ci_session8c890fa70e8c2a9726a00d721269c80de8117d50): failed to open stream: No such file or directory
Filename: drivers/Session_files_driver.php
Line Number: 174
Backtrace:
File: /home/propert6/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_start(): Failed to read session data: user (path: /var/cpanel/php/sessions/ea-php74)
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /home/propert6/public_html/index.php
Line: 315
Function: require_once
What is listed in the php.ini file for session.save_path ?
Most likely you'd find this (depending on your configuration) in cPanel>>Software>>MultiPHP INI Editor
You can create a php info page to get this information (importanly whether the value is set locally or globally for that version of PHP) as well as the .ini file files loaded into the configuration
You may also want to check the following:
/home/$user/public_html/.htaccess
/home/user/public_html/*.ini

Codeigniter Session Configure Path issue

I am new to this framework and am having some issues
with it. I have spent some couple of hours googling. I went
to the CodeIgniter IRC channel to search for an answer but it's like
everyone was too busy to answer me.
Helping me here is the error code:
A PHP Error was encountered
Severity: Warning
Message: mkdir(): Permission denied
Filename: drivers/Session_files_driver.php
Line Number: 136
Backtrace:
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/core/My_Controller.php
Line: 11
Function: __construct
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/controllers/Welcome.php
Line: 6
Function: __construct
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/index.php
Line: 315
Function: require_once
An uncaught Exception was encountered
Type: Exception
Message: Session: Configured save path '/var/www/vhosts/barklaynew/barklay.online/httpdocs/application/session' is not a directory, doesn't exist or cannot be created.
Filename: /var/www/vhosts/barklaynew/barklay.online/httpdocs/system/libraries/Session/drivers/Session_files_driver.php
Line Number: 138
Backtrace:
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/core/My_Controller.php
Line: 11
Function: __construct
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/controllers/Welcome.php
Line: 6
Function: __construct
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Core Warning
Message: Module 'mysql' already loaded
Filename: Unknown
Line Number: 0
Backtrace:
A PHP Error was encountered
Severity: Warning
Message: file_exists(): open_basedir restriction in effect. File(0c3r9i4i6834ocdlreqk3upofrig52cs) is not within the allowed path(s): (/var/www/vhosts/barklaynew/barklay.online:/usr/share/php:/usr/share/pear)
Filename: drivers/Session_files_driver.php
Line Number: 170
Backtrace:
A PHP Error was encountered
Severity: Warning
Message: fopen(): open_basedir restriction in effect. File(0c3r9i4i6834ocdlreqk3upofrig52cs) is not within the allowed path(s): (/var/www/vhosts/barklaynew/barklay.online:/usr/share/php:/usr/share/pear)
Filename: drivers/Session_files_driver.php
Line Number: 172
Backtrace:
A PHP Error was encountered
Severity: Warning
Message: fopen(0c3r9i4i6834ocdlreqk3upofrig52cs): failed to open stream: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 172
Backtrace:
A PHP Error was encountered
Severity: Warning
Message: Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (0;660;/var/www/vhosts/barklaynew/barklay.online/phptmpdir)
Filename: Unknown
Line Number: 0
Backtrace:
I just lauch the site, but I don't really known how to fix it, here is the site link http://www.barklay.online/
The folder you have set for your sessions does not yet exist, and cannot be created by the user running PHP for your web server.
Run this to create the sessions folder
cd /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/
mkdir sessions

how to use mailchimp 2.0 with codeigniter?

I am very new to using APIs. I want to use mailchimp 2.0 with CodeIgniter. I tried to integrate mailchimp libraries but it doesn't work.
Error
A PHP Error was encountered
Severity: Warning
Message: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set
Filename: libraries/Mailchimp.php
Line Number: 138
Fatal error: Call to undefined method Mailchimp::getList() in /home/dtworks/public_html/moh/ebook/application/modules/mailinglist/controllers/mailinglist.php on line 27

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 ..

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