PHP error

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #12739
    Andy Fragen
    Moderator

    I’m seeing the following error in my logs.

    PHP Warning: Missing argument 2 for TribeEvents::maybeAddEventTitle() in /Library/WebServer/Documents/troop262ps/wp-content/plugins/the-events-calendar/lib/the-events-calendar.class.php on line 439

    #12740
    Andy Fragen
    Moderator

    BTW, this may be from bots looking for events that don’t exist. I see the following in my access logs.

    66.249.68.110 – – [31/Dec/2011:10:27:31 -0800] “GET /events/1831-01-02 HTTP/1.1” 301 26
    66.249.68.110 – – [31/Dec/2011:10:27:33 -0800] “GET /events/1831-01-02/ HTTP/1.1” 200 4635

    #12748
    Jonah
    Participant

    Hi Andy, thanks for the report. I was not able to produce the error myself but that doesn’t mean it’s not a problem. I’ve logged it for the developers to take a look and we’ll definitely get it fixed if it’s an issue.

    #12873
    Andy Fragen
    Moderator

    Jonah, does the GET statement in my apache log imply that someone is trying to find an event on January 2, 1831??
    In experimenting myself, if I try a similar URL http://troop262ps.org/events/YYYY-MM-DD, whether there are events on that day or not I get the same PHP Warning.

    #12899
    Jonah
    Participant

    Hi Andy,

    I have no idea. I’ll need to get another developer to chime in here…

    #12919
    Joey Kudish
    Member

    Hey Andy,

    Thanks for reporting this issue. We’ve now fixed the maybeAddEventTitle() function so that the second paramater is optional, and thus this error will not be happening again. The fix will be available in the 2.0.3 release which is currently scheduled for next week.

    As for the GET statement, yes it looks like someone (or most likely a bot – can be a search bot or hacker or something else) is trying to access that page.

    Thanks again & let us know if you have any further issues 🙂

    #975000
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘PHP error’ is closed to new replies.