Replies: 10 comments 14 replies
-
Hello From what version of Phalcon do you migrating? |
Beta Was this translation helpful? Give feedback.
-
the line in index.php which breaks (error 500): the following works though: |
Beta Was this translation helpful? Give feedback.
-
tried php56-php and the same error. tried phalcon 4 and function tried the following without joy either: |
Beta Was this translation helpful? Give feedback.
-
You will need to enable logs to know where is the problem. |
Beta Was this translation helpful? Give feedback.
-
As an alternative to console logs, you can configure Sentry in your project.
And inside
More docs here: https://docs.sentry.io/platforms/php/ It will give you possibility to see all errors of you application in one place. |
Beta Was this translation helpful? Give feedback.
-
my index.php a few head lines: 'DSN_url' ]); error_reporting(E_ALL); ... and new error: php index.php PHP Warning: Use of undefined constant vendor - assumed 'vendor' (this will throw an Error in a future version of PHP) in /var/www/html/jdm/public/index.php on line 2 PHP Warning: Use of undefined constant autoload - assumed 'autoload' (this will throw an Error in a future version of PHP) in /var/www/html/jdm/public/index.php on line 2 PHP Warning: A non-numeric value encountered in /var/www/html/jdm/public/index.php on line 2 PHP Warning: A non-numeric value encountered in /var/www/html/jdm/public/index.php on line 2 PHP Warning: Division by zero in /var/www/html/jdm/public/index.php on line 2 PHP Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /var/www/html/jdm/public/index.php on line 2 PHP Warning: require(NANphp): failed to open stream: No such file or directory in /var/www/html/jdm/public/index.php on line 2 PHP Fatal error: require(): Failed opening required 'NANphp' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/jdm/public/index.php on line 2 |
Beta Was this translation helpful? Give feedback.
-
require vendor/autoload.php; |
Beta Was this translation helpful? Give feedback.
-
index.php first 3 lines require vendor/autoload.php; and new error: php index.php PHP Warning: Use of undefined constant vendor - assumed 'vendor' (this will throw an Error in a future version of PHP) in /var/www/html/jdm/public/index.php on line 2 PHP Warning: Use of undefined constant autoload - assumed 'autoload' (this will throw an Error in a future version of PHP) in /var/www/html/jdm/public/index.php on line 2 PHP Warning: A non-numeric value encountered in /var/www/html/jdm/public/index.php on line 2 PHP Warning: A non-numeric value encountered in /var/www/html/jdm/public/index.php on line 2 PHP Warning: Division by zero in /var/www/html/jdm/public/index.php on line 2 PHP Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /var/www/html/jdm/public/index.php on line 2 PHP Warning: require(NANphp): failed to open stream: No such file or directory in /var/www/html/jdm/public/index.php on line 2 PHP Fatal error: require(): Failed opening required 'NANphp' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/jdm/public/index.php on line 2 |
Beta Was this translation helpful? Give feedback.
-
/var/opt/remi/php73/log/php-fpm/www-error.log shows: [13-Mar-2021 11:09:50 UTC] PHP Fatal error: Uncaught Error: Class 'Security' not found in /var/www/html/jdm/public/index2.php:36 the file does exist: I believe it is loaded as the same code worked in Windows and Centos6 :
|
Beta Was this translation helpful? Give feedback.
-
Try to look at autoloading in Phalcon's demo projects, which uses composer PSR-4 Example: |
Beta Was this translation helpful? Give feedback.
-
Hi All,
the most related discussion of my issue is here:
https://forum.phalcon.io/discussion/13099/upgrading-to-phalcon-3-broke-the-existing-site
However, i failed to locate Module.php
Please shed some light.
Thanks a lot in advance
Beta Was this translation helpful? Give feedback.
All reactions