bonny / WordPress-Simple-History

🔍🕵️‍♀️ WordPress audit log that track user changes in WordPress admin using a nice activity feed.
https://simple-history.com
311 stars 68 forks source link

Error with WPML #469

Closed bonny closed 1 month ago

bonny commented 1 month ago

Reported here: https://wordpress.org/support/topic/no-logs-shown-in-5-0-1-error-500/

[03-Oct-2024 08:27:38 UTC] PHP Fatal error: Uncaught Error: Call to a member function filter_translation_status() on null in /data/sites/web/b31q9sy1myrdbxio/www/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/tm/class-wpml-tm-page-builders.php:228
Stack trace:
#0 /data/sites/web/b31q9sy1myrdbxio/www/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/tm/class-wpml-tm-page-builders-hooks.php(87): WPML_TM_Page_Builders->link_to_translation_filter('...', 7129, '...', '...')
#1 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/class-wp-hook.php(324): WPML_TM_Page_Builders_Hooks->link_to_translation_filter('...', 7129, '...', '...')
#2 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/plugin.php(205): WP_Hook->apply_filters('...', Array)
#3 /data/sites/web/b31q9sy1myrdbxio/www/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/wpml-url-filters.class.php(149): apply_filters('...', '...', 7129, '...', '...')
#4 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/class-wp-hook.php(324): WPML_URL_Filters->get_edit_post_link('...', 7129, '...')
#5 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/plugin.php(205): WP_Hook->apply_filters('...', Array)
#6 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/link-template.php(1499): apply_filters('...', '...', 7129, '...')
#7 /data/sites/web/b31q9sy1myrdbxio/www/wp-content/plugins/simple-history/loggers/class-post-logger.php(1065): get_edit_post_link(Object(WP_Post))
#8 /data/sites/web/b31q9sy1myrdbxio/www/wp-content/plugins/simple-history/inc/class-simple-history.php(681): Simple_History\Loggers\Post_Logger->get_log_row_plain_text_output(Object(stdClass))
#9 /data/sites/web/b31q9sy1myrdbxio/www/wp-content/plugins/simple-history/inc/class-wp-rest-events-controller.php(692): Simple_History\Simple_History->get_log_row_plain_text_output(Object(stdClass))
#10 /data/sites/web/b31q9sy1myrdbxio/www/wp-content/plugins/simple-history/inc/class-wp-rest-events-controller.php(626): Simple_History\WP_REST_Events_Controller->prepare_item_for_response(Object(stdClass), Object(WP_REST_Request))
#11 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/rest-api/class-wp-rest-server.php(1230): Simple_History\WP_REST_Events_Controller->get_items(Object(WP_REST_Request))
#12 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '...', Array, NULL)
#13 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request))
#14 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/rest-api.php(420): WP_REST_Server->serve_request('...')
#15 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP))
#16 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#17 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#18 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/class-wp.php(418): do_action_ref_array('...', Array)
#19 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/class-wp.php(813): WP->parse_request('')
#20 /data/sites/web/b31q9sy1myrdbxio/www/wp-includes/functions.php(1336): WP->main('')
#21 /data/sites/web/b31q9sy1myrdbxio/www/wp-blog-header.php(16): wp()
#22 /data/sites/web/b31q9sy1myrdbxio/www/index.php(17): require('...')
#23 {main}
thrown in /data/sites/web/b31q9sy1myrdbxio/www/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/tm/class-wpml-tm-page-builders.php on line 228