wpdotnet-sdk
wpdotnet-sdk copied to clipboard
Yoast SEO plugin not working
Hello, after installing the plugin Yoast SEO [wordpress-seo] there are some errors inside admin area (plugins.php page):
PHP4046 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/promises/src/functions.php (201,12): Call to a member function then() on array|boolean
PHP5018 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/promises/src/functions.php (201,12): Deprecated: Method 'each' has been deprecated.
PHP5014 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/promises/src/functions.php (201,12): each() expects 1 parameter(s), 3 given
PHP4046 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/promises/src/functions.php (230,12): Call to a member function then() on array|boolean
PHP5018 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/promises/src/functions.php (230,12): Deprecated: Method 'each' has been deprecated.
PHP5014 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/promises/src/functions.php (230,12): each() expects 1 parameter(s), 3 given
PHP4046 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/promises/src/functions.php (276,12): Call to a member function then() on array|boolean
PHP5018 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/promises/src/functions.php (276,12): Deprecated: Method 'each' has been deprecated.
PHP5014 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/promises/src/functions.php (276,12): each() expects 1 parameter(s), 3 given
PHP5025 /wp-content/plugins/wordpress-seo/admin/menu/class-replacevar-editor.php (101,4): Call to 'printf()' expects 10 argument(s), 12 given.
PHP5007 /wp-content/plugins/wordpress-seo/vendor/composer/ClassLoader.php (345,58): Undefined variable: $hit
PHP5007 /wp-content/plugins/wordpress-seo/src/deprecated/frontend/class-opengraph.php (58,54): Undefined variable: $og_property
PHP5009 /wp-content/plugins/wordpress-seo/src/deprecated/frontend/schema/class-schema-author.php (115,18): Call to undefined method: WPSEO_Deprecated_Graph_Piece::determine_user_id()
PHP5014 /wp-content/plugins/wordpress-seo/src/integrations/third-party/the-events-calendar.php (45,15): new Yoast\WP\SEO\Generators\Schema\Third_Party\Events_Calendar_Schema() expects 0 parameter(s), 1 given
PHP5018 /wp-content/plugins/wordpress-seo/src/deprecated/frontend/schema/class-schema-howto.php (205,36): Deprecated: Method 'WPSEO_Schema_HowTo::get_image_schema' has been deprecated. 14.0
PHP6004 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/psr7/src/Stream.php (55,21): Use of '__destruct' is discouraged. Garbage collection behavior is a subject to change.
PHP6004 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/psr7/src/FnStream.php (40,21): Use of '__destruct' is discouraged. Garbage collection behavior is a subject to change.
PHP5025 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/psr7/src/LimitStream.php (62,50): Call to 'sprintf()' expects 2 argument(s), 3 given.
PHP6004 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php (31,21): Use of '__destruct' is discouraged. Garbage collection behavior is a subject to change.
PHP5009 /wp-content/plugins/wordpress-seo/src/deprecated/src/integrations/third-party/elementor.php (40,12): Call to undefined method: Exclude_Elementor_Post_Types::__construct()
PHP6004 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php (34,21): Use of '__destruct' is discouraged. Garbage collection behavior is a subject to change.
PHP5014 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/Handler/StreamHandler.php (223,20): stream_context_create() expects 1 parameter(s), 2 given
PHP6004 /wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php (47,21): Use of '__destruct' is discouraged. Garbage collection behavior is a subject to change.
And after activating the plugin this is displayed as text inside both administration&frontend area (it's before declaration in source html code):
*/
if ( ! function_exists( 'add_filter' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
if ( ! defined( 'WPSEO_FILE' ) ) {
define( 'WPSEO_FILE', __FILE__ );
}
// Load the Yoast SEO plugin.
require_once dirname( WPSEO_FILE ) . '/wp-seo-main.php';
thank you @ghostiq!
- [ ] Compilation issues are related with this issue https://github.com/Yoast/wordpress-seo/issues/17497. It can be avoided with the manual building of plugin and adjusting
\eachcalls toeachin lines mentioned in the log. - [x] There is a next problem due to this issue https://github.com/peachpiecompiler/peachpie/issues/979.
- [x] And the last problem is solved by https://github.com/iolevel/wpdotnet-sdk/pull/118