Class not found error in Modules.php: Codeigniter - codeigniter

My project use Codeigniter 2.1.4(HMVC) and all of the sudden I am getting following error while calling any controller:
PHP Fatal error: Class 'Fb_function' not found in
/var/www/html/FB_W/application/third_party/MX/Modules.php on line 105
And the line has following code:
$controller = ucfirst($class);
self::$registry[$alias] = new $controller($params);
I have not done any changes in this file and the code so working fine from last 4 years.
how do I fix this problem?

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

Fatal error: Class 'JParameter' not found in template/theme/index.php on line xxx

i upgrade template 2.5 to 3.0, template upgrade but come the following error.
Fatal error: Class 'JParameter' not found in template/theme/index.php on line xxx
JParameter was removed in Joomla 3.0 and now either JForm or in most cases JRegistry should be used.
So use the following code, and change to suit your own needs
$jparams = new JRegistry();
$variable = $jparams->get('param_name');

Error when using SOAP service in CodeIgniter

When I use SOAP service using plain PHP code, it is working, but when I embed the same PHP code in CodeIgniter view file, showing error:
Fatal error: Call to a member function __soapCall() on a non-object in /home/content/r/a/m/ramlinux/html/Projects/LeadControlSystem/LCS_application_7/views/adminpanel/lead_email_scrub.php on line 49
code line 49:
$result = $client->__soapCall("VerifyEmail", array($params), null, null, $output_header);
Whats wrong with this line of code?

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

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.

Resources