CodeIgniter "No input file specified" - codeigniter

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.

Related

Laravel 5 and iPage Hosting

I have a shared hosting at iPage. I did the steps listed here : Deploy Laravel 5 using only FTP in a shared hosting (Moving files, editing htaccess) and yet still facing the same 500 error :
20161126T060216: bluepenlabs.com/projects/peugeot/public/index.php PHP
Warning:
require(/hermes/bosnaweb28a/b1452/ipg.bluepenlabscom/projects/peugeot/public/bootstrap/autoload.php):
failed to open stream: No such file or directory in
/hermes/bosnaweb28a/b1452/ipg.bluepenlabscom/projects/peugeot/public/index.php
on line 22 PHP Fatal error: require(): Failed opening required
'/hermes/bosnaweb28a/b1452/ipg.bluepenlabscom/projects/peugeot/public/bootstrap/autoload.php'
(include_path='.:/usr/local/lib/php-5.5.22-amd64/lib/php') in
/hermes/bosnaweb28a/b1452/ipg.bluepenlabscom/ 20161126T061559:
bluepenlabs.com/projects/peugeot/public/index.php
PHP Parse error:
syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE)
in
/hermes/bosnaweb28a/b1452/ipg.bluepenlabscom/projects/peugeot/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php
on line 475
20161126T061939: bluepenlabs.com/projects/peugeot/public/index.php PHP
Parse error: syntax error, unexpected '.', expecting '&' or variable
(T_VARIABLE) in
/hermes/bosnaweb28a/b1452/ipg.bluepenlabscom/projects/peugeot/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php
on line 475
Note that i'm trying to install the laravel project in a subdirectory /projects/peugeot/
Thank you
I once hosted a laravel project on iPage(shared hosting). I faced 500 errors. Not showing much description.
This may be because of the Laravel 5.3 min server requirements.
Ipage hosting site normally give a version below the min requirement. You need to change the setting on your Control Panel. Try upgrading your PHP version.
Hope this helps.

Fatal error: require_once login Magento

I'm setting up a store with two languages. When I go to login in the default English everything is fine but if I try to login Spanish get the following error:
Fatal error: require_once(): Failed opening required 'app/code/core/Mage/Customer/controllers/AccountController.php' (include_path='C:\xampp\htdocs\app\code\local;C:\xampp\htdocs\app\code\community;C:\xampp\htdocs\app\code\core;C:\xampp\htdocs\lib;.;C:\xampp\php\PEAR') in C:\xampp\htdocs\app\code\local\MageWorkshop\DetailedReview\controllers\Customer\AccountController.php on line 28
Here's line 28:
require_once 'app/code/core/Mage/Customer/controllers/AccountController.php';
The "missing" not found file is there!
Does anyone know how I can fix this? Or is this like a major problem that requires a professional?
The Spanish people will not be able to login.
Thanks
If the directory-path is not absolute then it is assumed to be relative to the ServerRoot location.
Just specify the server root location, your script/module seems to be wrong installed.
define('MAGENTO_LOCATION', '/var/www/vhosts/mysite');
require_once MAGENTO_LOCATION . '/app/code/core/Mage/Customer/controllers/AccountController.php';

Tank Auth http://localhost/codeigniter/index.php/auth Error

This is my first time using authentication library. I followed this post to install tank auth. But there is something wrong at http://localhost/codeigniter/index.php/auth when I try to access it. It gives me some lines in the page:
A PHP Error was encountered
Severity: Warning
Message: require_once(phpass-0.1/PasswordHash.php): failed to open
stream: No such file or directory
Filename: libraries/Tank_auth.php
Line Number: 3
I tried to edit the third line of ~/codeigniter/application/libraries/Tank_auth.php and nothing good happened. I'm sure that PasswordHash.php exists in phpass-0.1 directory.
Could anyone help me or shed some light?
The problem is definitely in that the file PasswordHash.php cannot be found in this line of code:
require_once(phpass-0.1/PasswordHash.php)
Confirm the file exists in the location you think it does, and I hope you are using quotes:
require_once('file.php');

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

Fatal error in joomla site?

after uploading a file in joomla site this error come
Fatal error: Cannot call overloaded function for non-object in /webcorp1/www/corpusers/p/u/punjabtourism.gov.in/libraries/joomla/utilities/simplexml.php on line 607
Fatal error: Class 'JLoader' not found in /webcorp1/www/corpusers/p/u/punjabtourism.gov.in/libraries/loader.php on line 161
anybody have solution please help
Disable caching and see if that helps the problem - or, if you're using APC caching, then switch to just simple file caching.

Resources