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

Ask the community for help and support.
Post Reply
micheleangle
Posts: 1
Joined: Mon Aug 03, 2020 11:00 pm

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!
User avatar
Kofod95
VIP Member
VIP Member
Posts: 605
Joined: Sat Feb 06, 2021 7:38 pm
Has thanked: 80 times
Been thanked: 141 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
VIP Member
VIP Member
Posts: 104
Joined: Thu Mar 04, 2021 1:18 pm
Has thanked: 2 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.7.5 - php 7.3.24
Now working on 1.0.8.19 - php 7.3.24
Post Reply