You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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] ?? "";.
The text was updated successfully, but these errors were encountered:
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] ?? "";
.The text was updated successfully, but these errors were encountered: