I’m having an issue when trying to load templates in Elementor. The template loading page is stuck in a loading loop.
These are the errors in WordPress -> Elementor -> System Info -> Debug
Errors:
TypeError: Cannot read property 'indexOf' of null
at http://localhost/wordpress/wp-content/plugins/elementor/assets/js/editor.min.js?ver=2.1.6 - 2:27412
2018-08-01 15:39 +00:00
TypeError: Cannot read property 'indexOf' of null
at http://localhost/wordpress/wp-content/plugins/elementor/assets/js/editor.min.js?ver=2.1.5 - 2:27412
2018-07-29 15:58 +00:00
x 2 times
2
Answers
When I had the same issue it helped to disconnect my elementor account and therefor its licence. Reactivating also reactivated the connection to the template library which seems to be handled seperately from the rest of the elementor plugin.
Using Elementor 2.1.4, I was not able to resolve this issue by reinstalling the plugin, reactivate the license, disabling other plugins, using the ‘Sync Library’ tool.
What worked for me was replacing
with
in the
option_value
field of the entry in thewp_otions
table in the database whereThis value gets updated from time to time, so to avoid the categories getting set to null again you might also want to commment out the following line in
wp-content/plugins/elementor/includes/api.php@111
right before theupdate_option( self::LIBRARY_OPTION_KEY, ...)
:which causes this issue, as the categories already are available as array instead of JSON at this point.