Guest alveglansM Posted February 24, 2010 Share Posted February 24, 2010 Help ! I would be sooo grateful for some help :-) What shall I do? I do not understand anything of this.... I have had this cubecart-shop for at least 2 years and I have never had any problems ( http://alveglans.com/shop ) .... but yesterday something strange happend to both the login/admin-page and the main-page. It is not possible to log in to the admin-page and the main page have all these error-messages : "Deprecated: Function eregi() is deprecated in /customers/alveglans.com/alveglans.com/httpd.www/shop/includes/sslSwitch.inc.php on line 30 Deprecated: Function eregi() is deprecated in /customers/alveglans.com/alveglans.com/httpd.www/shop/includes/sslSwitch.inc.php on line 30 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /customers/alveglans.com/alveglans.com/httpd.www/shop/includes/sslSwitch.inc.php:30) in /customers/alveglans.com/alveglans.com/httpd.www/shop/admin/login.php on line 49 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /customers/alveglans.com/alveglans.com/httpd.www/shop/includes/sslSwitch.inc.php:30) in /customers/alveglans.com/alveglans.com/httpd.www/shop/admin/login.php on line 49 Deprecated: Function eregi() is deprecated in /customers/alveglans.com/alveglans.com/httpd.www/shop/admin/includes/header.inc.php on line 29 Deprecated: Function eregi() is deprecated in /customers/alveglans.com/alveglans.com/httpd.www/shop/admin/includes/header.inc.php on line 29 Deprecated: Function eregi() is deprecated in /customers/alveglans.com/alveglans.com/httpd.www/shop/admin/includes/footer.inc.php on line 29 Deprecated: Function eregi() is deprecated in /customers/alveglans.com/alveglans.com/httpd.www/shop/admin/includes/footer.inc.php on line 29 " Quote Link to comment Share on other sites More sharing options...
Guest Baatservice Posted February 27, 2010 Share Posted February 27, 2010 I have experienced the same on my web shop: www.haraldnilsen.com/shop Anybody know what causes this? Harald Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 27, 2010 Share Posted February 27, 2010 See this, please: http://forums.cubecart.com/index.php?showtopic=39139 Quote Link to comment Share on other sites More sharing options...
Guest Baatservice Posted February 28, 2010 Share Posted February 28, 2010 See this, please: http://forums.cubecart.com/index.php?showtopic=39139 Ok, thanks for the help so far. Now the initial issue is solved and the errors is not listed. I also get up the login box on my admin page - but... I cant log in to my adminpanel. I get this error: MySQL Error Occured 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND blockTime < 1267319423' at line 1 QUERY = SELECT adminId FROM 1CubeCart_admin_users WHERE username = 'admin' AND password = 'xxxxxxxxxxxxxx' AND failLevel < AND blockTime < 1267319423 (I have xed out the md5 password) Can anyone point me in the right direction here please? Harald Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 28, 2010 Share Posted February 28, 2010 That line comes from the file: /admin/login.php, at around line 55. It needs the variable $ini['bfattempts'] which is declared in the file:/includes/ini.inc.php at around line 138, $ini['bfattempts'] = 5; // login attempts So, look in ini.inc.php and see if that statement is still there. Quote Link to comment Share on other sites More sharing options...
Guest Baatservice Posted February 28, 2010 Share Posted February 28, 2010 Thanks bsmither, I'm amazed by the knowledge in this forum! I checked the ini.inc file - and as far as I can tell the statement you mentioned seems ok. Also checked the login file without finding any strange. But than again, I*m not a php expert. Could you or anyone have a look at the files in question for me? Both inc.ini and login atached to this post. I am very thankfull for any help here!! Regards Haraldini.inc.phplogin.php Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 28, 2010 Share Posted February 28, 2010 I've looked at what I downloaded from the attached file link for ini.inc.php and in that file as it sits on my computer I find that all of the "new lines" (CR/LF or just LF), the specific character code in the file that tells editors to stop printing this line and start printing what follows on a new line, are missing! PHP needs these new lines to know when a line-based comment should end. Since this file appears to be all one single line, and the first line starts with a line-based comment (the double slashes), the whole line is considered a comment and completely ignored by PHP. Now, how did this file come to be in this state? Is this how it is on the server? Did the new lines disappear when you copied it from your server? When edited as instructed earlier? When uploaded to these forums? When downloaded to my system? The login.php file is still in it's formatted state. So, I'm pretty sure the file got unformatted when edited or when uploaded back to your server. So, find a fresh copy of ini.inc.php, make the edit (using a plain text editor, not a wordprocessor) as discussed earlier, and upload that file replacing what's there now. Quote Link to comment Share on other sites More sharing options...
Guest Baatservice Posted March 1, 2010 Share Posted March 1, 2010 Man you are good! I did use notepad for editing, but something happend during upload with Filezilla. After new upload I have my backoffice - back. Most seems to work now. Still get some errors when I'm in backoffice - but have to look at that tomorrow. Thanks a million for your help! Harald Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.