E_WARNING in /var/www/public/wp-content/plugins/tablepress/libraries/freemius/includes/class-freemius.php:14598 Undefined array key 1
If an ajax request is being made and the endpoint URL is not inside wp-admin, freemius triggers a warning because it's trying to access a non-existant array key.
The bug is in the static function get_current_page():
preg_match will only fill self_matches if it actually matches something.
The solution is to check return values or using something like the null-coalescing operator, e.g. by turning the offending line into $pagenow = $self_matches[1] ?? "";.
E_WARNING in /var/www/public/wp-content/plugins/tablepress/libraries/freemius/includes/class-freemius.php:14598 Undefined array key 1
If an ajax request is being made and the endpoint URL is not inside wp-admin, freemius triggers a warning because it's trying to access a non-existant array key.
The bug is in the static function
get_current_page()
:preg_match
will only fill self_matches if it actually matches something.The solution is to check return values or using something like the null-coalescing operator, e.g. by turning the offending line into
$pagenow = $self_matches[1] ?? "";
.