keyword': $keyphrases = array_map( 'trim', explode( ',', $value ) ); $keyphraseArray = [ 'focus' => [ 'keyphrase' => aioseo()->helpers->sanitizeOption( $keyphrases[0] ) ], 'additional' => [] ]; unset( $keyphrases[0] ); foreach ( $keyphrases as $keyphrase ) { $keyphraseArray['additional'][] = [ 'keyphrase' => aioseo()->helpers->sanitizeOption( $keyphrase ) ]; } $meta['keyphrases'] = wp_json_encode( $keyphraseArray ); break; case 'rank_math_robots': $value = aioseo()->helpers->maybeUnserialize( $value ); if ( ! empty( $value ) ) { $meta['robots_default'] = false; foreach ( $value as $robotsName ) { $meta[ "robots_$robotsName" ] = true; } } break; case 'rank_math_advanced_robots': $value = aioseo()->helpers->maybeUnserialize( $value ); if ( ! empty( $value['max-snippet'] ) && intval( $value['max-snippet'] ) ) { $meta['robots_max_snippet'] = intval( $value['max-snippet'] ); } if ( isset( $value['max-video-preview'] ) && is_numeric( $value['max-video-preview'] ) ) { $meta['robots_max_videopreview'] = intval( $value['max-video-preview'] ); } if ( ! empty( $value['max-image-preview'] ) ) { $meta['robots_max_imagepreview'] = aioseo()->helpers->sanitizeOption( lcfirst( $value['max-image-preview'] ) ); } break; case 'rank_math_facebook_image': $meta['og_image_type'] = 'custom_image'; $meta[ $mappedMeta[ $name ] ] = esc_url( $value ); break; case 'rank_math_twitter_image': $meta['twitter_image_type'] = 'custom_image'; $meta[ $mappedMeta[ $name ] ] = esc_url( $value ); break; case 'rank_math_twitter_card_type': preg_match( '#large#', $value, $match ); $meta[ $mappedMeta[ $name ] ] = ! empty( $match ) ? 'summary_large_image' : 'summary'; break; case 'rank_math_twitter_use_facebook': $meta[ $mappedMeta[ $name ] ] = 'on' === $value; break; case 'rank_math_primary_category': $taxonomy = 'category'; $options = new \stdClass(); $options->$taxonomy = (int) $value; $meta[ $mappedMeta[ $name ] ] = wp_json_encode( $options ); break; case 'rank_math_title': case 'rank_math_description': if ( 'page' === $post->post_type ) { $value = aioseo()->helpers->pregReplace( '#%category%#', '', $value ); $value = aioseo()->helpers->pregReplace( '#%excerpt%#', '', $value ); } $value = aioseo()->importExport->rankMath->helpers->macrosToSmartTags( $value ); default: $meta[ $mappedMeta[ $name ] ] = esc_html( wp_strip_all_tags( strval( $value ) ) ); break; } } $aioseoPost = Models\Post::getPost( $post->ID ); $aioseoPost->set( $meta ); $aioseoPost->save(); aioseo()->migration->meta->migrateAdditionalPostMeta( $post->ID ); // Clear the Overview cache. aioseo()->postSettings->clearPostTypeOverviewCache( $post->ID ); } if ( count( $posts ) === $postsPerAction ) { try { as_schedule_single_action( time() + 5, aioseo()->importExport->rankMath->postActionName, [], 'aioseo' ); } catch ( \Exception $e ) { // Do nothing. } } else { aioseo()->core->cache->delete( 'import_post_meta_rank_math' ); } } }
Fatal error: Uncaught Error: Class "AIOSEO\Plugin\Common\ImportExport\RankMath\PostMeta" not found in /htdocs/wp-content/plugins/all-in-one-seo-pack/app/Common/ImportExport/RankMath/RankMath.php:46 Stack trace: #0 /htdocs/wp-content/plugins/all-in-one-seo-pack/app/Common/ImportExport/ImportExport.php(60): AIOSEO\Plugin\Common\ImportExport\RankMath\RankMath->__construct(Object(AIOSEO\Plugin\Common\ImportExport\ImportExport)) #1 /htdocs/wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(310): AIOSEO\Plugin\Common\ImportExport\ImportExport->__construct() #2 /htdocs/wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(97): AIOSEO\Plugin\AIOSEO->load() #3 /htdocs/wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(76): AIOSEO\Plugin\AIOSEO->init() #4 /htdocs/wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(414): AIOSEO\Plugin\AIOSEO::instance() #5 /htdocs/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php(96): aioseo() #6 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #7 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #8 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #9 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #10 /htdocs/index.php(17): require('/htdocs/wp-blog...') #11 {main} thrown in /htdocs/wp-content/plugins/all-in-one-seo-pack/app/Common/ImportExport/RankMath/RankMath.php on line 46