Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank Page After Installation #22

Closed
kisssssss opened this issue Jul 13, 2014 · 9 comments
Closed

Blank Page After Installation #22

kisssssss opened this issue Jul 13, 2014 · 9 comments

Comments

@kisssssss
Copy link

I used to test Ph7 CMS was working fine... Now I can see the latest updated version. This one I tried to install many times but gives blank white page after the installation.
Please check what is the issue with that?

Before it was fine, now with this new release after installation only blank page shows...

I really like PH7, looks so lighter and much better than paid ones. Hope to see more improvements here. I really want to get rid of this white blank page issue so that I can test this new version.

Thank you!

@alvin101
Copy link

I just grabbed the latest zip and did an install, and got the same thing... http://date.go2an.com/

@ghozzt
Copy link

ghozzt commented Jul 15, 2014

Can you clarify a bit as in:

-Operating system / PHP version / PHP plugins / php.ini / Apache config
-access and error log

Please remove sensitive info (no passwords, usernames, ip addresses)

Because it’s needle in the haystack searching this way and certain regulation prevents scanning/fingerprinting remote servers on the internet.

Normally if you follow the install guide, it should work out ok (it did for me) but a minor typo/misconfiguration will prevent it from working.

On 15 Jul 2014, at 21:53, Alvin notifications@github.com wrote:

I just grabbed the latest zip and did an install, and got the same thing... http://date.go2an.com/


Reply to this email directly or view it on GitHub.

@alvin101
Copy link

Install is in a subdomain, I dump the content of public in the sub root folder, and placed the other two folders outside that folder, install seemed normal, however there did seem to be a cache problem with the removal of the install folder, after the the removal I still got the please delete install folder message, so I open in a new browser and got the blank page.

I do not yet know what folder the config file is in, so I have not looked at it yet.

here is the info.php result: http://date.go2an.com/info.php

@alvin101
Copy link

Can I get an answer on where the config file is located?

Thanks

@pH7Software
Copy link
Collaborator

Hi,

You can locate the config file here: ~/_protected/app/configs/config.ini

On Monday, July 21, 2014, Alvin notifications@github.com wrote:

Can I get an answer on where the config file is located?

Thanks


Reply to this email directly or view it on GitHub
#22 (comment)
.

_- If you want to contribute to this project (bug fixes, *_new features,
new modules, *documentation, translation, ...) do not hesitate to contact
me and I will give you the GIT repository access.

_- To support the development and volunteer help, make a donation _here
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XWLDYLFKCLEJQ
.

Best regards,

Pierre-Henry Soria

@alvin101
Copy link

Thanks Pierre,

I looked it over and everything seems fine. However I do not know what [validate] does, does it look normal?

And about [cookie] I am in a subdomain but I do not see any path info. Does this part of the file look normal?

code starts here,
[validate]
phone.pattern = "(+|00)[0-9]{1,3}[0-9]{5,14}(x.+)?"

[video]
; Max video size. e.g.,15K, 100M, 4G
upload.max_size = 500M
; e.g., Unix: /usr/bin/ffmpeg Windows: C:\ffmpeg\ffmpeg.exe
handle.ffmpeg_path = "/usr/bin/ffmpeg"

[cookie]
; If you have multiple sites with this CMS on the same domain, the prefix is used to avoid the collision between the same cookie
prefix = "pH7c0ac0_"
; 31536000 seconds = 1 year
expiration = 31536000
path = "/"

; Cookie domain, for example 'yoursite.com'.
; To make cookies visible on all subdomains then the domain must be prefixed with a dot like '.yoursite.com'
domain = PH7_DOMAIN_COOKIE

@pH7Software
Copy link
Collaborator

Hi, everything is normal in your config file.
I think, this is your problem ->
#19

@Coaden
Copy link

Coaden commented Jul 29, 2014

I had the same problem. After debugging, I found that Kernal.class.php has a method called _CheckLicense() with the following code:

    final private function _checkLicense()
    {   
        $this->_checkInternetConnection(); // First we check the Internet connection

        $oLicense = new License;
        //define( 'PH7_SOFTWARE_STATUS', !$oLicense->isBanned() );
        //define( 'PH7_LICENSE_STATUS', $this->str->lower($oLicense->checkCopyright()['status']) );
        define( 'PH7_LICENSE_NO_COPYRIGHT', (PH7_LICENSE_STATUS == 'active') );
        unset($oLicense);

        if (!PH7_SOFTWARE_STATUS)
        {
            $sLicenseMsg = t('You need to buy a <strong>valid <a href="%0%">pH7CMS</a> License Key</strong> to use features requiring a license key!', self::SOFTWARE_WEBSITE);
            Page::message($sLicenseMsg);
        }
    }

However the License class does not have methodes for .isBanned() or .checkCopywrite(), so I crash here, and get the blank page with empty head and body.

I tried bypassing the function, but the Constants need to be set. So, temporarily, I did something like

        //define( 'PH7_SOFTWARE_STATUS', !$oLicense->isBanned() );
        define( 'PH7_SOFTWARE_STATUS', true );
        //define( 'PH7_LICENSE_STATUS', $this->str->lower($oLicense->checkCopyright()['status']) );
        define( 'PH7_LICENSE_STATUS', true );

Note: This is from the master branch on get hub. I don't know if the download from sourceforge has these problems.

I'm still don't have it working 100%, but close.

ADDED:
I just saw Pierre's post about removing the License file.

@pH7Software
Copy link
Collaborator

Hey, no, don't comment these lines on Kernel.class.php
License class doesn't have isBanned method because you have got the code from GitHub and the License class on GitHub doesn't updated for a long time. Please always get the pH7CMS code from SourceForge. You can download it on the official website: http://software.hizup.com

GitHub is only for developers!

Thanks!

@pH7Software pH7Software locked and limited conversation to collaborators Sep 27, 2014
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants