My website was working fine and showing the calender for Appointment booking using the WooCommerce Bookings plugin but in the last few weeks, calendars stopped working and were not shown on the front end.
Following error is show on Inspect Element Console
date-picker.js:1064 Uncaught TypeError: Cannot read properties of undefined (reading '2022-8-29')
at o.getDateElementAttributes (date-picker.js:1064:26)
at o.maybe_load_from_cache (date-picker.js:712:21)
at e._generateHTML (datepicker.min.js?ver=1.13.1:9:30695)
at e._updateDatepicker (datepicker.min.js?ver=1.13.1:9:14501)
at e._refreshDatepicker (datepicker.min.js?ver=1.13.1:9:9945)
at HTMLDivElement.<anonymous> (datepicker.min.js?ver=1.13.1:9:36351)
at Function.each (jquery.min.js?ver=3.6.0:2:3003)
at s.fn.init.each (jquery.min.js?ver=3.6.0:2:1481)
at V.fn.datepicker (datepicker.min.js?ver=1.13.1:9:36283)
at Object.refresh_datepicker (date-picker.js:263:12)
o.getDateElementAttributes # date-picker.js:1064
o.maybe_load_from_cache # date-picker.js:712
_generateHTML # datepicker.min.js?ver=1.13.1:9
_updateDatepicker # datepicker.min.js?ver=1.13.1:9
_refreshDatepicker # datepicker.min.js?ver=1.13.1:9
(anonymous) # datepicker.min.js?ver=1.13.1:9
each # jquery.min.js?ver=3.6.0:2
each # jquery.min.js?ver=3.6.0:2
V.fn.datepicker # datepicker.min.js?ver=1.13.1:9
refresh_datepicker # date-picker.js:263
(anonymous) # date-picker.js:689
c # jquery.min.js?ver=3.6.0:2
fireWith # jquery.min.js?ver=3.6.0:2
(anonymous) # date-picker.js:861
c # jquery.min.js?ver=3.6.0:2
fireWith # jquery.min.js?ver=3.6.0:2
l # jquery.min.js?ver=3.6.0:2
(anonymous) # jquery.min.js?ver=3.6.0:2
load (async)
send # jquery.min.js?ver=3.6.0:2
ajax # jquery.min.js?ver=3.6.0:2
s.ajax.s.ajax # jquery-migrate.min.js?ver=3.3.2:2
o.get_data # date-picker.js:825
o.create # date-picker.js:687
date_picker_init # date-picker.js:256
(anonymous) # date-picker.js:30
each # jquery.min.js?ver=3.6.0:2
each # jquery.min.js?ver=3.6.0:2
init # date-picker.js:25
(anonymous) # date-picker.js:1152
e # jquery.min.js?ver=3.6.0:2
t # jquery.min.js?ver=3.6.0:2
setTimeout (async)
(anonymous) # jquery.min.js?ver=3.6.0:2
c # jquery.min.js?ver=3.6.0:2
fireWith # jquery.min.js?ver=3.6.0:2
fire # jquery.min.js?ver=3.6.0:2
c # jquery.min.js?ver=3.6.0:2
fireWith # jquery.min.js?ver=3.6.0:2
ready # jquery.min.js?ver=3.6.0:2
B # jquery.min.js?ver=3.6.0:2
Can anyone help me with this issue?
WordPress version 6.0.2
PHP Version 7.4
Woocommerce version 6.8.2
WooCommerce Bookings version 1.15.60
Thank you in advance
Found the solution.
I was using Real Time find and replace plugin to replace few words on the front end to the website so while doing that I was breaking the plugin functionality as the words were replaced in coding as well. Disabled the Plugin and replaced words using CSS and not the website is working fine.
Thank you for all the suggestions.
Im creating a new website, and installed The Grid pluging because its mostly the best pluging for grid in wordpress, but when im going to use it im getting this console error, its the first time im getting this error have more than 10 pages with it.
This is the pluging: https://codecanyon.net/item/the-grid-responsive-wordpress-grid-plugin/13306812
https://imgur.com/a/5zPWoYQ
Any advice for whats going on
Its a fresh wordpress installation
Using CESIS THEME (Iñve used before this theme with the pluging, several websites)
Using last version of wordpress.
Tried disabling all my pluging except the grid.
I've tried several things.
If can help would appreciate
Thanks
Rodrigo Zuluaga
LOG ERROR
slider.min.js?ver=1.11.4:11 Uncaught TypeError: a.toFixed is not a function
at a.<computed>.<computed>._calculateNewMax (slider.min.js?ver=1.11.4:11)
at a.<computed>.<computed>._calculateNewMax (widget.min.js?ver=1.11.4:11)
at a.<computed>.<computed>._create (slider.min.js?ver=1.11.4:11)
at a.<computed>.<computed>._create (widget.min.js?ver=1.11.4:11)
at a.<computed>.<computed>._createWidget (widget.min.js?ver=1.11.4:11)
at new a.<computed>.<computed> (widget.min.js?ver=1.11.4:11)
at HTMLSpanElement.<anonymous> (widget.min.js?ver=1.11.4:11)
at Function.each (load-scripts.php?c=0…lupload&ver=5.2.4:2)
at a.fn.init.each (load-scripts.php?c=0…lupload&ver=5.2.4:2)
at a.fn.init.a.fn.<computed> [as slider] (widget.min.js?ver=1.11.4:11)
_calculateNewMax # slider.min.js?ver=1.11.4:11
(anonymous) # widget.min.js?ver=1.11.4:11
_create # slider.min.js?ver=1.11.4:11
(anonymous) # widget.min.js?ver=1.11.4:11
_createWidget # widget.min.js?ver=1.11.4:11
a.<computed>.<computed> # widget.min.js?ver=1.11.4:11
(anonymous) # widget.min.js?ver=1.11.4:11
each # load-scripts.php?c=0…lupload&ver=5.2.4:2
each # load-scripts.php?c=0…lupload&ver=5.2.4:2
a.fn.<computed> # widget.min.js?ver=1.11.4:11
(anonymous) # tomb.js?ver=1.0:579
each # load-scripts.php?c=0…lupload&ver=5.2.4:2
each # load-scripts.php?c=0…lupload&ver=5.2.4:2
init # tomb.js?ver=1.0:575
init # tomb.js?ver=1.0:42
(anonymous) # tomb.js?ver=1.0:18
i # load-scripts.php?c=0…lupload&ver=5.2.4:2
fireWith # load-scripts.php?c=0…lupload&ver=5.2.4:2
ready # load-scripts.php?c=0…lupload&ver=5.2.4:2
J # load-scripts.php?c=0…lupload&ver=5.2.4:2
2wp-auth-check.min.js?ver=5.2.4:1 Uncaught TypeError: Cannot read property 'hasClass' of undefined
at HTMLDocument.<anonymous> (wp-auth-check.min.js?ver=5.2.4:1)
at HTMLDocument.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:3)
at HTMLDocument.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:3)
at Object.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:3)
at Object.a.event.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:8)
at HTMLDocument.<anonymous> (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:3)
at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:2)
at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:2)
at a.fn.init.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:3)
at Object.<anonymous> (heartbeat.min.js?ver=5.2.4:1)
(anonymous) # wp-auth-check.min.js?ver=5.2.4:1
dispatch # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:3
r.handle # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:3
trigger # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:3
a.event.trigger # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:8
(anonymous) # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:3
each # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:2
each # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:2
trigger # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:3
(anonymous) # heartbeat.min.js?ver=5.2.4:1
i # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:2
fireWith # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:2
x # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:4
c # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:4
XMLHttpRequest.send (async)
send # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:4
ajax # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:4
j # heartbeat.min.js?ver=5.2.4:1
k # heartbeat.min.js?ver=5.2.4:1
m # heartbeat.min.js?ver=5.2.4:1
(anonymous) # heartbeat.min.js?ver=5.2.4:1
dispatch # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:3
r.handle # load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,moxiejs,plupload&ver=5.2.4:3
I have installed themify WordPress theme and created a home page in it locally. Google map is giving the following error in JavaScript console.
util.js:210 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keysTA.j # util.js:210(anonymous function) # js?sensor=false&ver=4.6.1:126(anonymous function) # js?sensor=false&ver=4.6.1:46(anonymous function) # js?sensor=false&ver=4.6.1:43(anonymous function) # js?sensor=false&ver=4.6.1:46(anonymous function) # js?sensor=false&ver=4.6.1:98(anonymous function) # js?sensor=false&ver=4.6.1:43(anonymous function) # js?sensor=false&ver=4.6.1:98hc # js?sensor=false&ver=4.6.1:45gc.wb # js?sensor=false&ver=4.6.1:98(anonymous function) # stats.js:1
util.js:210 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-requiredTA.j # util.js:210(anonymous function) # js?sensor=false&ver=4.6.1:126(anonymous function) # js?sensor=false&ver=4.6.1:46(anonymous function) # js?sensor=false&ver=4.6.1:43(anonymous function) # js?sensor=false&ver=4.6.1:46(anonymous function) # js?sensor=false&ver=4.6.1:98(anonymous function) # js?sensor=false&ver=4.6.1:43(anonymous function) # js?sensor=false&ver=4.6.1:98hc # js?sensor=false&ver=4.6.1:45gc.wb # js?sensor=false&ver=4.6.1:98(anonymous function) # stats.js:1
VM23938:1 'webkitIDBTransaction' is deprecated. Please use 'IDBTransaction' instead.(anonymous function) # VM23938:1a.S # VM23904:1V # VM23904:1F # VM23904:1botguard.bg # VM23904:1(anonymous function) # www-embed-player.js:123g # www-embed-player.js:108
js?sensor=false&ver=4.6.1:34 Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error_.kb # js?sensor=false&ver=4.6.1:34(anonymous function) # common.js:50(anonymous function) # common.js:203c # common.js:44(anonymous function) # AuthenticationService.Authenticate?1shttp%3A%2F%2Flocalhost%2Frdxcorporate%2Faffiliate-clubs%2F&cal…:1
I am unable to find the location where I can put the api key.
This has been documented in the Themify documentation:
Google recently requires users to create an API key in order to use
Google Map. To fix this go to
https://developers.google.com/maps/documentation/javascript/get-api-key,
then copy your API key and paste it in Themify > Settings > Google
Maps page.
I have been trying (with qualified success) to minimize a somewhat ill-behaved function using optimize. I can reliably obtain acceptable solutions, but much more slowly than need be. It would be best if optimize would stop iterating when it found a function parameter that produced a return value near the minimum. It appears that this is the intent of the tol argument to optimize, but I have not been able to make this work as expected. In the code below, fcn prints the current value of the parameter to be optimized and fcn's return value (abs(x - target)), which has a minimum of zero.
Trial 1:
optimize(fcn, interval=c(0.5,1), conN=10, tmtN=10 ,ObsT=28, tol=0.007)
# 0.690983 0.513100
# 0.809017 0.373100
# 0.881966 0.214100
# 0.927051 0.079100
# 0.954915 0.046200
# 0.9647293 0.0844000
# 0.9453678 0.0099000
# 0.9430344 0.0045000 <-- Should have terminated here
# 0.9369293 0.0309000
# 0.9407011 0.0205000
# 0.9430344 0.0002000
# $minimum $objective
# [1] 0.9430344 [1] 2e-04
Trial 2
optimize(fcn, interval=c(0.2,1), conN=10,tmtN=10,ObsT=28, tol=0.007)
# 0.5055728 0.6295000
# 0.6944272 0.5112000
# 0.8111456 0.3611000
# 0.8832816 0.2225000
# 0.927864 0.071300
# 0.9554175 0.0510000
# 0.9516505 0.0286000
# 0.9429519 0.0002000 <-- Should have terminated here
# 0.9371889 0.0342000
# 0.9462852 0.0108000
# 0.9429519 0.0099000
# $minimum $objective
# [1] 0.9429519 [1] 0.0099
Also, what exactly is the termination condition for optimize? How is it that in Trial 2, optimize does not terminate when fcn returns 0.0002, but does terminate when fcn returns 0.0099?