AbanteCart Community

Shopping Cart Operations => Support => Topic started by: shop123 on December 02, 2013, 12:32:09 PM

Title: Admin login
Post by: shop123 on December 02, 2013, 12:32:09 PM
Hello.

I finally managed to move on other fresh and better hosting provider. Uploaded everything on the new host ( files and database), made changes in config.php and now I'm trying to login as admin on the website...
I'm gettin these errors while trying to login


2013-12-02 8:56:23 - App Warning:  AbanteCart core v.1.1.7 Warning: Accessing store with unconfigured or unknown domain ( new-domain.com/ ).
 Check setting of your store domain URL in System Settings . Loading default store configuration for now. in /home/digitals/public_html/core/lib/config.php on line 169
2013-12-02 8:56:23 - warning:  AbanteCart core v.1.1.7 session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/digitals/public_html/system/config.php:1) in <b>/home/digitals/public_html/core/lib/session.php</b> on line <b>77</b>
2013-12-02 8:56:23 - warning:  AbanteCart core v.1.1.7 session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/digitals/public_html/system/config.php:1) in <b>/home/digitals/public_html/core/lib/session.php</b> on line <b>77</b>
2013-12-02 8:56:23 - warning:  AbanteCart core v.1.1.7 Cannot modify header information - headers already sent by (output started at /home/digitals/public_html/system/config.php:1) in <b>/home/digitals/public_html/core/engine/language.php</b> on line <b>288</b>
2013-12-02 8:56:23 - warning:  AbanteCart core v.1.1.7 Cannot modify header information - headers already sent by (output started at /home/digitals/public_html/system/config.php:1) in <b>/home/digitals/public_html/core/lib/currency.php</b> on line <b>107</b>
2013-12-02 8:56:23 - warning:  AbanteCart core v.1.1.7 Cannot modify header information - headers already sent by (output started at /home/digitals/public_html/system/config.php:1) in <b>/home/digitals/public_html/core/engine/controller.php</b> on line <b>202</b>



and white page after adding email address and password for admin login....anyone?
Title: Re: Admin login
Post by: abolabo on December 02, 2013, 02:43:29 PM
1. purge directory system/cache (except index.html file)
2. check is output buffering supported on new host (look into php.ini or into output of phpinfo(); function (some cpanel have it "section"))
3. also i see that new host can not to start session. probably server's misconfiguration.
Title: Re: Admin login
Post by: shop123 on December 02, 2013, 07:16:25 PM
done the first step..

in php.ini this is what i get

magic_quotes_gpc = Off;
register_globals = Off;
default_charset   = UTF-8;
memory_limit = 64M;
max_execution_time = 18000;
max_upload_filesize = 100M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
Title: Re: Admin login
Post by: shop123 on December 03, 2013, 07:12:10 PM
anyone?

 Check setting of your store domain URL in System Settings . Loading default store configuration for now. in /home/digitals/public_html/core/lib/config.php on line 169
2013-12-03 15:43:58 - warning:  AbanteCart core v.1.1.7 session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/digitals/public_html/system/config.php:1) in <b>/home/digitals/public_html/core/lib/session.php</b> on line <b>77</b>
2013-12-03 15:43:58 - warning:  AbanteCart core v.1.1.7 session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/digitals/public_html/system/config.php:1) in <b>/home/digitals/public_html/core/lib/session.php</b> on line <b>77</b>
2013-12-03 15:43:58 - warning:  AbanteCart core v.1.1.7 Cannot modify header information - headers already sent by (output started at /home/digitals/public_html/system/config.php:1) in <b>/home/digitals/public_html/core/engine/language.php</b> on line <b>288</b>
2013-12-03 15:43:58 - warning:  AbanteCart core v.1.1.7 Cannot modify header information - headers already sent by (output started at /home/digitals/public_html/system/config.php:1) in <b>/home/digitals/public_html/core/lib/currency.php</b> on line <b>107</b>
2013-12-03 15:43:58 - warning:  AbanteCart core v.1.1.7 Cannot modify header information - headers already sent by (output started at /home/digitals/public_html/system/config.php:1) in <b>/home/digitals/public_html/core/engine/controller.php</b> on line <b>202</b>
Title: Re: Admin login
Post by: abantecart on December 03, 2013, 09:03:34 PM
This error indicates that you have some space or character in file /home/digitals/public_html/system/config.php that is not inside PHP tag

Make sure there is nothing before and after PHP tags
Title: Re: Admin login
Post by: shop123 on December 04, 2013, 08:06:02 AM
theres nothing before and after php tags :s :(

<?php

// Admin Section Configuration. You can change this value to any name. Will use ?s=name to access the admin
define('ADMIN_PATH', 'admin123');

// Database Configuration
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'digitals_usr');
define('DB_PASSWORD', 'pass');
define('DB_DATABASE', 'digitals_dta');
define('DB_PREFIX', 'ab_');
define('SALT', 'PnTw');
define('UNIQUE_ID', 'unique id');
?>

if i delete <? it gives me other error. Please help me somehow or else i'll have to start all over again ( adding products again :( )

If this can't be solved...is there any way to add only products and categories after a fresh install of AbanteCart? without customer, orders and others ??
Title: Re: Admin login
Post by: shop123 on December 04, 2013, 09:36:42 AM
Looks like I managed to fix it. Thank you guys.  :-*
Title: Re: Admin login
Post by: buddahboy on December 05, 2013, 11:54:15 AM
Hi - what was the fix?  Prying eyes wanna know - thanks

All the best
Title: Re: Admin login
Post by: abantecart on December 05, 2013, 02:38:32 PM
What I have seen before, that some editors or FTP clients add special character/bite at the beginning of the file. You will see it only with operating system side with vi command. PHP does not like anything before first <?php tag

The fix was to delete the file and create new one with the same content.

Not sure what was the case here. Also wonder to know.
Title: Re: Admin login
Post by: buddahboy on December 13, 2013, 09:03:25 AM
Abantecart - that seems to be right, thanks.  I forgot about the extra characters being added - it's always the simple stuff isn't it? 

Thanks for your continued assistance - speaking for myself I could not have done a job that I am very very happy with had it not been for team AC and the others that help out. 

All the best
Ron