PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : رفع مشکل تابع price به درستی فراخوانی نشد - دیباگ وردپرس



abbasmarjani
June 18th, 2020, 01:14
سلام وقتتون بخیر، هنگام فعال کردن دیباگ با مشکل زیر مواجه شدم !
notice: تابع price به طور نادرست فراخوانی نشد.
خاصیت های محصول نباید به صورت مستقیم مشاهده شود.

Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/plugins/elementor/modules/page-templates/templates/header-footer.php'), Elementor\Modules\PageTemplates\Module->print_content, call_user_func, Elementor\Modules\PageTemplates\Module->print_callback, the_content, apply_filters('the_content'), WP_Hook->apply_filters, Elementor\Frontend->apply_builder_in_content, Elementor\Frontend->get_builder_content, Elementor\Core\Base\Document->print_elements_with_wrapper, Elementor\Core\Base\Document->print_elements, Elementor\Element_Base->print_element, Elementor\Element_Base->_print_content, Elementor\Element_Base->print_element, Elementor\Element_Base->_print_content, Elementor\Element_Base->print_element, Elementor\Widget_Base->_print_content, Elementor\Widget_Base->render_content, Elementor\bd_ProductByC in
/home2/dypecczd/public_html/store/wp-includes/functions.php online 5161

باتوجه به اخرین خط رفتم به فایل فانکشن پی اچ پی و لاین 5161 تابع زیر بود :

E_USER_NOTICE
 );
} else {
if ( is_null( $version ) ) {
$version = '';
} else {
$version = sprintf( '(This message was added in version %s.)', $version );
}

$message .= sprintf(
' Please see <a href=&quot;%s&quot;>Debugging in WordPress</a> for more information.',
'https://wordpress.org/support/article/debugging-in-wordpress/'
&nbsp;);

trigger_error(
sprintf(
'%1$s was called <strong>incorrectly</strong>. %2$s %3$s',
$function,
$message,
$version
&nbsp;),
E_USER_NOTICE<blockquote>



ممنون میشم راهنماییم کنید

- - - Updated - - -

واقعا اسیر این قضیه شدم و خیلی درگیرم ممنون میشم کمکم کنید