WooCommerce Booking calendor not showing - woocommerce

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.

Related

GA4 Adding Custom Definition - Error Code 13

I'm trying to add a custom definition to one of my GA4 properties and I'm getting this error in the attached image. The weird thing is that I've been able to add the same definition in another GA4 property without issues.
(https://i.stack.imgur.com/Ixbrp.png)
POST https://analytics.google.com/analytics/app/data/v2/reporting/customdefinitions/user?dataset=a55955706p326566624&gamonitor=gafe&hl=en_US&state=app.admin.mobile.customdefinitions.hub 500
l # m=chunk_base_lazy:5033
r.scheduleTask # m=chunk_base_lazy:4995
zua # m=chunk_base_lazy:4992
r.scheduleTask # m=chunk_base_lazy:4995
n.scheduleTask # m=chunk_base_lazy:4989
n.scheduleMacroTask # m=chunk_base_lazy:4990
(anonymous) # m=chunk_base_lazy:5034
d.<computed> # m=chunk_base_lazy:285
(anonymous) # VM327:134
w # VM327:129
(anonymous) # VM327:126
(anonymous) # VM327:161
$digest # VM327:172
(anonymous) # m=chunk_base_lazy:5236
_.ga4.SAb # m=chunk_base_lazy:5067
_.ga4.next # m=chunk_base_lazy:5066
_.ga4.Sc # m=chunk_base_lazy:5064
_.ga4.next # m=chunk_base_lazy:5064
_.ga4.next # m=chunk_base_lazy:5069
_.ga41.emit # m=chunk_base_lazy:5097
ga4$fa # m=chunk_base_lazy:426
Hfa # m=chunk_base_lazy:427
r.Hea # m=chunk_base_lazy:4995
n.runTask # m=chunk_base_lazy:4988
t.Hea # m=chunk_base_lazy:4997
p # m=chunk_base_lazy:297
e # m=chunk_base_lazy:288
r # m=chunk_base_lazy:297
m=chunk_base_lazy:5043
ERROR Error: ba`Object: {"data":{"er":{"errorCode":13,"httpStatus":500},"di":{"serverTime":"46","serverTick":[],"rpcInfo":[],"logRecord":[],"graphInfo":[],"responseExtension":[]}},"status":500,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","resourceName":"CustomDefinitions:User","resourceOperation":"Create","params":{"dataset":"a55955706p326566624","hl":"en_US","gamonitor":"gafe","state":"app.admin.mobile.customdefinitions.hub"},"url":"/analytics/app/data/v2/reporting/customdefinitions/user","data":{"paramName":"sample_custom_dimension","scope":1,"description":"Sample custom dimension description","definitionType":0,"displayName":"Sample Custom Dimension"},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json;charset=utf-8","X-GAFE4-XSRF-TOKEN":"AO6Y7m9xu6pRyxTN5JDl-S7XvhE8SMg43Q:1675874089894"},"uid":"/analytics/app/data/v2/reporting/customdefinitions/user74"},"statusText":"","xhrStatus":"complete"}`
at f (m=chunk_base_lazy:5001:29)
at k (m=chunk_base_lazy:5011:156)
at k (m=chunk_base_lazy:5010:221)
at m=chunk_base_lazy:5012:241
at r.Hea (m=chunk_base_lazy:4996:21)
at Object.Hfa (m=chunk_base_lazy:427:130)
at r.Hea (m=chunk_base_lazy:4995:485)
at n.runTask (m=chunk_base_lazy:4988:141)
at g (m=chunk_base_lazy:4984:3554)
at t.Hea [as invoke] (m=chunk_base_lazy:4997:402)
at p (m=chunk_base_lazy:297:15)
at e (m=chunk_base_lazy:288:246)
at XMLHttpRequest.r (m=chunk_base_lazy:297:171)
I've added this same dimension successfully to other GA4 properties late last year, but now I cannot add this dimension to a different GA4 property.

Firebase storage 412 error when trying to upload with a .put()

I am trying to send a document to firebase storage for the first time. I am using a catch to handle errors. When I try to upload the document, I receive the following error:
xhrio_network.ts:71
POST https://firebasestorage.googleapis.com/v0/b/myappname.../o?name=mydocumentname 412
re.send # xhrio_network.ts:71
(anonymous) # request.ts:143
(anonymous) # backoff.ts:65
setTimeout (async)
l # backoff.ts:63
(anonymous) # backoff.ts:120
ht.start_ # request.ts:210
(anonymous) # request.ts:109
ht # request.ts:106
dt # request.ts:304
lt.makeRequest # authwrapper.ts:143
(anonymous) # task.ts:331
(anonymous) # task.ts:177
n.g # promise.js:826
Ln # promise.js:1166
Dn # promise.js:1140
t.ec # promise.js:1111
vn # run.js:124
Promise.then (async)
on # run.js:55
fn # run.js:34
Pn # promise.js:1029
Nn # promise.js:791
_n # promise.js:847
mn.then # promise.js:569
t.kc # auth.js:1490
lt.getAuthToken # authwrapper.ts:96
rt.resolveToken_ # task.ts:174
rt.oneShotUpload_ # task.ts:323
rt.start_ # task.ts:168
(anonymous) # task.ts:127
rt # task.ts:124
ot.put # reference.ts:148
(anonymous) # jobs.js:279
Promise.then (async)
(anonymous) # jobs.js:277
I am not sure why I am receiving this error as as the error message is not very detailed. Could a 412 error be to do with permissions or something else?
I am using the following to upload from the front-end:
firebase.storage().ref().child("test").put(upload.files[0])
I have also tried:
firebase.storage().ref().child("test.pdf").put(upload.files[0])
Thanks for your time, all help is appreciated.

Log Error Using The Grid Pluging on Wordpress

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

Error in UseMethod("http_error") in roadoi

I'm trying out roadoi to access Unpaywall from R, but no matter what I try to query for, I'm getting this response:
Error in UseMethod("http_error") : no applicable method for
'http_error' applied to an object of class "c('simpleError', 'error',
'condition')"
Running methods(http_error) gives me this:
[1] http_error.character* http_error.integer* http_error.response*
Could this be caused by me being behind an institutional firewall? (even so, it seems weird that this would be the response...)
Is there a way around it?
The http_error (actually from library httr) is a very simple function: it loads an url given by a character (http_error.character), retrieves the response (http_error.response) and ultimately looks at the response code (http_error.integer). If the response code is >=400 the function returns TRUE otherwise FALSE.
What your error says, is that you (or any function in your chain) tries to call http_error on a simpleError object. My guess is that your firewall settings block the request. Because the request is blocked the underlying httr::RETRY (which is called from oadoi_fetch) returns an error instead of a proper response object and http_error sees just this error object and breaks.
If I locally switch off my proxy (through which I can make requests) I also get an error:
library(roadoi)
Sys.unsetenv(c("HTTP_PROXY", "HTTPS_PROXY"))
oadoi_fetch("10.1038/nature12373", email = "name#whatever.com")
# Error in UseMethod("http_error") :
# no applicable method for 'http_error' applied to an object of class
# "c('simpleError', 'error', 'condition')"
As soon as my proxy is set properly I get
Sys.setenv(HTTPS_PROXY = my_proxy, HTTP_PROXY = my_proxy)
oadoi_fetch("10.1038/nature12373", email = "name#whatever.com")
# # A tibble: 1 x 16
# doi best_oa_location oa_locations data_standard is_oa genre journal_is_oa journal_is_in_d~ journal_issns journal_name publisher title year updated non_compliant authors
# <chr> <list> <list> <int> <lgl> <chr> <lgl> <lgl> <chr> <chr> <chr> <chr> <chr> <chr> <list> <list>
# 1 10.1038~ <tibble [1 x 10]> <tibble [4 x~ 2 TRUE journa~ FALSE FALSE 0028-0836,147~ Nature Springer ~ Nanometre-s~ 2013 2019-04-0~
If the problem lies indeed with the proxy, I would try the following, which helped me on my corporate Windows machine, but may be dependent on your local IT setting:
## get the proxy settings
system("netsh winhttp show proxy")
Sys.setenv(HTTP_PROXY = <the proxy from netsh>, HTTPS_PROXY = <the proxy from netsh>)
Actually, you can reproduce the error easily:
httr::http_error(simpleError("Cannot reach the page"))
# Error in UseMethod("http_error") :
# no applicable method for 'http_error' applied to an object of class
# "c('simpleError', # 'error', 'condition')"

themify google map api key error

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.

Resources