Wordpress 致命错误 - 无法将非静态方法设为静态
Wordpress Fatal Error - Cannot Make non Static Method Static
抱歉,如果这听起来像是一个愚蠢的问题。昨天我更新了我的 Wordpress 插件,突然一切都崩溃了,返回了一个致命错误。我试图通过恢复模式重新激活网站,但我无法恢复我主题的核心插件的 activity,因为它 returns 这个错误
An error of type E_COMPILE_ERROR was caused in line 130 of the file /var/www/wptbox/wp-content/plugins/lastudio/includes/extensions/swatch/class-lastudio-swatch-widget.php. Error message: Cannot make non static method WC_Widget_Layered_Nav::get_main_search_query_sql() static in class LaStudio_Swatch_Widget
在安全模式下,我的网站页脚消失了,网站每个页面上展示的所有产品也消失了。产品仍然存在于 WooCommerce 中,但展示网格已完全删除。
我能做什么?
非常感谢您的帮助。
可能与 Fatal error: Cannot make non static method
重复
您可以联系插件开发者来处理这个错误。
临时解决方案是:
转到文件 /var/www/wptbox/wp-content/plugins/lastudio/includes/extensions/swatch/class-lastudio-swatch-widget.php
上的第 130
行
将{class name}::get_main_search_query_sql()
更改为\WC_Query::get_main_search_query_sql()
抱歉,如果这听起来像是一个愚蠢的问题。昨天我更新了我的 Wordpress 插件,突然一切都崩溃了,返回了一个致命错误。我试图通过恢复模式重新激活网站,但我无法恢复我主题的核心插件的 activity,因为它 returns 这个错误
An error of type E_COMPILE_ERROR was caused in line 130 of the file /var/www/wptbox/wp-content/plugins/lastudio/includes/extensions/swatch/class-lastudio-swatch-widget.php. Error message: Cannot make non static method WC_Widget_Layered_Nav::get_main_search_query_sql() static in class LaStudio_Swatch_Widget
在安全模式下,我的网站页脚消失了,网站每个页面上展示的所有产品也消失了。产品仍然存在于 WooCommerce 中,但展示网格已完全删除。 我能做什么?
非常感谢您的帮助。
可能与 Fatal error: Cannot make non static method
重复您可以联系插件开发者来处理这个错误。
临时解决方案是:
转到文件 /var/www/wptbox/wp-content/plugins/lastudio/includes/extensions/swatch/class-lastudio-swatch-widget.php
130
行
将{class name}::get_main_search_query_sql()
更改为\WC_Query::get_main_search_query_sql()