Home › Forums › Calendar Products › Community Events › Community Events submission form not working
- This topic has 5 replies, 2 voices, and was last updated 7 years, 9 months ago by
mynorthmedia.
-
AuthorPosts
-
June 22, 2018 at 8:18 am #1559205
mynorthmedia
ParticipantI’m going nuts.
It’s been weeks of trying to figure out what, if anything, is causing our users to not be able to upload their own events anymore. They can browse the site fine, they can log in, so on and so forth. It’s when they try to load the form at /events/community/add (or are redirected to it after trying to log in) that they have problems. We, as admins, have no trouble loading that form.
Locally, I’ve switched to the default twentyseventeen theme, I’ve shut of all plugins but those provided by you, I’ve turned off caching, turned on caching, I’ve used XDebug to try to narrow down any bits of code. Best I’ve gotten so far is that it’s something with the Linked Posts and how those dropdowns are rendered, likely due to the large numbers of venues and organizers in our system (4516 and 2981 as of right now).
I don’t know if there’s a limit on venues and organizers (shouldn’t be) or if there’s just some bug in the Linked Posts stuff that’s going into a nonstop loop or causing a memory leak, but it seems like there’s definitely something wrong with it at this point.
Any help or insights you can offer would be appreciated.
—Roger Lamb
June 25, 2018 at 2:53 am #1560495Jeremy
KeymasterHi Roger,
I just tried on my local installation with a non-admin user, and I didn’t have any problem submitting a new event via Community Events.
There’s no limit on venues and organizers. If there’s no conflict on your website, my guess is that there might be some restrictions on your web hosting that prevent your users from submitting new events.
Could you try to increase the following values with your web hosting company?
PHP
memory_limit = 256M upload_max_size = 64M post_max_size = 64M upload_max_filesize = 64M max_execution_time = 300 max_input_time = 1000
Please let me know how it goes,
Cheers,
JeremyJune 25, 2018 at 5:24 am #1560564mynorthmedia
ParticipantHey Jeremy,
My
memory_limitwas already at 2048M (2G). I tried bumping up themax_execution_timeas suggested. The other values would apply to actually submitting the form. That’s not my problem yet though. My problem is getting that form to come up at all.It spins for a few minutes before getting a 502 error from Cloudflare. Attempting to bypass that right now for some more testing….
Meanwhile, I’d like to ask this about your local installation if you don’t mind:
- How many events, venues, and organizers were you working with there? Because yes, it’ll work with 10 of each. Does it work with 4,000–10,000 of each though?
- Have the database (my.cnf), web server (httpd.conf or nginx.conf), or PHP (php.ini) settings on your installation been adjusted beyond the WP requirements to run TEC better, and if so how?
Next option almost seems like I’ll need to upgrade PHP from 7.1 to 7.2 and MariaDB from 10.0 to 10.3. That sounds exhausting. haha
I suppose it could be a database bottleneck too…. We have a really beefy dedicated server (48GB RAM, 12 cores), so maybe something is misconfigured in the Database there, but it’s slow to not working on my own machine too.
Really appreciating the help in solving this problem.
June 25, 2018 at 5:25 am #1560565mynorthmedia
Participant(Grr… used backticks around those two settings. Too used to Slack. Forum won’t let me edit it. Oh well…)
June 25, 2018 at 5:39 am #1560578mynorthmedia
ParticipantOkay, so…. bypassing Cloudflare, that page will come up for a non-admin user, it just takes a few minutes.
Any recommendations for speeding that up at all?
June 26, 2018 at 2:22 am #1561411Jeremy
KeymasterHi Roger,
It’s good to know that bypassing Cloudflare helps showing the page, even though it takes a long time. Obviously performance needs to be improved on your website.
To answer your questions:
- I only have a hundred events, venues and organizers on my local installation. It should work with 4,000–10,000 though, but the more events, the slower the website.
- I haven’t adjusted the database, server or php settings beyond the WP requirements to run TEC better.
To speed that up, I’d recommend you to have a look at our article about performance considerations. You might also be interested in that article about caching. Also, given the fact the more events you show, the costlier it gets, it might be a good thing to remove past events.
I hope this helps,
Cheers,
JeremyJuly 18, 2018 at 9:35 am #1578133Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Community Events submission form not working’ is closed to new replies.
