pH7Software / pH7-Social-Dating-CMS

😻 pH7Builder (formerly pH7CMS) is a Professional & Open Source Social Dating CMS written in PHP 8 πŸš€ This Social Dating Script aims to be low resource-intensive, powerful and secure. pH7Builder includes over 40 modules. It is the first Professional, Free & Open Source Social Dating Site Builder Software and the first choice for enterprise level Da
https://pH7Builder.com
MIT License
968 stars 579 forks source link

Blank Page After Installation #22

Closed kisssssss closed 10 years ago

kisssssss commented 10 years ago

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 commented 10 years ago

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

ghozzt commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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

Thanks

pH7Software commented 10 years ago

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 https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/22#issuecomment-49606714 .

_- 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 commented 10 years ago

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 commented 10 years ago

Hi, everything is normal in your config file. I think, this is your problem -> https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/19

Coaden commented 10 years ago

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 commented 10 years ago

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!