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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | - | - |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Yerevan (GMT+04:00)
This topic contains 3 replies, has 2 voices.
Last updated by Christopher Amirian 1 year, 11 months ago.
Assisted by: Christopher Amirian.
Author | Posts |
---|---|
July 8, 2023 at 6:13 pm #13971865 | |
sebastiaanV-11 |
Every now and then we get this: [08-Jul-2023 17:39:18 UTC] PHP Warning: Attempt to read property "post_date" on null in /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/inc/translation-jobs/helpers/wpml-save-translation-data-action.class.php on line 181 [08-Jul-2023 17:39:18 UTC] PHP Warning: Attempt to read property "post_date_gmt" on null in /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/inc/translation-jobs/helpers/wpml-save-translation-data-action.class.php on line 182 [08-Jul-2023 17:39:18 UTC] PHP Warning: Attempt to read property "post_type" on null in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-tp-support.php on line 259 [08-Jul-2023 17:39:18 UTC] PHP Fatal error: Uncaught TypeError: WPML_PB_Handle_Custom_Fields::is_page_builder_page_filter(): Argument #2 ($post) must be of type WP_Post, null given, called in /home/mymoissanite/public_html/staging/wp-includes/class-wp-hook.php on line 308 and defined in /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/tm/class-wpml-pb-handle-custom-fields.php:25 Stack trace: #0 /home/mymoissanite/public_html/staging/wp-includes/class-wp-hook.php(308): WPML_PB_Handle_Custom_Fields->is_page_builder_page_filter(false, NULL) #1 /home/mymoissanite/public_html/staging/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array) #2 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/class-wpml-pb-integration.php(302): apply_filters('wpml_pb_is_page...', false, NULL) #3 /home/mymoissanite/public_html/staging/wp-includes/class-wp-hook.php(310): WPML_PB_Integration->process_pb_content_with_hidden_strings_only(0, '76318') #4 /home/mymoissanite/public_html/staging/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #5 /home/mymoissanite/public_html/staging/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/tm/class-wpml-tm-page-builders.php(136): do_action('wpml_pb_finishe...', 0, '76318', Array) #7 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/tm/class-wpml-tm-page-builders-hooks.php(48): WPML_TM_Page_Builders->pro_translation_completed_action(0, Array, Object(stdClass)) #8 /home/mymoissanite/public_html/staging/wp-includes/class-wp-hook.php(308): WPML_TM_Page_Builders_Hooks->pro_translation_completed_action(0, Array, Object(stdClass)) #9 /home/mymoissanite/public_html/staging/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #10 /home/mymoissanite/public_html/staging/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/inc/translation-jobs/helpers/wpml-save-translation-data-action.class.php(305): do_action('wpml_pro_transl...', 0, Array, Object(stdClass)) #12 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/inc/wpml-private-actions-tm.php(34): WPML_Save_Translation_Data_Action->save_translation() #13 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/class-wpml-tm-ate-jobs.php(90): wpml_tm_save_data(Array, false) #14 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/API/ATE.php(54): WPML_TM_ATE_Jobs->apply('<?xml version="...') #15 [internal function]: WPML\TM\API\ATE->applyTranslation('5290', '76318', '<em><u>hidden link</u></em>...') #16 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Array, Array) #17 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Maybe.php(106): WPML\FP\{closure}('<em><u>hidden link</u></em>...') #18 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Functor/Applicative.php(13): WPML\FP\Just->map(Object(Closure)) #19 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(383): WPML\FP\Just->ap(Object(WPML\FP\Just)) #20 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Object(WPML\FP\Just), Object(WPML\FP\Just), Object(WPML\FP\Just)) #21 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array) #22 [internal function]: WPML\FP\{closure}(Object(WPML\FP\Just), Object(WPML\FP\Just), Object(WPML\FP\Just)) #23 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(150): call_user_func_array(Object(Closure), Array) #24 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Maybe.php(144): WPML\FP\Fns::WPML\FP\{closure}(Object(stdClass)) #25 /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/REST/PublicReceive.php(84): WPML\FP\Just->chain(Object(Closure)) #26 /home/mymoissanite/public_html/staging/wp-includes/rest-api/class-wp-rest-server.php(1181): WPML\TM\ATE\REST\PublicReceive->receive_ate_job(Object(WP_REST_Request)) #27 /home/mymoissanite/public_html/staging/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wpml/tm/v1/ate...', Array, NULL) #28 /home/mymoissanite/public_html/staging/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch(Object(WP_REST_Request)) #29 /home/mymoissanite/public_html/staging/wp-includes/rest-api.php(410): WP_REST_Server->serve_request('/wpml/tm/v1/ate...') #30 /home/mymoissanite/public_html/staging/wp-includes/class-wp-hook.php(308): rest_api_loaded(Object(WP)) #31 /home/mymoissanite/public_html/staging/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #32 /home/mymoissanite/public_html/staging/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #33 /home/mymoissanite/public_html/staging/wp-includes/class-wp.php(399): do_action_ref_array('parse_request', Array) #34 /home/mymoissanite/public_html/staging/wp-includes/class-wp.php(780): WP->parse_request('') #35 /home/mymoissanite/public_html/staging/wp-includes/functions.php(1334): WP->main('') #36 /home/mymoissanite/public_html/staging/wp-blog-header.php(16): wp() #37 /home/mymoissanite/public_html/staging/index.php(17): require('/home/mymoissan...') #38 {main} thrown in /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/tm/class-wpml-pb-handle-custom-fields.php on line 25 |
July 9, 2023 at 2:40 am #13972255 | |
Christopher Amirian WPML Supporter since 07/2020
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi there, Would you please follow the steps below? - IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website. - Clear the cache in WPML After that please clear your log and see if you see the same issue or not. Thanks. |
July 9, 2023 at 8:59 am #13972453 | |
sebastiaanV-11 |
Hello, We already do these troubleshooting steps on a daily basis due to constant issues with translations. This won't help I'm afraid. |
July 10, 2023 at 12:41 pm #13999195 | |
Christopher Amirian WPML Supporter since 07/2020
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi there, As this is only a log that you shared, I do not have tools at hand to be able to detect what is the problem cause. I'd appreciate it if you could provide steps that causes the error in question. I suggest that you copy the website to a staging server and monitor there to be able to identify which step causes the error to be able to pinpoint. Thanks. |
The topic ‘[Closed] PHP fatal error’ is closed to new replies.