Is the log_errors setting enabled? It should be by default, but its worth a checkOk, I've fixed the issue with that page. I've enabled the display_errors flag, so I've been able to see the error in the browser. So it is now working on the nightearth site after I've uploaded the fix.
I've left the issue on purpose on the other site: https://www.typicaldish.com/top.php - Invoking this should leave traces in the error log, but it does not.
2023-04-25 05:10:38.337536 [INFO] [3705859] [198.251.73.73:57447#APVH_www.ctyrd.org:443] File not found [/home/********/domains/ctyrd.org/private_html/sitemap.xml]
# enable PHP error logging
php_flag log_errors on
php_value error_log /home/********/domains/ctyrd.org/private_html/PHP_errors.log
I get scripting errors in my error log without having to do that. I’d redact your IP though from the log if that’s yours.The system logging is more of a statistic error, not a scripting error. I only have 404 errors in the logs. 500 error system stops. So no logging. http://www.typicaldish.com/cathouse.php
Code:2023-04-25 05:10:38.337536 [INFO] [3705859] [REDACTED_IP:57447#APVH_www.ctyrd.org:443] File not found [/home/********/domains/ctyrd.org/private_html/sitemap.xml]
PHP error logging may need to be enabled via htaccess and creating your own php error log.
Code:# enable PHP error logging php_flag log_errors on php_value error_log /home/********/domains/ctyrd.org/private_html/PHP_errors.log
No not my IP. So your getting php errors in directadmin User Statistics log files? I addedI get scripting errors in my error log without having to do that. I’d redact your IP though from the log if that’s yours.
<?php include 'footer.php';?>
[25-Apr-2023 11:05:54 America/Chicago] PHP Warning: include(footer.php): Failed to open stream: No such file or directory in /home/********/domains/ctyrd.org/public_html/index.php on line 83
Yes, this was in my DirectAdmin User Statistics error log for the domain when I did the same thing you did.No not my IP. So your getting php errors in directadmin User Statistics log files? I addedto my index file no file footer.php and no php error in log. But I did get error here: https://ctyrd.org/logs/php_errors.logCode:<?php include 'footer.php';?>
php error returned:
Code:[25-Apr-2023 11:05:54 America/Chicago] PHP Warning: include(footer.php): Failed to open stream: No such file or directory in /home/********/domains/ctyrd.org/public_html/index.php on line 83
2023-04-25 12:50:57.948258 [NOTICE] [3037364] [T0] [127.0.0.1:57360#APVH_www.sprintswac.tk:443] [STDERR] PHP Warning: include(footer.php): Failed to open stream: No such file or directory in /home/username/domains/sprintswac.tk/public_html/test_file.php on line 1
2023-04-25 12:50:57.948271 [NOTICE] [3037364] [T0] [127.0.0.1:57360#APVH_www.sprintswac.tk:443] [STDERR] PHP Stack trace:
2023-04-25 12:50:57.998354 [NOTICE] [3037364] [T0] [127.0.0.1:57360#APVH_www.sprintswac.tk:443] [STDERR] PHP 1. {main}() /home/username/domains/sprintswac.tk/public_html/test_file.php:0
2023-04-25 12:50:57.998405 [NOTICE] [3037364] [T0] [127.0.0.1:57360#APVH_www.sprintswac.tk:443] [STDERR] PHP Warning: include(): Failed opening 'footer.php' for inclusion (include_path='.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home/username/domains/sprintswac.tk/public_html/test_file.php on line 1
2023-04-25 12:50:57.998411 [NOTICE] [3037364] [T0] [127.0.0.1:57360#APVH_www.sprintswac.tk:443] [STDERR] PHP Stack trace:
2023-04-25 12:50:57.998417 [NOTICE] [3037364] [T0] [127.0.0.1:57360#APVH_www.sprintswac.tk:443] [STDERR] PHP 1. {main}() /home/username/domains/sprintswac.tk/public_html/test_file.php:0