how to use mailchimp 2.0 with codeigniter? - 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

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));

Error while hosting CodeIgniter Framework to online server

I need to solve the below issue:
When I tried to hosting codeIgniter framework to my online server, this error occurred.
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/lviscomp/public_html/system/core/Output.php:528)
Filename: core/Common.php
Line Number: 573
Backtrace:
A PHP Error was encountered
Severity: Error
Message: XCache: Cannot init
Filename: Unknown
Line Number: 0
Backtrace:
I had the same xcache issue in my Laravel application. I resolved it by upgrading the PHP version.
I think this might help you as well.
Go to your cPanel
Go to software section and click "select PHP version"
Change your PHP version from "native" to 5.4 or 5.5 (It will give you a list of drivers with checkboxes)
Select Xcache and enable it
Save your settings as well as PHP version
I hope it will work.
For Above Error header information already sent...
Click here!
XCache: Cannot init
Try Disable XCACHE from the Php configuration..
if this doesn't work ..
I think this is a question for your host.

Using SecurityServiceProvider results in fatal error

I followed the tutorial on Silex's website in order to implement HTTP authentication.
But it results in this error:
PHP Fatal error: Call to undefined method Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent::isMasterRequest() in /home/auke/projects/nelleketekent/nelleketekent/vendor/symfony/security/Symfony/Component/Security/Http/Firewall.php on line 53
How can I solve it?

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.

Resources