Hi there,
this problem is caused by the new feature – adding the sitemap to the robots.txt automatically:
500 error on all of /wp-admin/ if a plugin uses the robots_txt filter (in this case it was a different SEO plugin that the user had not deactivated – so in this case it would be tolerable, but just fix it for the future):
The first param is null in:
method_exists(seopress_pro_get_service(‘OptionPro’), ‘getRobotsTxtEnable’)
wp-seopress/inc/functions/options-robots-txt.php line 11
So you need to use !empty(…) or something like that in addition to method_exists, I guess – in the entire code base?
entire error message:
Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in …/wp-content/plugins/wp-seopress/inc/functions/options-robots-txt.php:11
