AbanteCart Community

Shopping Cart Operations => Support => Topic started by: Rey on December 28, 2016, 03:17:13 AM

Title: Blank page when trying to install
Post by: Rey on December 28, 2016, 03:17:13 AM
Hello, I have a VPS server with CentOS 6.8 64 bit installed.
I had successfully downloaded and extracted Abantecart v1.2.9. Now when I go to the /install/ directory via browser, I get the first page absolutely fine(The License agreement page) but when I click Next to go to the Compatibility Validation page it just shows a blank page. No error or anything.
I had even turned on PHP error reporting but still no info or error.
Can someone please help in this regard?

Thank you.
Title: Re: Blank page when trying to install
Post by: abolabo on December 28, 2016, 09:08:05 AM
is something in httpd.error log ? i mean /var/log/apache2/httpd.error file
Title: Re: Blank page when trying to install
Post by: Rey on December 28, 2016, 10:22:20 AM
is something in httpd. error log ? i mean /var/log/apache2/httpd .error file

There is nothing in httpd error logs nor php error logs, have already checked. I am really lost, been banging my head into this since past 2 days. :(
Have 4 other websites hosted on the same server, but they all are working fine.

Please find attached more info about the server, please see if it helps.
Thank you.
Title: Re: Blank page when trying to install
Post by: abolabo on December 28, 2016, 10:55:55 AM
what about public_html/system/logs ? Is something there?
Title: Re: Blank page when trying to install
Post by: Rey on December 28, 2016, 11:05:21 AM
what about public_html/system/logs ? Is something there?
Yes, please find attached.
Thanks.
Title: Re: Blank page when trying to install
Post by: abolabo on December 28, 2016, 11:20:50 AM
looks like output buffering disabled for php (or ob-lib for php does not installed on server. not sure. i use debian based linux. )

Please check output_buffering directive inside your php.ini file.
Code: [Select]
output_buffering = ON
also you can check it via phpinfo(); function


Title: Re: Blank page when trying to install
Post by: Rey on December 28, 2016, 11:31:04 AM

Using phpinfo(); Output_buffering is shown as 0 | No Value.
In php (dot) ini output_buffering is Off. Should i just change the value to On or any other numeric value?

Thanks.
Title: Re: Blank page when trying to install
Post by: abolabo on December 28, 2016, 11:58:57 AM
yes. you should to enable it.
Switch value to 1 (or "On")
Title: Re: Blank page when trying to install
Post by: Rey on December 28, 2016, 01:43:38 PM
Enabled output_buffering, restarted httpd, still same blank page on pressing continue from the license agreement page. No progress :(
Title: Re: Blank page when trying to install
Post by: Rey on December 30, 2016, 01:51:57 AM
I am sure there must be other people with the same issue? Anyone please?
Title: Re: Blank page when trying to install
Post by: abolabo on December 30, 2016, 03:53:56 AM
Enabled output_buffering, restarted httpd, still same blank page on pressing continue from the license agreement page. No progress :(

cause is in output buffering 100%.

Try to add
Code: [Select]
   phpinfo();  exit;
into first line of your /install/index.php file after open-tag "<?php" and check it via browser.


Title: Re: Blank page when trying to install
Post by: Rey on December 30, 2016, 04:02:17 AM
output buffering master value is shown as 1. I had enabled it via php . ini.
Title: Re: Blank page when trying to install
Post by: abolabo on December 30, 2016, 04:36:45 AM
ok. let's debug together.

Please replace file public_html/core/helper/utils.php
with attached.
i added var_dump there. You will see output of headers list. please post it here
Title: Re: Blank page when trying to install
Post by: Rey on December 30, 2016, 05:06:54 AM
Got this as output after replacing core/helper/utils.php with the one you provided.
Title: Re: Blank page when trying to install
Post by: abolabo on December 30, 2016, 05:25:47 AM
hm.... it must be different.

ok.. please replace again (see attach)
will be output buffer content


Title: Re: Blank page when trying to install
Post by: abolabo on December 30, 2016, 05:27:27 AM
btw, can you send response body for your blank page?
i mean html-code by CTRL+U press shortcut
Title: Re: Blank page when trying to install
Post by: Rey on December 30, 2016, 06:24:59 AM
This is the output after uploading second utils file.
Title: Re: Blank page when trying to install
Post by: Rey on December 30, 2016, 06:27:59 AM
There is nothing in the page source as well. The page source is completely blank too.
Title: Re: Blank page when trying to install
Post by: abolabo on December 30, 2016, 07:01:55 AM
what about session settings in php. i mean session cookies.
Do you see it saved in your browser?
Is session id the same after page reload?
Probably session set cookie via http-headers and sends some data every time on request.
Please check it. Just open license-page and do refresh. Note session id in cookies before/after load.
Title: Re: Blank page when trying to install
Post by: Rey on December 30, 2016, 08:10:49 AM
Yes, I see cookies.
There was 1 cookie named: PHPSESSID
There were 2 cookies named : PHPSESSID_AC
1 cookie named: default
and 1 cookie named: install_0b073fcfe1b0

I reloaded the page many times, the value of the cookies was not changing.
I cleared the cookies and reloaded the page, now there is only 1 new cookie PHPSESSID_AC, whose value is different than the previous PHPSESSID_AC cookie.

Thanks.
Title: Re: Blank page when trying to install
Post by: eCommerce Core on December 30, 2016, 08:36:08 AM
what about public_html/system/logs ? Is something there?
Yes, please find attached.
Thanks.
Was this fixed? There is a space somewhere in your file before <?php tag

Can you attach your utils.php file in here?
Title: Re: Blank page when trying to install
Post by: Rey on December 30, 2016, 08:45:21 AM
No it was not fixed. I still see same error in system/logs.

Which file should I check for a space before <?php  tag?

I am using the same utils.php which was attached by abolabo in previous posts.

Thanks.
Title: Re: Blank page when trying to install
Post by: eCommerce Core on December 30, 2016, 08:52:36 AM
Can you please attach your core/helper/utils.php file in here?
Title: Re: Blank page when trying to install
Post by: abolabo on December 30, 2016, 08:58:33 AM
try to add this

Code: [Select]
ob_start();
after opened-tag <?php inside file /public_html/install/index.php

it must to enable buffering anyway
Title: Re: Blank page when trying to install
Post by: Rey on December 30, 2016, 11:36:58 AM
@eCommerce Core please find attached the utils.php

@abolabo Finally, I can reach the settings page after adding
Code: [Select]
ob_start(); in
Code: [Select]
/install/index.phpBut still it shows that Output buffering is off(please see attached image), but I have turned it on in php.ini and phpinfo(); too shows that OB is on. It is very confusing now..

Thanks.
Title: Re: Blank page when trying to install
Post by: abolabo on December 30, 2016, 12:02:37 PM
...as i told

so you should to check all php,ini files in your centos.
not sure how many it. In debian based linux stores few. For apache, for shell-mode (cli) etc.

You should check what file applied. The better way to see it in phpinfo(); output in browser.
Also be sure that echo output_buffering=On without ; at the line begining (not commented)
Title: Re: Blank page when trying to install
Post by: Rey on December 30, 2016, 12:05:26 PM
Thanks. As far as I know, there is only one php.ini which is being used at the moment.
I will double check again and report back. Thank you for helping out. :)
Title: Re: Blank page when trying to install
Post by: codreanua on January 08, 2017, 02:14:20 PM
Hello, any news about this problem? I have the same issue, installation without softaculous on Cpanel  and blank page after i click next on licence agreement page  :-[ :-[ :-[
Title: Re: Blank page when trying to install
Post by: Rey on January 08, 2017, 02:19:38 PM
Hello, any news about this problem? I have the same issue, installation without softaculous on Cpanel  and blank page after i click next on licence agreement page  :-[ :-[ :-[

Yes, as stated above, I managed to reach the next page after adding
Code: [Select]
ob_start(); at the top of this page -
Code: [Select]
/install/index.phpInstallation went successfully after doing the same.