Php errors when bots directly calls plugin php
-
Hi,
My php error log is filled with the errors due to bad bots calling php directly
PHP Fatal error: Uncaught Error: Call to undefined function plugin_basename() in /home/www/wp-content/plugins/contact-form-7/wp-contact-form-7.php:19
Stack trace:
#0 {main}
thrown in /home/www/wp-content/plugins/contact-form-7/wp-contact-form-7.php on line 19Can you please add a line in the main php file
if ( !defined(‘ABSPATH’) ) {exit;}
Thank you.
- The topic ‘Php errors when bots directly calls plugin php’ is closed to new replies.