JS Error – Uncaught TypeError: Cannot read properties of undefined..
-
Hello, I have the following JS error in Chome Console tab when using the plugin
Full error:
Uncaught TypeError: Cannot read properties of undefined (reading 'filters') at clearfy-globals.js?ver=1.0.5:13:91 at clearfy-globals.js?ver=1.0.5:26:150
I got the error on the page /wp-admin/options-general.php?page=quick_start-wbcr_clearfy
Versions used:
– Webcraftic Clearfy – WordPress optimization plugin Version 2.0.1
– WP Version 5.9.3
– PHP 8The problem seems to be in file
/wp-content/plugins/clearfy/libs/factory/templates/assets/js/clearfy-globals.jsThe issue might be that the variable $.wfactory_45 is not defined
I made a quick test in JSFiddle here
Relevant code:
(function($) { 'use strict'; if( !$.wbcr_factory_templates_105 ) { $.wbcr_factory_templates_105 = {}; } //todo: Переопредление для совместимости со старыми версиями плагинов. $.wbcr_factory_templates_105.filters = $.wbcr_factory_templates_105.filters || $.wfactory_454.filters; //todo: Переопредление для совместимости со старыми версиями плагинов. $.wbcr_factory_templates_105.hooks = $.wbcr_factory_templates_105.hooks || $.wfactory_454.hooks;
Thank you,
Marina
- The topic ‘JS Error – Uncaught TypeError: Cannot read properties of undefined..’ is closed to new replies.