Undefined constant "THEME_TAG_TOKEN"

info2021
4 Posts
info2021 posted this 09 February 2023

On multiple websites with Themler theme`s i get this error. Can anyone help me with this?

Error details

An error of type E_ERROR was caused on line number 558 of the file functions php. Error message: Uncaught Error: Undefined constant "THEME_TAG_TOKEN" in functions php:558

WordPress version 6.1.1
PHP version 8.1.13

On multiple websites with Themler theme`s i get this error. Can anyone help me with this? Error details =========== An error of type E_ERROR was caused on line number 558 of the file functions php. Error message: Uncaught Error: Undefined constant "THEME_TAG_TOKEN" in functions php:558 WordPress version 6.1.1 PHP version 8.1.13
Vote to pay developers attention to this features or issue.
4 Comments
Order By: Standard | Newest
themler-01
1 Posts
themler-01 posted this 09 June 2023

Same problem.
WP 6.2.2
PHP 8.2

Fatal error: Uncaught Error: Undefined constant "THEME_TAG_TOKEN" in /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/functions.php:558 Stack trace: #0 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/library/misc.php(57): theme_create_excerpt() #1 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/library/navigation.php(607): theme_trim_long_str() #2 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/library/navigation.php(777): Theme_MenuItem->get_start() #3 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/library/navigation.php(705): Theme_MenuWalker->display() #4 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/library/navigation.php(293): Theme_MenuWalker->walk() #5 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/library/navigation.php(60): theme_get_list_menu() #6 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/includes/vmenu_widget_1.php(100): theme_get_menu() #7 /home/admin/web/mysite.com/public_html/wp-includes/class-wp-widget.php(394): VMenuWidget->widget() #8 /home/admin/web/mysite.com/public_html/wp-includes/widgets.php(2022): WP_Widget->display_callback() #9 /home/admin/web/mysite.com/public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(697): wp_render_widget() #10 /home/admin/web/mysite.com/public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(154): WP_REST_Widgets_Controller->prepare_item_for_response() #11 /home/admin/web/mysite.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1181): WP_REST_Widgets_Controller->get_items() #12 /home/admin/web/mysite.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request() #13 /home/admin/web/mysite.com/public_html/wp-includes/rest-api.php(535): WP_REST_Server->dispatch() #14 /home/admin/web/mysite.com/public_html/wp-includes/rest-api.php(2889): rest_do_request() #15 [internal function]: rest_preload_api_request() #16 /home/admin/web/mysite.com/public_html/wp-includes/block-editor.php(631): array_reduce() #17 /home/admin/web/mysite.com/public_html/wp-admin/widgets-form-blocks.php(26): block_editor_rest_api_preload() #18 /home/admin/web/mysite.com/public_html/wp-admin/widgets.php(32): require('...') #19 {main} thrown in /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/functions.php on line 558

Same problem. WP 6.2.2 PHP 8.2 Fatal error: Uncaught Error: Undefined constant "THEME_TAG_TOKEN" in /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/functions.php:558 Stack trace: #0 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/library/misc.php(57): theme_create_excerpt() #1 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/library/navigation.php(607): theme_trim_long_str() #2 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/library/navigation.php(777): Theme_MenuItem->get_start() #3 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/library/navigation.php(705): Theme_MenuWalker->display() #4 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/library/navigation.php(293): Theme_MenuWalker->walk() #5 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/library/navigation.php(60): theme_get_list_menu() #6 /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/includes/vmenu_widget_1.php(100): theme_get_menu() #7 /home/admin/web/mysite.com/public_html/wp-includes/class-wp-widget.php(394): VMenuWidget->widget() #8 /home/admin/web/mysite.com/public_html/wp-includes/widgets.php(2022): WP_Widget->display_callback() #9 /home/admin/web/mysite.com/public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(697): wp_render_widget() #10 /home/admin/web/mysite.com/public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(154): WP_REST_Widgets_Controller->prepare_item_for_response() #11 /home/admin/web/mysite.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1181): WP_REST_Widgets_Controller->get_items() #12 /home/admin/web/mysite.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request() #13 /home/admin/web/mysite.com/public_html/wp-includes/rest-api.php(535): WP_REST_Server->dispatch() #14 /home/admin/web/mysite.com/public_html/wp-includes/rest-api.php(2889): rest_do_request() #15 [internal function]: rest_preload_api_request() #16 /home/admin/web/mysite.com/public_html/wp-includes/block-editor.php(631): array_reduce() #17 /home/admin/web/mysite.com/public_html/wp-admin/widgets-form-blocks.php(26): block_editor_rest_api_preload() #18 /home/admin/web/mysite.com/public_html/wp-admin/widgets.php(32): require('...') #19 {main} thrown in /home/admin/web/mysite.com/public_html/wp-content/themes/Untitled/functions.php on line 558
Support Team
Support Team posted this 15 June 2023

Hello,

We are sorry for the issue. Did it appear after you updated something, for example, Wordpress or PHP?

Sincerely,
Nettie

Hello, We are sorry for the issue. Did it appear after you updated something, for example, Wordpress or PHP? Sincerely, Nettie
info2021
4 Posts
info2021 posted this 16 June 2023

Hello Nettie,

I`m not sure when it appeared, but i think it has something to do with a vertical menu or widgets. I think this conflicts with the new Wordpress or PHP versions.

Hope you will find a solution and update Themler.

Thank in advance!

Hello Nettie, I`m not sure when it appeared, but i think it has something to do with a vertical menu or widgets. I think this conflicts with the new Wordpress or PHP versions. Hope you will find a solution and update Themler. Thank in advance!
arthurweasley56
1 Posts
arthurweasley56 posted this 18 October 2023

Hello geometry dash lite,
I think you should verify the Constant: Open the functions.php file mentioned in the error (functions.php) and locate the line number 558. Check if the constant "THEME_TAG_TOKEN" is defined in that file. It should be defined as a constant using the define() function, like this:

php
define('THEME_TAG_TOKEN', 'some_value');
If the constant is not defined or has a different name, you might need to investigate further to determine why it is missing.

Hello [geometry dash lite][1], I think you should verify the Constant: Open the functions.php file mentioned in the error (functions.php) and locate the line number 558. Check if the constant "THEME_TAG_TOKEN" is defined in that file. It should be defined as a constant using the define() function, like this: php define('THEME_TAG_TOKEN', 'some_value'); If the constant is not defined or has a different name, you might need to investigate further to determine why it is missing. [1]: https://geometry-dashlite.io
You must log in or register to leave comments