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.
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'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')"
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.