• Resolved hs

    (@haradhansharma)


    Move upMove downToggle panel: Google Merchant Feed XML
    Fatal error: Uncaught Error: Call to undefined function Sabre\Xml\Serializer\standardSerializer()
    in /home/user/public_html/wp-content/plugins/wpsso-google-merchant-feed/vendor/sabre/xml/lib/Writer.php on line 99

    Call stack:

    Sabre\Xml\Writer::write()
    wp-content/plugins/wpsso-google-merchant-feed/vendor/sabre/xml/lib/Writer.php:188
    Sabre\Xml\Writer::writeElement()
    wp-content/plugins/wpsso-google-merchant-feed/vendor/sabre/xml/lib/Service.php:228
    Sabre\Xml\Service::write()
    wp-content/plugins/wpsso-google-merchant-feed/vendor/vitalybaev/google-merchant-feed/src/Feed.php:143
    Vitalybaev\GoogleMerchant\Feed::build_atom()
    wp-content/plugins/wpsso-google-merchant-feed/vendor/vitalybaev/google-merchant-feed/src/Feed.php:103
    Vitalybaev\GoogleMerchant\Feed::build()
    wp-content/plugins/wpsso-google-merchant-feed/lib/xml.php:257
    WpssoGmfXml::get()
    wp-content/plugins/wpsso-google-merchant-feed/lib/submenu/google-merchant.php:126
    WpssoGmfSubmenuGoogleMerchant::get_table_rows()
    wp-content/plugins/wpsso/lib/admin.php:1593
    WpssoAdmin::show_metabox_table()
    wp-admin/includes/template.php:1456
    do_meta_boxes()
    wp-content/plugins/wpsso/lib/admin.php:1427
    WpssoAdmin::show_post_body_settings_form()
    wp-content/plugins/wpsso/lib/admin.php:1275
    WpssoAdmin::show_settings_page()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-admin/admin.php:259
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author JS Morisset

    (@jsmoriss)

    The standardSerializer() function is provided with the WPSSO GMF plugin:

    wpsso-google-merchant-feed/vendor/sabre/xml/lib/Serializer/functions.php:function standardSerializer(Writer $writer, $value): void
    wpsso-google-merchant-feed/vendor/sabre/xml/lib/Serializer/functions.php: standardSerializer($writer, $item);
    wpsso-google-merchant-feed/vendor/sabre/xml/lib/Writer.php: Serializer\standardSerializer($this, $value);

    Perhaps your site is loading an older version of sabre\xml from somewhere which does not include that function. I’ve just released WPSSO GMF v9.11.0 which requires sabre\xml v4.0.6 or better. Hopefully that will fix your issue on your site.

    js.

    Thread Starter hs

    (@haradhansharma)

    Hi, Thank you for reply. Update not works but

    It works after deactivating:

    WPSSO Organization and Place Manager
    and
    WPSSO Tune WP Image Editors

    Thanks

    Plugin Author JS Morisset

    (@jsmoriss)

    Those two add-ons would not prevent PHP from finding the Sabre\Xml\Serializer\standardSerializer() function. It sounds like deactivating those two add-ons changed something else on your site – perhaps the order of loaded plugins, for example.

    js.

    Thread Starter hs

    (@haradhansharma)

    May be you are right. After disabled those I saw working in the backend for cache. After sometime I see same error. And this is after updating latest versions.

    • This reply was modified 3 months, 1 week ago by hs.
    Plugin Author JS Morisset

    (@jsmoriss)

    You probably have an old plugin that includes an old version of Sabre/XML, and this old plugin is probably loading before WPSSO GMF. Have a look through your plugin folders for an old plugin that includes “vendor/sabre/xml” and update that plugin. WPSSO GMF ships with Sabre\XML v4.0.6, which is the current and preferred version.

    js.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.