Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 21 replies, has 2 voices.

Last updated by Andrey 1 year, 11 months ago.

Assisted by: Andrey.

Author Posts
May 10, 2023 at 2:04 pm #13623419

volodymyrZ-4

Я попробую ваши шаги, прошу не закрывайте тикет. Я смогу это сделать не раньше субботы 13.05

May 10, 2023 at 2:48 pm #13623823

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Да, обновляйте все до последних версий и после делайте только тесты. Чтобы убедиться, что проблема не из за несовместимости чего-то с новыми версиями плагинов или WordPress.


Если это дубликат, то где мне искать оригинал??? Я что-то не видел повторный продукт с этим названием.

Прикрепил скриншоты.

Тикеты закрываются автоматически при не активности. До субботы не должен закрыться.

Screen1.png
Screen2.png
May 10, 2023 at 2:51 pm #13623945

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Товар Dr Althea Gentle Pore Cleansing Oil 150 ml , насколько вижу уже имеет правильный ID товара для русского, наверно уже сделали так как необходимо. Поэтому, нет необходимости делать что показал на скрине1.

May 10, 2023 at 4:52 pm #13625583

volodymyrZ-4

А теперь понятно, это вы были на странице товара и я перехватывал?

Верно?

Теперь я сделал как вы сказали и понимаю что слетела главная страница.

Это возможно из-за того что на главной странице у нас имеется блок "ТОП продаж, и возможно из-за того что что я удалил дубликат товара Dr Althea Gentle Pore Cleansing Oil 150 ml и вернул прошлый ID, возникла критическая ошибка....

2023-05-10T16:42:19+00:00 CRITICAL Uncaught Error: Call to a member function get_stock_status() on bool in /home/o93rwsv/public_html/wp-content/themes/shoptimizer-child-theme/functions.php:351
Stack trace:
#0 /home/o93rwsv/public_html/wp-content/themes/shoptimizer-child-theme/functions.php(482): get_best_selling_products()
#1 /home/o93rwsv/public_html/wp-includes/shortcodes.php(355): best_sellers_function()
#2 [internal function]: do_shortcode_tag()
#3 /home/o93rwsv/public_html/wp-includes/shortcodes.php(227): preg_replace_callback()
#4 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/widgets/shortcode.php(130): do_shortcode()
#5 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2268): Elementor\Widget_Shortcode->render()
#6 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode()
#7 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(750): Elementor\Widget_Base->render_content()
#8 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/base/element-base.php(449): Elementor\Widget_Base->print_content()
#9 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1354): Elementor\Element_Base->print_element()
#10 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/base/element-base.php(449): Elementor\Element_Base->print_content()
#11 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1354): Elementor\Element_Base->print_element()
#12 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/base/element-base.php(449): Elementor\Element_Base->print_content()
#13 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1354): Elementor\Element_Base->print_element()
#14 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/base/element-base.php(449): Elementor\Element_Base->print_content()
#15 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1354): Elementor\Element_Base->print_element()
#16 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/base/element-base.php(449): Elementor\Element_Base->print_content()
#17 /home/o93rwsv/public_html/wp-content/plugins/elementor/core/base/document.php(1680): Elementor\Element_Base->print_element()
#18 /home/o93rwsv/public_html/wp-content/plugins/elementor/core/base/document.php(1106): Elementor\Core\Base\Document->print_elements()
#19 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/frontend.php(1179): Elementor\Core\Base\Document->print_elements_with_wrapper()
#20 /home/o93rwsv/public_html/wp-content/plugins/elementor/includes/frontend.php(1074): Elementor\Frontend->get_builder_content()
#21 /home/o93rwsv/public_html/wp-includes/class-wp-hook.php(308): Elementor\Frontend->apply_builder_in_content()
#22 /home/o93rwsv/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#23 /home/o93rwsv/public_html/wp-includes/post-template.php(255): apply_filters()
#24 /home/o93rwsv/public_html/wp-content/plugins/elementor/modules/page-templates/module.php(190): the_content()
#25 [internal function]: Elementor\Modules\PageTemplates\Module->print_callback()
#26 /home/o93rwsv/public_html/wp-content/plugins/elementor/modules/page-templates/module.php(207): call_user_func()
#27 /home/o93rwsv/public_html/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(19): Elementor\Modules\PageTemplates\Module->print_content()
#28 /home/o93rwsv/public_html/wp-includes/template-loader.php(106): include('/home/o93rwsv/p...')
#29 /home/o93rwsv/public_html/wp-blog-header.php(19): require_once('/home/o93rwsv/p...')
#30 /home/o93rwsv/public_html/index.php(17): require('/home/o93rwsv/p...')
#31 {main}
thrown в /home/o93rwsv/public_html/wp-content/themes/shoptimizer-child-theme/functions.php на строке 351

May 10, 2023 at 6:53 pm #13626177

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Да, я проверял товар и хотел сделать для Вас скриншоты 🙂

Возможно, что на главной у Вас в этом блоке список ID товаров, которые выводятся в данном блоке после и необходимо обновить, заменить на прошлый ID.

Пожалуйста, не забудьте сделать резервную копию Вашей базы данных, прежде чем продолжить.

May 10, 2023 at 7:04 pm #13626267

volodymyrZ-4

Благодарю.

Скажите пожалуйста, как на тестовых сайтах можно использовать WPML или вручную загружать все новые версии? Я планирую тестировать и хочу обновить всё

May 10, 2023 at 7:10 pm #13626309

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Вы можете обновить вручную, скачав свежие версии с Вашего аккаунта. Или же создать новый ключ для тестового сайта и подключить его для автоматического обновления:
https://wpml.org/faq/install-wpml/#register

Когда тестовый сайт уже не понадобится, Вы всегда сможете удалить ключ к нему с Вашего аккаунта.