Public Ticket #2377072 Cannot use object of type stdClass as array in typolab-font-loader.php:160 Closed
Comments vwittich started the conversationApril 25, 2020 at 10:37pm There is an error in typolab-font-loader.php:160. The error appears only when some bots visit eg. the page https://example.com/?author=10. The error message is: 2020-04-25T13:10:06+00:00 CRITICAL Uncaught Error: Cannot use object of type stdClass as array in ./wp-content/themes/kalium/inc/lib/laborator/typolab/inc/classes/typolab-font-loader.php:160 Stack trace: #0 ./wp-includes/class-wp-hook.php(287): TypoLab_Font_Loader->enqueueQualifiedFonts('') #1 ./wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 ./wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 ./wp-includes/script-loader.php(2294): do_action('wp_enqueue_scri...') #4 ./wp-includes/class-wp-hook.php(287): wp_enqueue_scripts('') #5 ./wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #6 ./wp-includes/plugin.php(478): WP_Hook->do_action(Array) #7 ./wp-includes/general-templa in ./wp-content/themes/kalium/inc/lib/laborator/typolab/inc/classes/typolab-font-loader.php in Zeile 160 Attached the diff of my fixe. Regards Valentin 1,558Laborator repliedApril 26, 2020 at 8:56pmHi Valentin,Many thanks for sharing the fix with us, I will forward it to the team so they can apply it where it is needed.Have a great week, take care!Best regards,Laborator Team Documentation Join Kalium Users Group1 Like Sign in to reply ...
There is an error in typolab-font-loader.php:160. The error appears only when some bots visit eg. the page https://example.com/?author=10.
The error message is:
Attached the diff of my fixe.
Regards Valentin
Hi Valentin,
Many thanks for sharing the fix with us, I will forward it to the team so they can apply it where it is needed.
Have a great week, take care!
Best regards,
Laborator Team