• fhweb设计

    (@fhwebdesign)


    嗨,

    发布/保存新创建的库后,出现以下错误:

    未捕获类型错误:filter_var_array():参数#1($array)必须是数组类型,在/path/is/centered/wp-content/plugins/masy-gallery/inc/masygallery-metabox.php:119中给定为null堆栈跟踪:#0/path/is/centered/wp-content/plugins/masy-gallery/inc/masygallery-metabox.php(119):过滤器var_array()#1/path/is/centerred/wp-includes/class-wp-hook.php(310):masygal_meta_box_save()#2/path/is/centerred/wp-includes/class-wp-hook.php(332):wp_hook->apply_filters()#3/path/is/centerred/wp-includes/plugin.php(517):wp_Hook->do_action()#4/path/is/centerored//wp-includes/post.php(4715):do_action()#5/path/is/centerored/wp-includes/post.php(4817):wp_insert_post()#6/path/is/centerored/wp-admin/includes/post.php(439):wp_update_post()#7 /路径/is/centerored/wp-admin/post.php(227):edit_post()#8{主}抛出的

    请注意,只有在创建没有任何图像的图库后,我才会出现这些错误。

    PHP版本:8.2
    WordPress版本:6.2.2

    如果你发布一个修补程序,我将非常高兴。

    哦,我注意到这个插件也对较小的尺寸使用完整的图像。
    为了提高页面加载速度,最好使用默认情况下由wordpress保存的较小尺寸图像。
    您还考虑了一个延迟加载图像的选项。

    谢谢!

  • 主题“创建库时出错”对新回复关闭。