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');
Related
I have difficulties to fix my errors because i can't find the correct line where my bug is located.
app:///%40user%2Fmyapp-
vb7dxozbb0%2F1.0.1%2F6f8d9d7dc229b282bf44ec44d68caa41-25.0.0-ios.js in
exports at line 1238:97
any idea ?
I am not sure as to what is causing this error.
(!) Warning: Invalid argument supplied for foreach() in /..../vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 71
I think it might be an environment variable issue. But I am not sure.
The Call Stack
{main}()
require_once('..../bootstrap/start.php')
require('..../vendor/laravel/framework/src/Illuminate/Foundation/start.php
Illuminate/Config/EnvironmentVariables->load()
Illuminate/Config/FileEnvironmentVariablesLoader->load()
array_dot()
Illuminate\Support\Arr::dot()
** Please not that the ..... is a representation, not what I have in my file, just figured my personal file path was not going to help at all.
I have a .env.local.php file in the root of the main project directory with the correct DB info in it.
Anyone have an idea of what has happened?
Thanks in advance. And if you need any more info, please let me know, I don't know what you might need on this one.
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';
This is for a facebook app being run on heroku, but heroku is probably not the issue. The issue is either some kind of cache related thing, os porting, or I'm thinking it might be a carriage return issue.
In any case I'm getting a couple errors at the top and bottom respectively:
Warning: Unknown:
Warning: session_start(): open(C:\ProgramData\Jcx.Software\VS.Php\2.10.6970.0\temp/sess_i4ood4poc11ebsgth000g1nm74, O_RDWR) failed: No such file or directory (2) in /app/www/sdk/src/facebook.php on line 37
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /app/www/sdk/src/facebook.php:37) in /app/www/sdk/src/facebook.php on line 37
open(C:\ProgramData\Jcx.Software\VS.Php\2.10.6970.0\temp/sess_i4ood4poc11ebsgth000g1nm74, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\ProgramData\Jcx.Software\VS.Php\2.10.6970.0\temp) in Unknown on line 0
Essentially I have tried the whole "making sure session is at the top thing," but I don't have that session piece of code in any of the files. I have tried the whole making sure "?>" is on a new line as well to no effect.
update
I have discovered something called:
zend_extension_ts="C:\Program Files (x86)\Jcx.Software\VS.Php\2010\php 5.2\ext\php_xdebug.dll"
within a file called php.ini which even after I tried to get rid of didn't seem to change anything. So, I'm thinking this has something to do with some previous files that I pushed and then removed with extensions like puo, intellisense.cache, projphp, etc.
I don't know if those are auto-generated or not, but in any case according to my errors:
There is some session data in a file called temp. I have no file named temp.
zend_extension_ts supposedly gets referenced somewhere, but it isn't visible in my code.
I apparently need to resend session cache limiter again through session_start() which is not visible in my code.
Is not the session , I'm sure. But there is directory path included in your code but that directory does not exist! Just refactor that part of the code first!
As a tip you should use realpath() and check if path exist before attempting to use it.
Hope this helps!
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.