דלג על ניווט

תגיות: 

נושא זה מכיל 0 תגובות, יש ל 0קולות.

עודכן לאחרונה על ידי viktorH-11 לפני שבוע 1, 5 ימים.

בסיוע: Dražen.

מחבר פוסטים
דצמבר 10, 2024בְּ- 1:32 pm

viktorH-11

Background of the issue:
We have a site with WordPress, WooCommerce, and a bus-ticket system. The bus ticket selling uses WooCommerce. The default language is English, and we created translations in two languages using WPML automatic translation. However, there are errors. We think WPML wants to translate the products in WooCommerce. There are no products, but they are created because the bus ticket system uses WooCommerce, and all bus destinations are created as products. Here is the error from the debug log: [10-Dec-2024 13:18:28 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the addon-bus--ticket-booking-with-seat-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/iliastravel/public_html/wp-includes/functions.php on line 6114 [10-Dec-2024 13:18:28 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the bus-ticket-booking-with-seat-reservation domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/iliastravel/public_html/wp-includes/functions.php on line 6114 [10-Dec-2024 13:18:28 UTC] PHP Warning: Attempt to read property "feeds" on null in /home/iliastravel/public_html/wp-includes/post.php on line 5359 [10-Dec-2024 13:18:28 UTC] PHP Warning: Attempt to read property "feeds" on null in /home/iliastravel/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/url-handling/wpml-slug-filter.class.php on line 97 [10-Dec-2024 13:18:28 UTC] PHP Warning: Attempt to read property "pagination_base" on null in /home/iliastravel/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/url-handling/wpml-slug-filter.class.php on line 100 [10-Dec-2024 13:18:28 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_page_permastruct() on null in /home/iliastravel/public_html/wp-includes/link-template.php:435 Stack trace: #0 /home/iliastravel/public_html/wp-includes/link-template.php(397): _get_page_link() #1 /home/iliastravel/public_html/wp-includes/link-template.php(197): get_page_link() #2 /home/iliastravel/public_html/wp-includes/post.php(4895): get_permalink() #3 /home/iliastravel/public_html/wp-content/plugins/bus-ticket-booking-with-seat-reservation/woocommerce-bus.php(116): wp_insert_post() #4 /home/iliastravel/public_html/wp-content/plugins/bus-ticket-booking-with-seat-reservation/woocommerce-bus.php(41): Wbtm_Woocommerce_bus::on_activation_page_create() #5 /home/iliastravel/public_html/wp-content/plugins/bus-ticket-booking-with-seat-reservation/woocommerce-bus.php(21): Wbtm_Woocommerce_bus->load_plugin() #6 /home/iliastravel/public_html/wp-content/plugins/bus-ticket-booking-with-seat-reservation/woocommerce-bus.php(143): Wbtm_Woocommerce_bus->__construct() #7 /home/iliastravel/public_html/wp-settings.php(526): include_once('...') #8 /home/iliastravel/public_html/wp-config.php(98): require_once('...') #9 /home/iliastravel/public_html/wp-load.php(50): require_once('...') #10 /home/iliastravel/public_html/wp-blog-header.php(13): require_once('...') #11 /home/iliastravel/public_html/index.php(17): require('...') #12 {main} thrown in /home/iliastravel/public_html/wp-includes/link-template.php on line 435 [10-Dec-2024 13:18:29 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the addon-bus--ticket-booking-with-seat-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/iliastravel/public_html/wp-includes/functions.php on line 6114 [10-Dec-2024 13:18:29 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the bus-ticket-booking-with-seat-reservation domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/iliastravel/public_html/wp-includes/functions.php on line 6114 [10-Dec-2024 13:18:30 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the addon-bus--ticket-booking-with-seat-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/iliastravel/public_html/wp-includes/functions.php on line 6114 [10-Dec-2024 13:18:30 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the bus-ticket-booking-with-seat-reservation domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/iliastravel/public_html/wp-includes/functions.php on line 6114

Symptoms:
PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the addon-bus--ticket-booking-with-seat-pro domain was triggered too early. PHP Warning: Attempt to read property "feeds" on null. PHP Fatal error: Uncaught Error: Call to a member function get_page_permastruct() on null.

Questions:
How can we resolve the translation loading error for the bus ticket booking plugin?
What steps should we take to fix the PHP fatal error related to get_page_permastruct()?

דצמבר 10, 2024בְּ- 2:08 pm