代码之家  ›  专栏  ›  技术社区  ›  Rado Harutyunyan

试图创建新的公文包时在WordPress站点中获取错误“参数ID必须是数字且大于0。”

  •  0
  • Rado Harutyunyan  · 技术社区  · 5 年前

    我需要以下帮助,当我试图在我的wordpress站点中添加新的公文包时,我遇到了内部服务器错误。

    Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'Argument ID must be numeric and greater than 0.' in /var/www/html/gar/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:28
    Stack trace:
    #0 /var/www/html/gar/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element-factory.php(35): WPML_Translation_Element->__construct(0, Object(SitePress), NULL)
    #1 /var/www/html/gar/wp-content/plugins/wpml-translation-management/classes/words-count/hooks/wpml-tm-word-count-refresh-hooks.php(39): WPML_Translation_Element_Factory->create(0, 'post')
    #2 [internal function]: WPML_TM_Word_Count_Refresh_Hooks->refresh_post_word_count(0)
    #3 /var/www/html/gar/wp-includes/plugin.php(525): call_user_func_array(Array, Array)
    #4 /var/www/html/gar/wp-includes/post.php(3385): do_action('save_post', 0, NULL, false)
    #5 /var/www/html/gar/wp-admin/includes/post.php(625): wp_insert_post(Array)
    #6 /var/www/html/gar/wp-admin/post-new.php(83): get_ in /var/www/html/gar/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php on line 28
    

    谁知道我能做什么?

    0 回复  |  直到 5 年前