Jump to content

Can't include cookie.php or config.php


Recommended Posts

Hello all,

 

I am having a bunch of trouble with getting the user logged in. My problem is that these includes won't work:

 

include_once('../classes/Cookie.php');
include_once('../config/config.inc.php');
include_once('../config/settings.inc.php');
 
I am running prestashop 1.6.0.9 I get.
 
warning: include_once(../classes/Cookie.php): failed to open stream: No such file or directory in /home/
 
 
 
I have tried statements like 
 
include_once ('_PS_CORE_DIR_./config/settings.inc.php');
include_once ('_PS_ROOT_DIR_./config/settings.inc.php');
 
A bunch of these ../
 
So when creating my own login module a statement like
 
if ($context->customer->isLogged()) returns noting.
 
Funny thing is that this gets output
 
setcookie("session_id", $customerId, $cookieexpiry);
 
Any ideas appreciated. Thanks
 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...