我的WooCommerce页面出现问题。我试图停用WordPress网站上除WooCommerce外的所有插件。您能帮助我解决这个问题吗?(我试图到处搜索解决方案,但没有成功:/)如果可能的话,我真的不想重新安装WooCommerce。
任何想法都有帮助,非常感谢:)
/data/web/virtuals/298612/virtual/www/domains/miltexshop.cz/wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminAssets.php:128堆栈跟踪:#0 /data/web/virtuals/298612/virtual/www/domains/miltexshop.cz/wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminAssets.php(401):Automattic\WooCommerce\Internal\Admin\WCAdminAssets::get_script_asset_filename Copyright © 2019 www.wc-products-trackin.com版权所有并保留所有权利寄存器脚本Copyright © 2019 www.wp-trackin.com版权所有并保留所有权利© 2019 miltexshop.cz/wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminAssets.php权利
x1c 0d1x的数据
WCAdminAssets.php(function:get_script_asset_filename)
/**
* Gets a script asset registry filename. The asset registry lists dependencies for the given script.
*
* @param string $script_path_name Path to where the script asset registry is contained.
* @param string $file File name (without extension).
* @return string complete asset filename.
*
* @throws \Exception Throws an exception when a readable asset registry file cannot be found.
*/
public static function get_script_asset_filename( $script_path_name, $file ) {
$minification_supported = Features::exists( 'minified-js' );
$script_min_filename = $file . '.min.asset.php';
$script_nonmin_filename = $file . '.asset.php';
$script_asset_path = WC_ADMIN_ABSPATH . WC_ADMIN_DIST_JS_FOLDER . $script_path_name . '/';
// Check minification is supported first, to avoid multiple is_readable checks when minification is
// not supported.
if ( $minification_supported && is_readable( $script_asset_path . $script_min_filename ) ) {
return $script_min_filename;
} elseif ( is_readable( $script_asset_path . $script_nonmin_filename ) ) {
return $script_nonmin_filename;
} else {
// could not find an asset file, throw an error.
throw new \Exception( 'Could not find asset registry for ' . $script_path_name );
}
}
字符串
1条答案
按热度按时间ff29svar1#
你可以安全地覆盖woocommerce插件。有时在插件更新期间(特别是如果你在后端不断更改内容),即使wp显示它是成功的,更新也会失败。
如果发生这种情况,99/100是因为woocommerce丢失了文件。如果你不想删除它,download it from wordpress或github (with the label
latest
)并用ssh或(s)ftp覆盖它。