ArgumentCountError thrown

Home Forums Ticket Products Event Tickets Plus ArgumentCountError thrown

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1460068
    nssbethel
    Participant

    When 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 expected

    However, when I view the attendees for a past event, it works fine.

    Thanks,

    -Hirsch

    #1461185
    nssbethel
    Participant

    When can I expect to receive a reply in response to this question?

    Thanks,

    #1461304
    Victor
    Member

    Hi 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,
    Victor

    #1461311
    nssbethel
    Participant

    Thanks 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?

    #1461887
    Victor
    Member

    Hi 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,
    Victor

    #1462360
    nssbethel
    Participant

    I 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?

    #1463721
    Victor
    Member

    Hi 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,
    Victor

    #1464399
    nssbethel
    Participant

    Neither one of those solutions has worked. Is there anything else that you can recommend?

    #1464694
    Victor
    Member

    Hi 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,
    Victor

    #1465101
    nssbethel
    Participant

    I 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

    #1465809
    Victor
    Member

    Hey 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

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘ArgumentCountError thrown’ is closed to new replies.