Page 1 of 1

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

Posted: Mon Oct 17, 2022 6:48 pm
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!

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

Posted: Mon Oct 17, 2022 9:59 pm
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

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

Posted: Fri Nov 04, 2022 7:48 am
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/');