Warning: include(): Failed opening '/home/valigeria/public_html/wp-content/languages/plugins/all-in-one-seo-pack-it_IT.l10n.php' for inclusion (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/valigeria/public_html/wp-includes/l10n/class-wp-translation-file-php.php on line 24
ull === $taxonomy ) { continue; } $options = new \stdClass(); if ( isset( $meta['primary_term'] ) ) { $options = json_decode( $meta['primary_term'] ); } $options->$taxonomy = (int) $value; $meta['primary_term'] = wp_json_encode( $options ); } if ( ! in_array( $name, array_keys( $mappedMeta ), true ) ) { continue; } switch ( $name ) { case '_yoast_wpseo_primary_category': $primaryCategory = get_cat_name( $value ); foreach ( $categories as $category ) { if ( aioseo()->helpers->toLowerCase( $primaryCategory ) === aioseo()->helpers->toLowerCase( $category ) ) { $meta[ $mappedMeta[ $name ] ] = $category; break 2; } } $meta[ $mappedMeta[ $name ] ] = ! empty( $categories ) ? $categories[0] : ( ! empty( $primaryCategory ) ? $primaryCategory : '' ); break; case '_yoast_wpseo_meta-robots-noindex': case '_yoast_wpseo_meta-robots-nofollow': if ( (bool) $value ) { $meta[ $mappedMeta[ $name ] ] = ! empty( $value ); $meta['robots_default'] = false; } break; case '_yoast_wpseo_meta-robots-adv': $values = explode( ',', $value ); if ( $values ) { foreach ( $values as $value ) { $meta[ "robots_$value" ] = true; } } break; case '_yoast_wpseo_canonical': $meta[ $mappedMeta[ $name ] ] = esc_url( $value ); break; case '_yoast_wpseo_opengraph-image': $meta['og_image_type'] = 'custom_image'; $meta[ $mappedMeta[ $name ] ] = esc_url( $value ); break; case '_yoast_wpseo_twitter-image': $meta['twitter_use_og'] = false; $meta['twitter_image_type'] = 'custom_image'; $meta[ $mappedMeta[ $name ] ] = esc_url( $value ); break; case '_yoast_wpseo_schema_page_type': $value = aioseo()->helpers->pregReplace( '#\s#', '', $value ); if ( in_array( $post->post_type, [ 'post', 'page', 'attachment' ], true ) ) { break; } if ( ! in_array( $value, ImportExport\SearchAppearance::$supportedWebPageGraphs, true ) ) { break; } $meta[ $mappedMeta[ $name ] ] = 'WebPage'; $meta['schema_type_options'] = wp_json_encode( [ 'webPage' => [ 'webPageType' => $value ] ] ); break; case '_yoast_wpseo_schema_article_type': $value = aioseo()->helpers->pregReplace( '#\s#', '', $value ); if ( 'none' === lcfirst( $value ) ) { $meta[ $mappedMeta[ $name ] ] = 'None'; break; } if ( in_array( $post->post_type, [ 'page', 'attachment' ], true ) ) { break; } $options = new \stdClass(); if ( isset( $meta['schema_type_options'] ) ) { $options = json_decode( $meta['schema_type_options'] ); } $options->article = [ 'articleType' => 'Article' ]; if ( in_array( $value, ImportExport\SearchAppearance::$supportedArticleGraphs, true ) ) { $options->article = [ 'articleType' => $value ]; } else { $options->article = [ 'articleType' => 'BlogPosting' ]; } $meta['schema_type'] = 'Article'; $meta['schema_type_options'] = wp_json_encode( $options ); break; case '_yoast_wpseo_focuskw': $focusKeyphrase = [ 'focus' => [ 'keyphrase' => aioseo()->helpers->sanitizeOption( $value ) ] ]; // Merge with existing keyphrases if the array key already exists. if ( ! empty( $meta['keyphrases'] ) ) { $meta['keyphrases'] = array_merge( $meta['keyphrases'], $focusKeyphrase ); } else { $meta['keyphrases'] = $focusKeyphrase; } break; case '_yoast_wpseo_focuskeywords': $keyphrases = []; if ( ! empty( $meta[ $mappedMeta[ $name ] ] ) ) { $keyphrases = (array) json_decode( $meta[ $mappedMeta[ $name ] ] ); } $yoastKeyphrases = json_decode( $value, true ); if ( is_array( $yoastKeyphrases ) ) { foreach ( $yoastKeyphrases as $yoastKeyphrase ) { if ( ! empty( $yoastKeyphrase['keyword'] ) ) { $keyphrase = [ 'keyphrase' => aioseo()->helpers->sanitizeOption( $yoastKeyphrase['keyword'] ) ]; if ( ! isset( $keyphrases['additional'] ) ) { $keyphrases['additional'] = []; } $keyphrases['additional'][] = $keyphrase; } } } if ( ! empty( $keyphrases ) ) { // Merge with existing keyphrases if the array key already exists. if ( ! empty( $meta['keyphrases'] ) ) { $meta['keyphrases'] = array_merge( $meta['keyphrases'], $keyphrases ); } else { $meta['keyphrases'] = $keyphrases; } } break; case '_yoast_wpseo_title': case '_yoast_wpseo_metadesc': case '_yoast_wpseo_opengraph-title': case '_yoast_wpseo_opengraph-description': case '_yoast_wpseo_twitter-title': case '_yoast_wpseo_twitter-description': if ( 'page' === $post->post_type ) { $value = aioseo()->helpers->pregReplace( '#%%primary_category%%#', '', $value ); $value = aioseo()->helpers->pregReplace( '#%%excerpt%%#', '', $value ); } if ( '_yoast_wpseo_twitter-title' === $name || '_yoast_wpseo_twitter-description' === $name ) { $meta['twitter_use_og'] = false; } $value = aioseo()->importExport->yoastSeo->helpers->macrosToSmartTags( $value, 'post', $post->post_type ); if ( '_yoast_wpseo_title' === $name ) { $title = $value; } default: $meta[ $mappedMeta[ $name ] ] = esc_html( wp_strip_all_tags( strval( $value ) ) ); break; } } // Resetting the `twitter_use_og` option if the user has a custom title and no twitter title. if ( $meta['twitter_use_og'] && $title && empty( $meta['twitter_title'] ) ) { $meta['twitter_use_og'] = false; $meta['twitter_title'] = $title; } if ( ! empty( $meta['keyphrases'] ) && is_array( $meta['keyphrases'] ) ) { $meta['keyphrases'] = wp_json_encode( $meta['keyphrases'] ); } $aioseoPost = Models\Post::getPost( (int) $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->yoastSeo->postActionName, [], 'aioseo' ); } catch ( \Exception $e ) { // Do nothing. } } else { aioseo()->core->cache->delete( 'import_post_meta_yoast_seo' ); } } }
Fatal error: Uncaught Error: Class "AIOSEO\Plugin\Common\ImportExport\YoastSeo\PostMeta" not found in /home/valigeria/public_html/wp-content/plugins/all-in-one-seo-pack-pro/app/Common/ImportExport/YoastSeo/YoastSeo.php:79 Stack trace: #0 /home/valigeria/public_html/wp-content/plugins/all-in-one-seo-pack-pro/app/Pro/ImportExport/YoastSeo/YoastSeo.php(22): AIOSEO\Plugin\Common\ImportExport\YoastSeo\YoastSeo->__construct(Object(AIOSEO\Plugin\Pro\ImportExport\ImportExport)) #1 /home/valigeria/public_html/wp-content/plugins/all-in-one-seo-pack-pro/app/Pro/ImportExport/ImportExport.php(23): AIOSEO\Plugin\Pro\ImportExport\YoastSeo\YoastSeo->__construct(Object(AIOSEO\Plugin\Pro\ImportExport\ImportExport)) #2 /home/valigeria/public_html/wp-content/plugins/all-in-one-seo-pack-pro/app/AIOSEO.php(310): AIOSEO\Plugin\Pro\ImportExport\ImportExport->__construct() #3 /home/valigeria/public_html/wp-content/plugins/all-in-one-seo-pack-pro/app/AIOSEO.php(97): AIOSEO\Plugin\AIOSEO->load() #4 /home/valigeria/public_html/wp-content/plugins/all-in-one-seo-pack-pro/app/AIOSEO.php(76): AIOSEO\Plugin\AIOSEO->init() #5 /home/valigeria/public_html/wp-content/plugins/all-in-one-seo-pack-pro/app/AIOSEO.php(414): AIOSEO\Plugin\AIOSEO::instance() #6 /home/valigeria/public_html/wp-content/plugins/all-in-one-seo-pack-pro/all_in_one_seo_pack.php(96): aioseo() #7 /home/valigeria/public_html/wp-settings.php(517): include_once('/home/valigeria...') #8 /home/valigeria/public_html/wp-config.php(111): require_once('/home/valigeria...') #9 /home/valigeria/public_html/wp-load.php(50): require_once('/home/valigeria...') #10 /home/valigeria/public_html/wp-blog-header.php(13): require_once('/home/valigeria...') #11 /home/valigeria/public_html/index.php(17): require('/home/valigeria...') #12 {main} thrown in /home/valigeria/public_html/wp-content/plugins/all-in-one-seo-pack-pro/app/Common/ImportExport/YoastSeo/YoastSeo.php on line 79