December 15, 2021 at 8:50 am
Hi,
something for your development department. I sometimes see such errors in the php/apache log:
[15-Dec-2021 14:24:10 UTC] PHP Fatal error: Uncaught Error: Call to undefined function do_action() in /srv/data/web/vhosts/www.mysite.com/htdocs/wp-content/themes/virtue_premium/404.php:5
Stack trace:
#0 {main}
thrown in /srv/data/web/vhosts/www.mysite.com/htdocs/wp-content/themes/virtue_premium/404.php on line 5
This seems to be caused because some bots try to directly access the virtue_premium/404.php template page.
Some templates like virtue_premium/sidebar.php the following on top:
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
However, the virtue_premium/404.php does not have this like many other virtue php files. Could the if ( ! defined( 'ABSPATH' ) ) exit; be added whereever it is still missing in a future version? For increased security and to so that the logs are not polluted by these bots…
Kind regards!
-
This topic was modified 4 years, 4 months ago by
Nadine.