• Resolved Texadian

    (@whiteselljim)


    Ok, I messed up! There was an update for WPSSO Core and I accidentally navigated away from the plugin page during the update. Now the site is throwing the following error whenever WPSSO is activated:

    ArgumentCountError thrown
    Too few arguments to function saswp_output_compatibility::saswp_exclude_wpsso_schema_graph(), 3 passed in public_html/xxxxx/wp-includes/class-wp-hook.php on line 287 and exactly 5 expected

    Thinking the files got corrupted, I downloaded the plugin and manually uploaded the entire plugin folder using SFTP, overwriting the existing files. The problem continued. Everything is back to normal if I deactivate it, the error is present when the plugin is active.

    I then manually deleted the entire plugin folder (again via SFTP) and reinstalled it through the plugin interface in the WP admin. Still have the error.

    Can you point me in the right direction to fix whatever I’ve mangled?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author JS Morisset

    (@jsmoriss)

    You should contact the author of schema-and-structured-data-for-wp, as this is where the problem is. That plugin disables the Schema markup from the WPSSO JSON add-on. They hook this filter with 5 arguments, but since they do not use any of the arguments, they really do not need to declare any.

    They should change this:

    add_filter( ‘wpsso_json_prop_https_schema_org_graph’, array($this ,’saswp_exclude_wpsso_schema_graph’), 10, 5 );

    public function saswp_exclude_wpsso_schema_graph( $prop_data, $mod, $mt_og, $page_type_id, $is_main ) {
    return array();
    }

    To this:

    add_filter( ‘wpsso_json_prop_https_schema_org_graph’, __return_empty_array );

    BTW, I assume you’ve compared the Schema markup from that plugin with the Schema markup from the WPSSO JSON add-on, right? ?? I don’t know of any plugin that offers a more extensive and complete markup than the WPSSO JSON add-on, so I would be interested to know why you selected that plugin instead of the WPSSO JSON add-on (so we can make the WPSSO JSON add-on even better). ??

    js.

    Thread Starter Texadian

    (@whiteselljim)

    Hey JS,

    Thanks, you’re a life saver!
    OK, I’m embarrassed – I didn’t realize I had two competing plugins running. I’ve deleted the other one. I do also use the WPSSO JSON add-on.

    Thanks for your quick response!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error updating’ is closed to new replies.