Event not listing on dev site
-
Firstly – this is a great plugin, very handy!
I’ve been developing locally where things have been fine and have now moved the site to a dev server and have the following issues.
– Eventbrite_Query loop returns an empty array
– eventbrite-index.php (also Eventbrite_Query) shows events without imagesAlso, a test of eventbrite_get_events returns full array just fine.
I’m getting no issues on my localhost. I have tried the following:
– Reconnecting
– Deleting plugins (Eventbrite API and Keyring) and setting up again
– Deleting caches
– Checked PHP (5.4.38)
– Re-uploaded templatesThe connection test works and I’m getting new data, just not the images and some queries.
Any ideas?
-
Still no luck with this.
I’ve tried creating a new App, deleting the plugins again (wiping data first), deleting database and uploading again, still the problem persists.
To rephrase the question, do you know why I might get this result?
– eventbrite_get_events(); (works)
– eventbrite_get_event(XXXXXXXXXXX, true); (empty array)
– eventbrite_get_event(XXXXXXXXXXX, false); (empty array)Any ideas much appreciated.
Hi Jake,
The first thing that pops out is that those two functions make different API calls; also, that eventbrite_get_event() can bail if the ID passed is too short, or not an integer (but your examples above look like that shouldn’t be the case).
We’ll check things again on our end.
Thanks, the thing is that all functions are working fine on my local set-up, just not on the server.
I copied the database and all files across, then changed the OAuth Redirect URI value. When it didn’t work correctly I tried deleting the plugins and reinstalling them fresh.
I’m wondering if something might have been cached in the database that is causing this. Something that not all functions check perhaps?
Will be trying another hosting company this afternoon, just in case it’s something in the php set-up. I’m trying to avoid rebuilding the entire site on the live server, though it’d be interesting if it works from a fresh install.
Hm, actually, there’s a
eventbrite_api_tokenoption in the options database which you wouldn’t want to carry over to another host; but uninstalling the plugin and reinstalling should have taken care of that. There are other db things too related to transients. Maybe best to start from a fresh db as far as EB is concerned (but again, uninstalling the plugin on the server should clean this all up):eventbrite_api_token
eventbrite_api_transients
eventbrite_XXXXXXXXXXXXXXXXXXXXX(individual transients)Searching “eventbrite” in the
wp_optionstable should return all of these.Maybe another difference is PHP version? I’m fairly certain we’re good down to 5.2. Anything in the error log on the server?
Hi Jake, any luck with this?
Just tested out the
eventbrite_get_events()andeventbrite_get_event()on a DigitalOcean install again, and got expected results. Let me know if you have any other info that might help.Hi, sorry for the delay. I’ve had mixed results:
After deleting the plugins there were multiple references to eventbrite and keyring – I tried deleting a few but was a little heavy handed and broke something. There does seem to be something odd going on with caching and things being retained in the database.
Tried a new install on a different server and everything worked as expected.
Tried to resurrect the install on the client’s server (using a fresh database install and fresh plugins) and the issues are back again. Most frustrating.
I’m going to try a new install on the client’s server (1&1) using fresh core wp files as well as database and see if that works.
If that doesn’t work I may have to exclusively use eventbrite_get_events() and loop through for the correct ID. It’s a shame though as the Eventbrite_Query has some nice features.
I’m surprised more people aren’t reporting similar problems, as moving from local to dev / live is quite a common thing to do.
Will report back..
I just tried a new install on the client’s 1&1 server:
fresh core files and database
fresh plugin files (not FTP)
new Eventbrite Appand it didn’t work – as before eventbrite_get_events() does, eventbrite_get_event() doesn’t.
I switched on E_ALL error reporting and got the following on a test of eventbrite_get_event():
Notice: Undefined property: Keyring_Error::$name in …./dev/wp-includes/class-wp-error.php on line 78
Notice: Undefined property: Keyring_Error::$description in …./dev/wp-includes/class-wp-error.php on line 78
Notice: Undefined property: Keyring_Error::$start in …./dev/wp-includes/class-wp-error.php on line 78
Notice: Undefined property: Keyring_Error::$start in …./dev/wp-includes/class-wp-error.php on line 78
I don’t get that using eventbrite_get_events() – does that mean anything?
I get these errors when trying an Eventbrite_Query with the ‘p’ set to an event ID.
Notice: Undefined property: Keyring_Error::$name in …./dev/wp-includes/class-wp-error.php on line 78
Notice: Undefined property: Keyring_Error::$description in …./dev/wp-includes/class-wp-error.php on line 78
Notice: Undefined property: Keyring_Error::$start in …./dev/wp-includes/class-wp-error.php on line 78
Notice: Undefined property: Keyring_Error::$start in …./dev/wp-includes/class-wp-error.php on line 78
Notice: Trying to get property of non-object in …./dev/wp-content/plugins/eventbrite-api/inc/functions.php on line 249
Notice: Trying to get property of non-object in …./dev/wp-content/plugins/eventbrite-api/inc/functions.php on line 250
Notice: Trying to get property of non-object in …./dev/wp-content/plugins/eventbrite-api/inc/functions.php on line 228
Notice: Trying to get property of non-object in …./dev/wp-content/plugins/eventbrite-api/inc/functions.php on line 233
Notice: Trying to get property of non-object in …./dev/wp-content/themes/trichocare/single-event.php on line 53
Notice: Trying to get property of non-object in …./dev/wp-content/themes/trichocare/single-event.php on line 54
Notice: Trying to get property of non-object in …./dev/wp-content/themes/trichocare/single-event.php on line 55
Yeesh.
Hm, OK, the errors all make sense with respect to each other. Eventbrite_Query with the ‘p’ parameter uses eventbrite_get_event(), so that explains the cascade of errors right to your theme templates. It’s like eventbrite_get_event() is making a call to the event_details endpoint that results in an error, and then Keyring isn’t handling it properly. I think. And why that’s broken only on the host you need it on is frustrating to say the least.
I think we need to see what Keyring’s debugging mode says. In your wp-config.php, define the ‘KEYRING__DEBUG_MODE’ constant as true, like so:
define('KEYRING__DEBUG_MODE', true);This will spit out a lot of info to your error log for everything Keyring does, including error codes that come back from the Eventbrite API. See if that adds any details?
Also, can you give me an event ID that you’ve been testing with, one that fails when it’s set as ‘p’?
Thanks for this. A you say – that fact it’s not working just on this server is frustrating. I even tried it using twentythirteen just to make sure it wasn’t my theme.
I’ve got the error log working and have the below for eventbrite_get_event(16294651742, true);
Doing the same on another server gets the expected result.[02-Apr-2015 09:06:42 UTC] Keyring: https://www.eventbriteapi.com/v3/events/885217442?p=885217442
[02-Apr-2015 09:06:42 UTC] Keyring: OAuth2 Params
[02-Apr-2015 09:06:42 UTC] Keyring: Array
(
[headers] => Array
(
[Authorization] => Bearer UMT74UJCXZDH26YRM4SO
))
[02-Apr-2015 09:06:43 UTC] Keyring: OAuth2 Response
[02-Apr-2015 09:06:43 UTC] Keyring: Array
(
[headers] => Array
(
[server] => nginx
[date] => Thu, 02 Apr 2015 09:06:43 GMT
[content-type] => application/json
[connection] => close
[x-xss-protection] => 1; mode=block
[x-content-type-options] => nosniff
[vary] => Accept
[x-ua-compatible] => IE=edge
[allow] => GET, POST, HEAD, OPTIONS
[x-frame-options] => SAMEORIGIN
[access-control-allow-origin] => *
[access-control-allow-headers] => Authorization
[p3p] => CP=”NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM”
[set-cookie] => Array
(
[0] => SP=AGQgbbnUoN0M2sNOPFCCxgXEvlxY3I3qIM-uICo_kSoQExz8SnFAgB_ucWDysJlsNdwo8IM2_oEo3I2lCOvVLh9hOICL8WutHI9QhU21xMjrCAZ_I5QNBky2jqKRr2c1iR2ytDVvjERLJhr82UY0fp1Ch-luudyYdv-4yvmp9dWqyjVXccpSS-WpvJVpUs9ZcYvzj4jUB7aP8sX82TvHF81CcPACKqahMmjSncRUy8VmAaUZT_XiQVM; Domain=.eventbriteapi.com; httponly; Path=/
[1] => G=v%3D1%26i%3D35980236-487c-4811-ad92-2bbfb03e3cdd%26a%3D598%26s%3DAPDvTK4eqbrqYtkw_8q9e1bJJQL8K2U6Xw; Domain=.eventbriteapi.com; expires=Fri, 01-Apr-2016 09:06:43 GMT; httponly; Path=/
[2] => ebEventToTrack=; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/
[3] => SS=AE3DLHQSY7LKyXXCfT8WmeKBbItzOuaXyQ; Domain=.eventbriteapi.com; httponly; Path=/; secure
[4] => eblang=lo%3Den_US%26la%3Den-us; Domain=.eventbriteapi.com; expires=Fri, 01-Apr-2016 09:06:43 GMT; httponly; Path=/
[5] => AN=; expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/
))
[body] => {“status_code”: 404, “error_description”: “The event you requested does not exist.”, “error”: “NOT_FOUND”}
[response] => Array
(
[code] => 404
[message] => NOT FOUND
)[cookies] => Array
(
[0] => WP_Http_Cookie Object
(
[name] => SP
[value] => AGQgbbnUoN0M2sNOPFCCxgXEvlxY3I3qIM-uICo_kSoQExz8SnFAgB_ucWDysJlsNdwo8IM2_oEo3I2lCOvVLh9hOICL8WutHI9QhU21xMjrCAZ_I5QNBky2jqKRr2c1iR2ytDVvjERLJhr82UY0fp1Ch-luudyYdv-4yvmp9dWqyjVXccpSS-WpvJVpUs9ZcYvzj4jUB7aP8sX82TvHF81CcPACKqahMmjSncRUy8VmAaUZT_XiQVM
[expires] =>
[path] => /
[domain] => .eventbriteapi.com
[httponly] =>
)[1] => WP_Http_Cookie Object
(
[name] => G
[value] => v=1&i=35980236-487c-4811-ad92-2bbfb03e3cdd&a=598&s=APDvTK4eqbrqYtkw_8q9e1bJJQL8K2U6Xw
[expires] => 1459501603
[path] => /
[domain] => .eventbriteapi.com
[httponly] =>
)[2] => WP_Http_Cookie Object
(
[name] => ebEventToTrack
[value] =>
[expires] => 0
[path] => /
[domain] => http://www.eventbriteapi.com
[max-age] => 0
)[3] => WP_Http_Cookie Object
(
[name] => SS
[value] => AE3DLHQSY7LKyXXCfT8WmeKBbItzOuaXyQ
[expires] =>
[path] => /
[domain] => .eventbriteapi.com
[httponly] =>
[secure] =>
)[4] => WP_Http_Cookie Object
(
[name] => eblang
[value] => lo=en_US&la=en-us
[expires] => 1459501603
[path] => /
[domain] => .eventbriteapi.com
[httponly] =>
)[5] => WP_Http_Cookie Object
(
[name] => AN
[value] =>
[expires] => 0
[path] => /
[domain] => http://www.eventbriteapi.com
[max-age] => 0
)[6] => WP_Http_Cookie Object
(
[name] => mgrefby
[value] =>
[expires] => 1459501603
[path] => /
[domain] => .eventbriteapi.com
[httponly] =>
[max-age] => 31536000
)[7] => WP_Http_Cookie Object
(
[name] => mgref
[value] => typeins
[expires] => 1459501603
[path] => /
[domain] => .eventbriteapi.com
[httponly] =>
[max-age] => 31536000
))
[filename] =>
)[02-Apr-2015 09:06:43 UTC] PHP Notice: Undefined property: Keyring_Error::$name in /htdocs/dev/wp-includes/class-wp-error.php on line 78
[02-Apr-2015 09:06:43 UTC] PHP Notice: Undefined property: Keyring_Error::$description in /htdocs/dev/wp-includes/class-wp-error.php on line 78
[02-Apr-2015 09:06:43 UTC] PHP Notice: Undefined property: Keyring_Error::$start in /htdocs/dev/wp-includes/class-wp-error.php on line 78
[02-Apr-2015 09:06:43 UTC] PHP Notice: Undefined property: Keyring_Error::$start in /htdocs/dev/wp-includes/class-wp-error.php on line 78Oddly no other errors are logged on the Eventbrite_Query page, just the ones mentioned before.
I’m using 16294651742 for both eventbrite_get_event() and Eventbrite_Query, though I have tried others.
In the meantime, I think we may recommend a different host to the client, though it would be good to know the cause of this.
Ah, now we’re getting somewhere: TC Test event v2?
This from the above indicates the the event ID is getting changed somehow:
https://www.eventbriteapi.com/v3/events/885217442?p=885217442Using Postman for testing, that URL gives the mentioned (and problematic) result:
[body] => {"status_code": 404, "error_description": "The event you requested does not exist.", "error": "NOT_FOUND"}But a call like this:
https://www.eventbriteapi.com/v3/events/16294651742?p=16294651742returns the event “TC Test event v2”, which I assume is what you’re looking for?
Are all plugins exactly the same on the desired host, as on testing hosts? I feel like something is filtering something; can you check with all plugins deactivated other than Keyring and Eventbrite API?
That’s interesting, I hadn’t spotted that. I just tried to get another event and it did the same (another false ID).
It’s useful to know it’s trying to retrieve the event, albeit the wrong ID.
I’ve tried deactivating all other plugins and am using a child theme of Twentythirteen.I can’t see a pattern in the numbers:
16294651742 (actual ID)
/ 18.40751319
= 885217442 (ID used)16430450921 (actual ID)
/ 21.92427344
= 749418263 (ID used)I’ll try another fresh install, keeping things as basic as possible.
I don’t think you’re the only one; I have a feeling this wrong ID is the cause of others getting “this event has not been published yet” in their Eventbrite ticket iframes. I still haven’t been able to replicate it myself yet.
The topic ‘Event not listing on dev site’ is closed to new replies.