Parse error: syntax error, unexpected '$login_request ' (T_VARIABLE)

Open to all! Ask other shopowners for help.
Post Reply
micheleangle
Posts: 2
Joined: Mon Aug 03, 2020 11:00 pm
Phoenix Version:
Has thanked: 2 times

Parse error: syntax error, unexpected '$login_request ' (T_VARIABLE)

Post by micheleangle »

Parse error: syntax error, unexpected '$login_request ' (T_VARIABLE) in /home/customer/www/abcd.com/public_html/storeadmin/login.php on line 13

LIne 13: $login_request = true;

I cannot logon to admin and get the above error and do not know which version of CE-Phoenix 2021? Any help is so appreciated - Thanks!


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Parse error: syntax error, unexpected '$login_request ' (T_VARIABLE)

Post by Kofod95 »

I would revert recent changes or restore from latest back-up.
If you prefer another solution, I would like to see if you have anything before line 13, other than the comment with Copyright info.

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: Parse error: syntax error, unexpected '$login_request ' (T_VARIABLE)

Post by Xpajun »

You have a configuire.php problem
this:

Code: Select all

/home/customer/www/abcd.com/public_html/storeadmin/login.php

should read this:

Code: Select all

/home/customer/www/abcd.com/public_html/store/admin/login.php

unless you have a directory called storeadmin
in admin/includes/configure.php lines 32-34 should be:

Code: Select all

  define('DIR_FS_DOCUMENT_ROOT', '/home/xxxxxxxx/public_html/store'); // where your pages are located on the server. if $DOCUMENT_ROOT doesn't suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
  define('DIR_WS_ADMIN', '/store/admin/');
  define('DIR_FS_ADMIN', '/home/xxxxxxxxxx/public_html/store/admin/');

Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply