Home › Forums › Ticket Products › Event Tickets Plus › ArgumentCountError thrown
- This topic has 11 replies, 2 voices, and was last updated 8 years, 1 month ago by
nssbethel.
-
AuthorPosts
-
February 21, 2018 at 9:58 am #1460068
nssbethel
ParticipantWhen I try to view the attendees for an upcoming event, I get the following error message:
ArgumentCountError thrown
Too few arguments to function tribe_add_start_time_to_event_title(), 1 passed in /home/rehsvwfts73o/public_html/wp-includes/class-wp-hook.php on line 286 and exactly 2 expectedHowever, when I view the attendees for a past event, it works fine.
Thanks,
-Hirsch
February 22, 2018 at 10:13 am #1461185nssbethel
ParticipantWhen can I expect to receive a reply in response to this question?
Thanks,
February 22, 2018 at 11:58 am #1461304Victor
MemberHi Hirsch!
Thanks for taking your time to report this.
I’m sorry for the delay in our response. Let me note that it might take us between 24-48 hrs before we respond to a post as we state here > https://theeventscalendar.com/knowledgebase/what-support-is-provided-for-license-holders/ It generally is significantly faster than that, but it depends on forums load.
I can confirm this is indeed a bug we are already working on to fix.
I will set this thread’s status to “Pending fix” and link it to the report. This way, we will notify you once a fix is released in one of our next maintenance releases of our plugins.
We apologise for the inconvenience and we appreciate your patience while we work on this.
Best,
VictorFebruary 22, 2018 at 12:00 pm #1461311nssbethel
ParticipantThanks for getting back to me, and sorry for being pushy about a reply.
That’s great to hear that it’s a bug and you’re working on a fix – but I have a client who has a bunch of upcoming events, and now can’t see anyone who has registered. That’s a big problem. Do you have an estimated timeframe for when this will be fixed, or a workaround solution in the meantime?
February 23, 2018 at 5:55 am #1461887Victor
MemberHi Hirsch!
Thanks for following up with this issue.
We can’t really commit to a date for a fix, but I have just checked the report and it seems a fix is scheduled to be shipped in a maintenance release for late March.
I understand this being important for your client. There are two possible workarounds for this:
One is to disable WP_DEBUG_DISPLAY for your site. This will prevent the PHP warning message from showing up in the attendees export. However, I believe there might be some data missing for the attendee records.
The other one is to replace the Attendees.php file located at wp-content/plugins/event-tickets/src/Tribe/ with the following one instead:
https://gist.github.com/vicskf/cae2703ec34a7b58c80f26d3b0b0b7c1
Please note, this involves modifying a plugin’s core file, which is not really recommended since it will be overwritten with plugin updates, but at least it will fix the PHP warning and missing data.
If you were to try this last option, I highly recommend you first try it out in a dev/staging site before doing so in the live site.
I also encourage to make a full backup of your site, both database and files so in case something goes wrong you can always restore your site.
I hope that helps. Let me know if any follow up questions.
Best,
VictorFebruary 23, 2018 at 12:06 pm #1462360nssbethel
ParticipantI tried replacing that file, but that didn’t do the trick. Re: disabling
WP_DEBUG_DISPLAY, where is that located? In the wp-config file I
see define(‘WP_DEBUG’, false); – is that what you mean?February 26, 2018 at 6:42 am #1463721Victor
MemberHi Hirsch!
Thanks for following up with this. I’m sorry the file didn’t work for you.
To disable WP_DEBUG_DISPLAY, you need to edit your wp-config.php file.
You can leave WP_DEBUG to true and add the following line of code below it:
define('WP_DEBUG_DISPLAY', false);This will prevent the display of errors on the frontend of your site and in the attendees export list.
Let me know if it works for you.
Thanks,
VictorFebruary 26, 2018 at 5:01 pm #1464399nssbethel
ParticipantNeither one of those solutions has worked. Is there anything else that you can recommend?
February 27, 2018 at 5:26 am #1464694Victor
MemberHi Hirsch!
I’m sorry to hear that didn’t work for you.
The good news is that we were able to release a fix for this issue in our latest Event Tickets 4.6.3.1 hotfix release yesterday.
Please update the plugin and see if the fix works for your site.
Thanks,
VictorFebruary 27, 2018 at 10:13 am #1465101nssbethel
ParticipantI was finally able to figure out the problem, and it had nothing to do with the version of the plugin. (Although thanks for the quick work in rolling that out.) It turned out that the snippet of code I had added to my theme’s functions.php file from here, https://theeventscalendar.com/knowledgebase/add-start-time-to-event-title/, was causing the problem. Once I removed that, voila, I could see the list again. There’s some conflict between the two.
I can update the template file instead to show the start time, so it’s not a total loss not being able to use this snippet.
Thanks!
-Hirsch
February 28, 2018 at 5:10 am #1465809Victor
MemberHey Hirsch!
It’s great you could spot that out! I’m glad you could solve the issue and all is working as expected 🙂
Thanks for following up to let me know about it.
I’ll go ahead and close this thread now, but feel free to open a new topic if anything comes up and we’ll be happy to help.
Cheers,
Victor -
AuthorPosts
- The topic ‘ArgumentCountError thrown’ is closed to new replies.
