Home › Toolset Professional Support › [Closed] Errormessages in Debug Log after upgrading PHP Version
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
This topic contains 5 replies, has 1 voice.
Last updated by Christopher Amirian 3 weeks, 4 days ago.
Assisted by: Christopher Amirian.
I am trying to: Change the PHP Version from 7.4.4 to 8.2.2
As result we found in the debug log the following errormessages:
[09-Nov-2024 12:20:17 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/customers/webs/BiFLTest/wp-content/plugins/toolset-module-manager/classes/ModuleManager.php on line 1180
When i change back to 7.4.4 these error not longer happens
Hi,
That is a PHP Deprecation message which means that there will be no problem with the plugin on PHP version 8.2.2, but in future releases of PHP it might cause an error.
You can ignore the warning for the time being as there are no versions higher than PHP 8.2.2 that even WordPress supports yet.
Thanks.
I think there are more problems.
When i update the PHP Version a use the WordrPress Troubleshooting Modul and have only toolset types & blocks active and TwentyTwenty four as Theme, i get also an critical error on page and the following errorcodes in debug log:
[11-Nov-2024 12:48:36 UTC] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/customers/webs/BielefeldFL/dev/wp-includes/formatting.php on line 1596
[11-Nov-2024 12:48:36 UTC] PHP Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /var/customers/webs/BielefeldFL/dev/wp-includes/formatting.php on line 2262
[11-Nov-2024 12:48:36 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + string in /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/inc/toolset.function.helpers.php:193
Stack trace:
#0 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/toolset-forms/classes/class.conditional.php(587): wpv_filter_parse_date()
#1 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/toolset-forms/classes/class.types.php(435): WPToolset_Forms_Conditional::extractFields()
#2 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/embedded/inc/wpv-conditional.php(373): WPToolset_Types::getCustomConditional()
#3 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/embedded/inc/wpv-conditional.php(143): WPV_Views_Conditional->parse_conditional()
#4 /var/customers/webs/BielefeldFL/dev/wp-includes/shortcodes.php(434): WPV_Views_Conditional->resolve_shortcode()
#5 [internal function]: do_shortcode_tag()
#6 /var/customers/webs/BielefeldFL/dev/wp-includes/shortcodes.php(273): preg_replace_callback()
#7 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/embedded/inc/wpv-conditional.php(876): do_shortcode()
#8 /var/customers/webs/BielefeldFL/dev/wp-includes/class-wp-hook.php(324): WPV_Views_Conditional->process_conditional_shortcodes()
#9 /var/customers/webs/BielefeldFL/dev/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#10 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/application/controllers/shortcode/resolver/conditionals.php(62): apply_filters()
#11 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/application/controllers/shortcode/resolver/conditionals.php(40): OTGS\Toolset\Views\Controller\Shortcode\Resolver\Conditionals->process_conditional_shortcodes()
#12 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/application/controllers/shortcode/resolution.php(133): OTGS\Toolset\Views\Controller\Shortcode\Resolver\Conditionals->apply_resolver()
#13 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/application/controllers/shortcode/resolution.php(94): OTGS\Toolset\Views\Controller\Shortcode\Resolution->apply_resolvers()
#14 /var/customers/webs/BielefeldFL/dev/wp-includes/class-wp-hook.php(324): OTGS\Toolset\Views\Controller\Shortcode\Resolution->pre_process_shortcodes()
#15 /var/customers/webs/BielefeldFL/dev/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#16 /var/customers/webs/BielefeldFL/dev/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1871): apply_filters()
#17 /var/customers/webs/BielefeldFL/dev/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(575): WP_REST_Posts_Controller->prepare_item_for_response()
#18 /var/customers/webs/BielefeldFL/dev/wp-includes/rest-api/class-wp-rest-server.php(1230): WP_REST_Posts_Controller->get_item()
#19 /var/customers/webs/BielefeldFL/dev/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request()
#20 /var/customers/webs/BielefeldFL/dev/wp-includes/rest-api.php(547): WP_REST_Server->dispatch()
#21 /var/customers/webs/BielefeldFL/dev/wp-includes/rest-api.php(2925): rest_do_request()
#22 [internal function]: rest_preload_api_request()
#23 /var/customers/webs/BielefeldFL/dev/wp-includes/block-editor.php(753): array_reduce()
#24 /var/customers/webs/BielefeldFL/dev/wp-admin/edit-form-blocks.php(80): block_editor_rest_api_preload()
#25 /var/customers/webs/BielefeldFL/dev/wp-admin/post.php(187): require('...')
#26 {main}
thrown in /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/inc/toolset.function.helpers.php on line 193
Hi,
I checked our reporting system and did not find any errors like the one you have mentioned, so I will need to do some troubleshooting,
But before that, would you please test 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.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- The reason I asked for Twenty-Twenty as it is not an FSE (Full Site Editing) theme. The FSE themes are not supported by Toolset.
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except Toolset and its add-ons.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.
Thanks.
Hi,
I checked our reporting system and did not find any errors like the one you have mentioned, so I will need to do some troubleshooting,
But before that, would you please test 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.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- The reason I asked for Twenty-Twenty as it is not an FSE (Full Site Editing) theme. The FSE themes are not supported by Toolset.
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except Toolset and its add-ons.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.
Thanks.
I create a Dev-Copy of the website from a backup. On these site i is know Twenty-Twenty Theme active. Also as plugins only Toolset Types & Blocks activated.
When i will open the custom post type page "Lehrgänge" (has an content template), i get an empty page.
If i try to open from Backend the custom Template for Lehrgänge, i get an unexpected error.
In Debug log i found then:
[13-Nov-2024 10:33:53 UTC] PHP Deprecated: Creation of dynamic property WP_Block_Parser::$empty_attrs is deprecated in /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/backend/Services/ViewParsingService.php on line 335
[13-Nov-2024 10:33:53 UTC] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/customers/webs/BielefeldFL/dev/wp-includes/formatting.php on line 1596
[13-Nov-2024 10:33:53 UTC] PHP Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /var/customers/webs/BielefeldFL/dev/wp-includes/formatting.php on line 2262
[13-Nov-2024 10:33:53 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + string in /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/inc/toolset.function.helpers.php:193
Stack trace:
#0 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/toolset-forms/classes/class.conditional.php(587): wpv_filter_parse_date()
#1 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/toolset-forms/classes/class.types.php(435): WPToolset_Forms_Conditional::extractFields()
#2 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/embedded/inc/wpv-conditional.php(373): WPToolset_Types::getCustomConditional()
#3 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/embedded/inc/wpv-conditional.php(143): WPV_Views_Conditional->parse_conditional()
#4 /var/customers/webs/BielefeldFL/dev/wp-includes/shortcodes.php(434): WPV_Views_Conditional->resolve_shortcode()
#5 [internal function]: do_shortcode_tag()
#6 /var/customers/webs/BielefeldFL/dev/wp-includes/shortcodes.php(273): preg_replace_callback()
#7 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/embedded/inc/wpv-conditional.php(876): do_shortcode()
#8 /var/customers/webs/BielefeldFL/dev/wp-includes/class-wp-hook.php(324): WPV_Views_Conditional->process_conditional_shortcodes()
#9 /var/customers/webs/BielefeldFL/dev/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#10 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/application/controllers/shortcode/resolver/conditionals.php(62): apply_filters()
#11 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/application/controllers/shortcode/resolver/conditionals.php(40): OTGS\Toolset\Views\Controller\Shortcode\Resolver\Conditionals->process_conditional_shortcodes()
#12 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/application/controllers/shortcode/resolution.php(133): OTGS\Toolset\Views\Controller\Shortcode\Resolver\Conditionals->apply_resolver()
#13 /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/application/controllers/shortcode/resolution.php(94): OTGS\Toolset\Views\Controller\Shortcode\Resolution->apply_resolvers()
#14 /var/customers/webs/BielefeldFL/dev/wp-includes/class-wp-hook.php(324): OTGS\Toolset\Views\Controller\Shortcode\Resolution->pre_process_shortcodes()
#15 /var/customers/webs/BielefeldFL/dev/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#16 /var/customers/webs/BielefeldFL/dev/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1871): apply_filters()
#17 /var/customers/webs/BielefeldFL/dev/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(575): WP_REST_Posts_Controller->prepare_item_for_response()
#18 /var/customers/webs/BielefeldFL/dev/wp-includes/rest-api/class-wp-rest-server.php(1230): WP_REST_Posts_Controller->get_item()
#19 /var/customers/webs/BielefeldFL/dev/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request()
#20 /var/customers/webs/BielefeldFL/dev/wp-includes/rest-api.php(547): WP_REST_Server->dispatch()
#21 /var/customers/webs/BielefeldFL/dev/wp-includes/rest-api.php(2925): rest_do_request()
#22 [internal function]: rest_preload_api_request()
#23 /var/customers/webs/BielefeldFL/dev/wp-includes/block-editor.php(750): array_reduce()
#24 /var/customers/webs/BielefeldFL/dev/wp-admin/edit-form-blocks.php(80): block_editor_rest_api_preload()
#25 /var/customers/webs/BielefeldFL/dev/wp-admin/post.php(187): require('...')
#26 {main}
thrown in /var/customers/webs/BielefeldFL/dev/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/inc/toolset.function.helpers.php on line 193
Thank you,
Would you please set the next reply as private and give us the login info for the dev copy so we can troubleshoot?
Thanks.
Thank you for the information. I asked our second tier support to take a look into that.
It might take a while, so I'd appreciate it if you could keep the dev site up and running during that time.
Hi,
I have an answer from our second tier support:
On the content template "Lehrgänge 2023" the problem occurs due to 100 of conditional blocks.
hidden link
The issue was with one of the conditoinal block used with the FUTURE_DAY() function and that function requires some value but it has conditional block and used FUTURE_DAY() without any value as you can see with the following code:
<!-- /wp:toolset-blocks/conditional --><!-- wp:toolset-blocks/conditional {"conditions":{"operator":"AND","conditions":[{"firstArgument":{"source":{"label":"Post data","value":"post"},"value":{"provider":"__current_post","source":"toolset_custom_field|feldgruppe-fuer-lehrgaenge","field":"umbuchungsoption","is_repetitive":false}},"operator":{"label":"=","value":"eq"},"secondArgument":{"source":{"label":"Static value","value":"value"},"value":"1","extra":""}},{"firstArgument":{"source":{"label":"Post data","value":"post"},"value":{"provider":"__current_post","source":"toolset_custom_field|feldgruppe-fuer-lehrgaenge","field":"startdatum","is_repetitive":false}},"operator":{"label":"\u003e=","value":"gte"},"secondArgument":{"source":{"label":"Date function","value":"date"},"value":{"value":"future_day","label":"Future Day"},"extra":""}}],"negative":false},"parsedConditions":" ( ( $(wpcf-umbuchungsoption) eq '1' ) AND ( $(wpcf-startdatum) gte FUTURE_DAY() ) ) ","advancedEditor":true} --> [wpv-conditional if=" ( ( $(wpcf-umbuchungsoption) eq '1' ) AND ( $(wpcf-startdatum) gte FUTURE_DAY() ) ) " ]<!-- wp:kadence/rowlayout {"uniqueID":"129031_72ccc0-02","colLayout":"left-golden","bgColor":"palette7","align":"wide","inheritMaxWidth":true,"bgColorClass":"theme-palette7","padding":[10,"",10,""],"margin":[0,"",20,""],"anchor":"umbuchung","kbVersion":2,"dynamicAttributes":{"toolsetDSVersion":"257000"},"serverSideUse":{"bgImg":""}} --><!-- wp:kadence/column {"borderWidth":["","","",""],"uniqueID":"129031_78da6c-11","kbVersion":2,"className":"inner-column-1","dynamicAttributes":{"toolsetDSVersion":"257000"},"serverSideUse":{}} --> <div class="wp-block-kadence-column kadence-column129031_78da6c-11 inner-column-1"><div class="kt-inside-inner-col"><!-- wp:kadence/advancedheading {"level":3,"uniqueID":"129031_5eb4ec-63","markBorder":"","markBorderStyles":[{"top":[null,"",""],"right":[null,"",""],"bottom":[null,"",""],"left":[null,"",""],"unit":"px"}],"tabletMarkBorderStyles":[{"top":[null,"",""],"right":[null,"",""],"bottom":[null,"",""],"left":[null,"",""],"unit":"px"}],"mobileMarkBorderStyles":[{"top":[null,"",""],"right":[null,"",""],"bottom":[null,"",""],"left":[null,"",""],"unit":"px"}],"dynamicAttributes":{"toolsetDSVersion":"257000"}} --> <h3 class="kt-adv-heading129031_5eb4ec-63 wp-block-kadence-advancedheading" data-kb-block="kb-adv-heading129031_5eb4ec-63">Umbuchung gewünscht?</h3> <!-- /wp:kadence/advancedheading --><!-- wp:paragraph {"dynamicAttributes":{"toolsetDSVersion":"257000"}} --> <p>Sie möchten von einer bestehenden Präsenz- zu einer Online-Teilnahme oder umgekehrt umbuchen? Dies ist bis zu 14 Tage vor dem Seminar kostenfrei möglich.<br>Danach ist eine Umbuchung von Präsenz-Teilnahme auf Webinar-Teilnahme weiterhin möglich – es wird dann aber der Präsenzpreis berechnet.</p> <!-- /wp:paragraph --></div></div> <!-- /wp:kadence/column --><!-- wp:kadence/column {"id":2,"borderWidth":["","","",""],"uniqueID":"129031_6e4ed7-5d","kbVersion":2,"className":"inner-column-2","dynamicAttributes":{"toolsetDSVersion":"257000"},"serverSideUse":{}} --> <div class="wp-block-kadence-column kadence-column129031_6e4ed7-5d inner-column-2"><div class="kt-inside-inner-col"><!-- wp:paragraph {"dynamicAttributes":{"toolsetDSVersion":"257000"}} --> <p id="umbuchung"></p> <!-- /wp:paragraph --><!-- wp:kadence/modal {"uniqueID":"129031_fc93d7-31","modalMaxWidth":800,"modalLinkStyles":[{"size":[16,"",""],"sizeType":"px","lineHeight":[24,"",""],"lineType":"px","letterSpacing":"","family":"","google":"","style":"","weight":"","variant":"","subset":"","loadGoogle":true,"padding":[8,15,8,15],"margin":[0,0,0,0],"hideLabel":false,"iconSide":"right","icon":"","color":"palette1","background":"palette9","border":"#555555","borderRadius":4,"borderWidth":[2,2,2,2],"colorHover":"#ffffff","backgroundHover":"palette2","borderHover":"#444444","hideLabelTablet":"","hideLabelMobile":""}],"linkShadow":[{"color":"rgba(0,0,0,0.2)","spread":0,"blur":2,"hOffset":1,"vOffset":1}],"linkHoverShadow":[{"color":"rgba(0,0,0,0.4)","spread":0,"blur":3,"hOffset":2,"vOffset":2}],"linkAlign":"right","dynamicAttributes":{"toolsetDSVersion":"257000"}} --> <div class="wp-block-kadence-modal alignnone kt-modal-linkalign-right"><div id="kt-target-modal129031_fc93d7-31" class="kb-modal-content129031_fc93d7-31 kadence-block-pro-modal kt-m-animate-in-fadeup kt-m-animate-out-fadeout" aria-hidden="true"><div class="kt-modal-overlay" tabindex="-1" data-modal-close="true"><div class="kt-modal-container kt-modal-height-fittocontent kt-close-position-inside" role="dialog" aria-modal="true"><button class="kt-modal-close" aria-label="Close Modal" data-modal-close="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="<em><u>hidden link</u></em>" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></button><div id="kt-modal129031_fc93d7-31-content" class="kt-modal-content"><!-- wp:kadence/advancedheading {"level":3,"uniqueID":"_06bbdf-2e","markBorder":"","markBorderStyles":[{"top":[null,"",""],"right":[null,"",""],"bottom":[null,"",""],"left":[null,"",""],"unit":"px"}],"tabletMarkBorderStyles":[{"top":[null,"",""],"right":[null,"",""],"bottom":[null,"",""],"left":[null,"",""],"unit":"px"}],"mobileMarkBorderStyles":[{"top":[null,"",""],"right":[null,"",""],"bottom":[null,"",""],"left":[null,"",""],"unit":"px"}],"dynamicAttributes":{"toolsetDSVersion":"251000"}} --> <h3 class="kt-adv-heading_06bbdf-2e wp-block-kadence-advancedheading" data-kb-block="kb-adv-heading_06bbdf-2e">Umbuchung von Präsenz- zu Online-Teilnahme und umgekehrt</h3> <!-- /wp:kadence/advancedheading --><!-- wp:paragraph {"dynamicAttributes":{"toolsetDSVersion":"251000"}} --> <p>Wir bieten Ihnen größtmögliche Flexibilität: Sie können nach erfolgter Präsenzbuchung bis zu 14 Tage vor dem Seminar kostenfrei auf eine Webinar-Teilnahme umbuchen (oder umgekehrt von online auf Präsenzteilnahme zum Präsenzpreis bei verfügbaren Präsenzplätzen).<br>Danach ist eine Umbuchung von Präsenz-Teilnahme auf Webinar-Teilnahme weiterhin möglich – es wird dann aber der Präsenzpreis berechnet. </p> <!-- /wp:paragraph --><!-- wp:paragraph {"dynamicAttributes":{"toolsetDSVersion":"251000"}} --> <p><a href="<em><u>hidden link</u></em>"></a></p> <!-- /wp:paragraph --><!-- wp:formidable/simple-form {"formId":"205"} --> <div>[formidable id="205"]</div> <!-- /wp:formidable/simple-form --></div></div></div></div><button class="kt-modal-label-show kt-blocks-modal-link" data-modal-open="kt-target-modal129031_fc93d7-31"><span class="kt-blocks-modal-link-inner">Umbuchung melden</span></button></div> <!-- /wp:kadence/modal --></div></div> <!-- /wp:kadence/column --><!-- /wp:kadence/rowlayout -->[/wpv-conditional]
The second tier support set FUTURE_DAY() value as FUTURE_DAY(-3) which is used by you for other conditional statements. Please check all conditional statements where you use FUTURE_DAY () function and change the conditional statement as per your requirement as you will be able to access the content template edit page now and edit the conditional statements using blocks.
Thanks.
The topic ‘[Closed] Errormessages in Debug Log after upgrading PHP Version’ is closed to new replies.