This fix should work.
1. Remove yoast free version
2. Remove yoast premium version (nulled, old one)
3. Clean cache
4. Install new yoast free version from yoast site
5. Install new yoast premium version (nulled) for ex. from babiato site
6. Use ftp, connect with your server, go to dir /wordpress-seo-premium
7. In the file wp-seo-premium.php
replace this code:
$site_information = (object) [
'subscriptions' => [
(object) [
'product' => (object) [ 'slug' => 'yoast-seo-wordpress-premium' ],
'expiryDate' => '+5 years'
],
(object) [
'product' => (object) [ 'slug' => 'yoast-seo-news' ],
'expiryDate' => '+5 years'
],
(object) [
'product' => (object) [ 'slug' => 'yoast-seo-woocommerce' ],
'expiryDate' => '+5 years'
],
(object) [
'product' => (object) [ 'slug' => 'yoast-seo-video' ],
'expiryDate' => '+5 years'
],
(object) [
'product' => (object) [ 'slug' => 'yoast-seo-local' ],
'expiryDate' => '+5 years'
]
],
];
with the following code:
$site_information = (object)[
'subscriptions'=>[
(object)['renewalUrl'=>'','expiryDate'=>'2022-12-12T01:00:00.000Z','product'=>['name'=>'yoast-seo-news','slug'=>'yoast-seo-news','download'=>'/','storeUrl'=>'/','changelog'=>'','version'=>'13.1','lastUpdated'=>'2022-04-19T09:14:22.000Z']],
(object)['renewalUrl'=>'','expiryDate'=>'2022-12-12T01:00:00.000Z','product'=>['name'=>'yoast-seo-local','slug'=>'yoast-seo-local','download'=>'/','storeUrl'=>'/','changelog'=>'','version'=>'14.4','lastUpdated'=>'2022-04-19T09:14:22.000Z']],
(object)['renewalUrl'=>'','expiryDate'=>'2022-12-12T01:00:00.000Z','product'=>['name'=>'yoast-seo-video','slug'=>'yoast-seo-video','download'=>'/','storeUrl'=>'/','changelog'=>'','version'=>'14.6','lastUpdated'=>'2022-07-12T10:45:19.000Z']],
(object)['renewalUrl'=>'','expiryDate'=>'2022-12-12T01:00:00.000Z','product'=>['name'=>'yoast-seo-woocommerce','slug'=>'yoast-seo-woocommerce','download'=>'/','storeUrl'=>'/','changelog'=>'','version'=>'15.0','lastUpdated'=>'2022-07-12T10:45:19.000Z']],
(object)['renewalUrl'=>'','expiryDate'=>'2022-12-12T01:00:00.000Z','product'=>['name'=>'yoast-seo-wordpress-premium','slug'=>'yoast-seo-wordpress-premium','download'=>'/','storeUrl'=>'/','changelog'=>'','version'=>'18.9','lastUpdated'=>'2022-07-12T10:45:19.000Z']]],
'url' => '/',
];
8. This warning will disappear, enjoy