CodeIgniter transfer from WAMP to host subfolder error - codeigniter

I was creating a simple CodeIgniter site on my WAMP and all runs well.
But when uploaded to the host it says CI_Controller not found in CodeIgniter.php
Fatal error: Class 'CI_Controller' not found in /home/<myhost>/public_html/pms/system/core/CodeIgniter.php on line 233
I checked all the paths and seems right, i even went to the CodeIgniter.php file.
My database was migrated from local to the host, config was set, still this error comes out.
Is there something I'm missing? I really cant find anything on the net that could allow me to understand why it returns an error.
Hope someone could help understand this.
Thanks.

CodeIgniter will most probably figure out the base_url by itself:
$config['base_url'] = '';
... should work.

Fatal error: Class 'CI_Controller' not found in /home//public_html/pms/system/core/CodeIgniter.php on line 233
The path is not correct /home/public_html/pms/system/core/CodeIgniter.php

Related

Site inaccessible after upgrading from 3.8.3 to 3.8.7

The site auto update got to 100% but there was an error at the end.
Now I cannot access the backend or the frondend and only get this error.
Fatal error: Class 'Joomla\CMS\Plugin\CMSPlugin' not found in /home/.sites/92/site2697155/web/plugins/system/sessiongc/sessiongc.php on line 23
Can someone help me to restore my site?
Try to change session_handle in configuration.ftp to "none"
public $session_handler = 'none';
To do this, you can use FTP and modify configuration.php directly
But i guess your issue caused by 3rd plugin
Try to use FTP and rename folder
/home/.sites/92/site2697155/web/plugins/system/sessiongc
to
/home/.sites/92/site2697155/web/plugins/system/sessiongc.bak
And try to check your site.

Cannot find named PHP session module magento 1.7 version

I found below error in system.log
Warning: session_module_name(): Cannot find named PHP session module (file) in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 67
Can anyone know solution.
To resolve such type of warning error one should have to use below code in
layout file.
Its worked for me.
![CDATA[files]] in session_save node

Magento 1.9 Installation Error

I am trying to install magento 1.9 on my web hosting server .
I ftp-ed the files into my hosted website but experience the following error when i try to access my URL.
Fatal error: Class 'Mage_Core_Controller_Request_Http' not found in /home/bf/public_html/app/code/core/Mage/Core/Model/App.php on line 1238
I tried a google search but i am unable to find anything relevant .
Just download the Fresh copy from Magento community again. Also make sure that your server has all the prerequisite for Magento as mentioned in below link.
http://docs.magento.com/m1/ce/user_guide/magento/system-requirements.html
Please make sure that below files exist in this directory
app/code/core/Mage/Core/Controller/Request/Http.php
1.Make sure you have enabled curl on your server and with have right file permission.
2.Make sure file should exist on following path:
/home/bf/public_html/app/code/core/Mage/Core/Controller/Request/Http.php
3.Make sure compilation mode is disabled.
/home/bf/public_html/includes/config.php
Every thing inside should be commented.
4.If it does not work, you have to debug this.
Open index.php in root and add these line of code,
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
It will show you why error is coming.Once you will find the root cause, you can get the solution on google or any forum.

set_flashdata() triggers a fatal error in PyroCMS

I moved a Pyrocms site to another server.
Go to index: blank page.
Turn on errors: get this
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Pages::$session
Filename: core/Model.php
Line Number: 50
Fatal error: Call to a member function set_flashdata() on a non-object in /var/www/vhosts/brokentalkers.com/httpdocs/system/pyrocms/modules/modules/models/module_m.php on line 193
If it sheds any light, I made a tar.gz of the contents of the old httpdocs folder, and extracted it in the new httpdocs folder.
I made a duplicate of the database with an identical user, so config/database.php shouldn't need changing.
Any ideas? Thanks in advance.
It seems like $session class is not initializing correctly.
Check for default_ci_sessions table, if you are using sessions for database.
Check if the constructor is loading sessions library.
Check if session is in autoload.php config

syntax error at server for the code works fine at localhost... it is weird! :/

I have an interesting issue :/ I use CodeIgniter and the code below is working fine at my localhost, but when I upload to server I come cross with an error message like
Parse error: syntax error, unexpected
T_OBJECT_OPERATOR in
/home3/blabla/public_html/blablabla/applications/frontend/models/our_work_model.php
on line 99
function next_project($sort_work)
{
$query = $this->db->select('wname')->order_by('sort', 'asc')->getwhere('works', array('sort >' => $sort_work, 'case_study != ' => ""), 1, 0); //line 99
any idea? appreciate helps! thanks!
I know chaining like that only works in PHP5 - is the server perhaps running an older version of PHP?
Given your last question: __construct() { issue for PHP4 and PHP5. maybe an another reason
I'd say you're running PHP4.
How do you know that your CodeIgniter installation is actually using PHP 5? It could be the case that there are several PHP installations in that machine. To test it, create a PHP file in your server with the following code:
<?php
phpinfo();
?>
Then let us know what version it is showing.
initially i was getting a blank page. so i removed this
error_reporting((E_ALL & ~E_DEPRECATED));
yes if you are using codeigniter and you have to make ove code to this
error_reporting((E_ALL));
and then you will get the error above. and i found it was due to php5 being unused.

Resources