Support » Plugin: No Category Base (WPML) » Bug with WPML

  • Hi,
    i get an error with Category from posts, i think in the remove filter, there are missing arguments, i fix this error temporary with hide these with define(‘WP_DEBUG_DISPLAY’, false);

    Enable @ini_set(‘display_errors’,’On’); on your dev

    Warning: Missing argument 2 for SitePress::terms_clauses(), called in /wp-includes/plugin.php on line 235 and defined in /wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 2563

    Could you help me ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes. Go to the file no-category-base-wpml.php and change
    add_filter( ‘terms_clauses’, array( $sitepress, ‘terms_clauses’ ) );
    add_filter( ‘terms_clauses’, array( $sitepress, ‘terms_clauses’ ), 10, 4 );

    Thread Starter sireneweb


    Thanks a lot it’s working 🙂
    Could you release new version ?

    Plugin Author Marios Alexandrou


    New version release. Thank you Albin for the code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug with WPML’ is closed to new replies.