GA4 Adding Custom Definition - Error Code 13 - google-analytics

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.

Related

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.

WooCommerce Booking calendor not showing

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.

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

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.

Can the tol argument to R's optimize(fcn,...) be used to terminate iteration when the value of fcn is close enough to its minimum?

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?

Resources