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

PHP7.4 bootup issue. #45

Closed
viksts opened this issue Jan 30, 2020 · 13 comments
Closed

PHP7.4 bootup issue. #45

viksts opened this issue Jan 30, 2020 · 13 comments

Comments

@viksts
Copy link

viksts commented Jan 30, 2020

Hi,

Is this fork version of zf1 is only limited to PHP7.3? because i am trying to set it up on PHP7.4 and it's not booting up and it's also not giving any kind of error.
So my question is it possible to run this fork version on PHP7.4 by any means.

@Pooky
Copy link

Pooky commented Jan 30, 2020

Hi, do you have error reporting turned on?

On global level: error_reporting(E_ALL);
Or in application.ini -

; show errors and exceptions during development
 phpSettings.display_startup_errors = 1
 phpSettings.display_errors = 1
 resources.frontController.params.displayExceptions = 1

@viksts
Copy link
Author

viksts commented Jan 30, 2020

Hi,
All this settings are enabled.

@viksts
Copy link
Author

viksts commented Feb 4, 2020

Hi,
waiting for your reply.

@Pooky
Copy link

Pooky commented Feb 4, 2020

Hi, thanks for the reminder. Well I think it should work also on PHP 7.4 but I don't have any machine to test it on. I am currently running ZF future on PHP 7.0.30 and PHP 7.1.2 and it works fine.

Can you post here phpinfo() and output of index page of your application? Also php_errors log would be nice, if it's available. There can be problem with configuration or something else on the server but it should give some output or errors when you start the application.

@viksts
Copy link
Author

viksts commented Feb 4, 2020

PHP 7 4 0 - phpinfo
phpinfo details.
In index file i am just loading my bootstrap file with all application configuration.
And i am not getting any kind off error its just showing a white page.

@gavinsbtm
Copy link

ZF1-Future running fine on my PHP7.4 server.

Run your app and check the apache log file for errors.

@viksts
Copy link
Author

viksts commented Feb 4, 2020

ZF1-Future running fine on my PHP7.4 server.

Run your app and check the apache log file for errors.

Hi is there anyway through which i can check if the framework is loading up or not. Because i am not getting any kind of error.

@Pooky
Copy link

Pooky commented Feb 4, 2020

ZF1-Future running fine on my PHP7.4 server.
Run your app and check the apache log file for errors.

Hi is there anyway through which i can check if the framework is loading up or not. Because i am not getting any kind of error.

Can you check with Developer Tools? There can be some errors in html code or you should get at least some HTTP headers like this:

image

@viksts
Copy link
Author

viksts commented Feb 4, 2020

ZF1-Future running fine on my PHP7.4 server.
Run your app and check the apache log file for errors.

Hi is there anyway through which i can check if the framework is loading up or not. Because i am not getting any kind of error.

Can you check with Developer Tools? There can be some errors in html code or you should get at least some HTTP headers like this:

image

In developer console it giving an error

THIS REQUEST HAS NO RESPONSE DATA AVAILABLE

@Pooky
Copy link

Pooky commented Feb 4, 2020

Check your apache error log - as suggested by @gavinsbtm
image

@viksts
Copy link
Author

viksts commented Feb 4, 2020

Hi,
This is what i got
[04-Feb-2020 08:44:55 UTC] PHP 1. {main}() D:\wamp64\www\orchard\public\zf_index.php:0
[04-Feb-2020 08:44:55 UTC] PHP 2. Zend_Application->run() D:\wamp64\www\orchard\public\zf_index.php:11
[04-Feb-2020 08:44:55 UTC] PHP 3. Bootstrap->run() D:\wamp64\www\orchard\vendor\shardj\zf1-future\library\Zend\Application.php:384
[04-Feb-2020 08:44:55 UTC] PHP 4. Zend_Controller_Front->dispatch() D:\wamp64\www\orchard\vendor\shardj\zf1-future\library\Zend\Application\Bootstrap\Bootstrap.php:105
[04-Feb-2020 08:44:55 UTC] PHP 5. Zend_Controller_Plugin_Broker->preDispatch() D:\wamp64\www\orchard\vendor\shardj\zf1-future\library\Zend\Controller\Front.php:941
[04-Feb-2020 08:44:55 UTC] PHP 6. Web_Controller_Plugin_OrchAuth->preDispatch() D:\wamp64\www\orchard\vendor\shardj\zf1-future\library\Zend\Controller\Plugin\Broker.php:309
[04-Feb-2020 08:44:55 UTC] PHP 7. Service_UIManage->createUIRestrictions() D:\wamp64\www\orchard\library\Web\Controller\Plugin\OrchAuth.php:162
[04-Feb-2020 08:44:55 UTC] PHP 8. Model_UiRestrictions::getAllUiRestrictionByAccountType() D:\wamp64\www\orchard\src\Service\UIManage.php:31
[04-Feb-2020 08:44:55 UTC] PHP 9. Doctrine_Query::create() D:\wamp64\www\orchard\application\models\UiRestrictions.php:21
[04-Feb-2020 08:44:55 UTC] PHP 10. Doctrine_Query->__construct() D:\wamp64\www\orchard\vendor\siturra\doctrine1-php7\lib\Doctrine\Query.php:192
[04-Feb-2020 08:44:55 UTC] PHP 11. spl_autoload_call() D:\wamp64\www\orchard\vendor\siturra\doctrine1-php7\lib\Doctrine\Query\Abstract.php:292
[04-Feb-2020 08:44:55 UTC] PHP 12. Composer\Autoload\ClassLoader->loadClass() D:\wamp64\www\orchard\vendor\siturra\doctrine1-php7\lib\Doctrine\Query\Abstract.php:292
[04-Feb-2020 08:44:55 UTC] PHP 13. Composer\Autoload\includeFile() D:\wamp64\www\orchard\vendor\composer\ClassLoader.php:322

@Shardj
Copy link
Owner

Shardj commented Feb 4, 2020

Hi mate, I'm currently still running everything on PHP 7.2 and likely won't change to 7.4 for another half a year. However when I tested swapping over to 7.4 inside my docker container a little while ago I don't remember having any issues.

I notice in your stack trace that the issue seems to be happening in your OrchAuth plugin though so that's likely where you need to look.

I'd recommend you set up xdebug and step through so you can try to figure out what's working differently for you when compared to the previous version you were using.

@viksts
Copy link
Author

viksts commented Feb 6, 2020

Hi mate, I'm currently still running everything on PHP 7.2 and likely won't change to 7.4 for another half a year. However when I tested swapping over to 7.4 inside my docker container a little while ago I don't remember having any issues.

I notice in your stack trace that the issue seems to be happening in your OrchAuth plugin though so that's likely where you need to look.

I'd recommend you set up xdebug and step through so you can try to figure out what's working differently for you when compared to the previous version you were using.

Hi mate,
Its working fine now actually had some application level misconfiguration. Fixed those and now its runing. So closing this issue.
KEEP UP THE GOOD WORK

@viksts viksts closed this as completed Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants