Warning: strtotime() expects parameter 1 to be string, object given in

Home Forums Calendar Products Events Calendar PRO Warning: strtotime() expects parameter 1 to be string, object given in

Viewing 15 posts - 1 through 15 (of 32 total)
  • Author
    Posts
  • #1032301
    mattconrad
    Participant

    Hi there,

    I’ve been using the pro version of the events calendar (with wootickets for ages) and am using the latest version. For some reason, I’m now getting this error come up and U can’t see any reason why:

    Warning: strtotime() expects parameter 1 to be string, object given in /home2/orange/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Query.php on line 221

    Do you know why it would suddenly be appearing and what I can do to resolve it?

    Thanks in advance.

    Matt

    #1032555
    George
    Participant

    Hey @mattconrad,

    I’m sorry to hear about this error – I cannot get it to show up on my local site, so I’m wondering, where exactly on your site (and under which exact circumstances) does this error appear? Can you link directly to a post or page where the error is visible?

    Also, can you elaborate a bit on how/when this error started showing up? What were the last changes you remember making before the errors arose? E.g. were things fine, then you simply update your theme and then the error arose? Or updated a plugin? Or wrote some custom code anywhere on the site? Anything at all that you can think of…

    Thank you!
    George

    #1032558
    mattconrad
    Participant

    Hi George,

    Thanks for getting back to me. The error only shows up when logged in as an administrator which is why you may not be able see it, but this is what it shows:

    Warning: strtotime() expects parameter 1 to be string, object given in /home2/orange/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Query.php on line 221

    It appears on all pages where there is anything to do wit the events plugin.

    The only change I have made is to upgrade the plugin this morning to the latest version. Apart from that, everything is the same.

    Kind regards,

    Matt

    #1032680
    George
    Participant

    Thanks for these details Matt! Hm, this is still odd because I cannot see this error no matter what, whether logged in or not…

    Do you happen to notice any actual problems arising from this, in terms of calendar functionality and such for example? I’m just wondering – if this is mostly a cosmetic issue, as far as it seems, then that at least buys us some time for investigating.

    I’ll continue to try and recreate this error; the line of code in question relates specifically to a variable that stores an event’s Start Date / Time, but I cannot get this error to arise.

    Weird!

    Thanks for your patience with this,
    George

    #1032686
    mattconrad
    Participant

    I haven’t noticed any problems arising from that error when it comes to any of the functionality. It is as far as I can tell just cosmetic, but if somethings erroring, it does tend to effect something at some point which is why I wanted to flag it up. It is weird, especially as I’m not really using the start of end date!

    #1032701
    George
    Participant

    I totally agree about how an error can effect things elsewhere on the site – it’s definitely something worth investigating for sure and I’m doing so, and appreciate your patience with this! One thing I noted though is your last comment there, which is this:

    It is weird, especially as I’m not really using the start of end date!

    What exactly do you mean by that? Can you elaborate on what you mean?

    Thank you!
    George

    #1032702
    mattconrad
    Participant

    What I mean by that is that as much as I define a start date/time for each event in the admin area, I’m not displaying it on the front end.

    #1033295
    George
    Participant

    Thanks for your patience with this! One last question: when you say that you’re not displaying it on the front-end, do you mean that you have some sort of custom CSS or other customization to actively hide the start date/time on the front-end?

    If so, does temporarily removing or disabling this customization affect the presence of that error on your site at all?

    Thank you!
    George

    #1033298
    mattconrad
    Participant

    Hi George,

    I am overriding the templates in my theme, but have just tested it by turning them off and the error still persists.

    Kind regards,

    Matt

    #1033317
    George
    Participant

    Hey Matt,

    Thank you for testing that. I’m still trying to reproduce this error, without luck, and so at this point unfortunately the best steps I can recommend are to do further testing with the full set of steps listed here → https://theeventscalendar.com/knowledgebase/testing-for-conflicts/

    I really appreciate your patience with this!

    Thank you,
    George

    #1033601
    mattconrad
    Participant

    Hi George,

    Thanks for this. I did find that link previously and tried all of those thing without avail. I guess it’s just something I will have to put up with unfortunately.

    On a slightly different matter relating to Wootickets, when I define a stock amount for each ticket, the stock amount does not get saved when I update the ticket or the event – have you experienced this before?

    Kind regards,

    Matt

    #1034070
    George
    Participant

    Hey Matt,

    I’m sorry that this issue is persisting! It’s really got my head scratching; we can indeed table this issue for now, and see if the forthcoming 4.0 updates fix it.

    If not, we can perhaps resume troubleshooting from there on that issue.

    Now, as for the WooCommerce Tickets issue you reported, I personally do not see this behavior. One possibly-contributing factor is the “Order status” of the order as part of which the tickets are purchased.

    Are these orders marked as “Complete” while the stock is not updated? If not, then does marking them as “Complete” get the stock to adjust accurately?

    Thank you!
    George

    #1034339
    mattconrad
    Participant

    Hi George,

    I’ve updated the plugin to version 4 and unfortunately that error is still there.

    Regarding the stock issue, the issue is that when tickets are added or amended in the admin area, whatever amount is defined within the stock field and the event is saved, the stock amount always reverts back to 0. Tickets can still be purchased on the website event though the stock about is set to 0 as well. Something really odd is going on. When tickets are sold, the amount of tickets is added onto the tickets sold so I can see what’s been sold to whom, but the stock doesn’t get effected?

    I’ve also noticed another bug – if a purchase relating to event tickets is refunded and within woocommerce, a round is made and defined, the tickets sold and attendee list is not changed to reflect the refund.

    Kind regards,

    Matt

    #1035674
    George
    Participant

    Matt I am really sorry about these issues – each of these are things I cannot reproduce and I am puzzled about this.

    Would you be able to share your System Information again with me here? I’m just curious about which plugins are now at 4.0 and such on your site.

    #1035867
    mattconrad
    Participant

    Yes sure, the System Information is as follows:

    URL

    Home


    INSTALL KEYS
    events-calendar-pro = f9484552f09aacc24e979e476b7d1a0f518020db
    tribe-wootickets = 69fa76a87fac8d71ed265100142eb0e89bdd9b35
    WORDPRESS VERSION
    4.3.1
    PHP VERSION
    5.4.45
    PLUGINS
    Gravity Forms version 1.9.15 by rocketgenius(http://www.rocketgenius.com)
    Advanced Custom Fields Pro version 5.3.0 by elliot condon(http://www.elliotcondon.com/)
    Advanced Custom Fields version 4.4.3 by Elliot Condon(http://www.elliotcondon.com/)
    Akismet version 3.1.5 by Automattic(http://automattic.com/wordpress-plugins/)
    All In One SEO Pack version 2.2.7.4 by Michael Torbert(http://michaeltorbert.com)
    The Events Calendar PRO version 4.0 by Modern Tribe, Inc.(http://m.tri.be/20)
    Fold Page List version 1.9 by Rob Schumann(http://www.webspaceworks.com/)
    Gravity Forms MailChimp Add-On version 3.7.1 by rocketgenius(http://www.rocketgenius.com)
    myFancybox version 1.0 beta by m.r.d.a
    Page-list version 5.1 by webvitaly(http://web-profile.com.ua/wordpress/plugins/)
    Quick Page/Post Redirect Plugin version 5.1.5 by Don Fischer(http://www.fischercreativemedia.com/)
    Srizon Facebook Album Pro version 3.1.1 by Afzal(http://www.srizon.com/contact)
    The Events Calendar version 4.0 by Modern Tribe, Inc.(http://m.tri.be/1x)
    WooCommerce Checkout Field Editor version 1.4.10 by WooThemes(http://woothemes.com)
    WooCommerce SagePay Form and SagePay Direct Gateway version 3.1.7 by Add On Enterprises (Andrew Benbow)(http://www.addonenterprises.com)
    WooCommerce MailChimp version 1.3.6 by Adam Anderly(http://anderly.com)
    WooCommerce version 2.4.10 by WooThemes(http://woothemes.com)
    WooThemes Helper version 1.5.9 by WooThemes(http://woothemes.com/)
    The Events Calendar: WooCommerce Tickets version 3.12.1 by Modern Tribe, Inc.(http://m.tri.be/28)
    Wordfence Security version 6.0.21 by Wordfence(http://www.wordfence.com/)
    WordPress Importer version 0.6.1 by wordpressdotorg(http://wordpress.org/)
    Acunetix WP Security version 4.0.5 by Acunetix(http://www.acunetix.com/)
    NETWORK PLUGINS

    MU PLUGINS

    THEME
    Orange Rooms
    MULTISITE

    SETTINGS
    tribeEnableViews = Array
    (
    [0] => list
    )
    schema-version = 4.0
    recurring_events_are_hidden = exposed
    previous_ecp_versions = Array
    (
    [0] => 0
    [1] => 3.11.2
    [2] => 3.12
    [3] => 3.12.1
    [4] => 3.12.2
    [5] => 3.12.3
    [6] => 3.12.6
    )
    latest_ecp_version = 4.0
    last-update-message = 3.11.2
    donate-link =
    postsPerPage = 999
    liveFiltersUpdate =
    showComments =
    showEventsInMainLoop =
    eventsSlug = events
    singleEventSlug = event
    multiDayCutoff = 02:00
    defaultCurrencySymbol = £
    reverseCurrencyPosition =
    embedGoogleMaps =
    embedGoogleMapsZoom = 10
    debugEvents =
    disable_metabox_custom_fields = show
    pro-schema-version = 4.0
    stylesheetOption = skeleton
    tribeEventsTemplate = page-events.php
    viewOption = list
    tribeDisableTribeBar = 1
    hideLocationSearch = 1
    hideRelatedEvents = 1
    week_view_hide_weekends =
    monthEventAmount = 999
    enable_month_view_cache =
    dateWithYearFormat = l d F Y
    dateWithoutYearFormat = l d F Y
    monthAndYearFormat = F Y
    weekDayFormat = l d F
    dateTimeSeparator = from
    timeRangeSeparator = to
    datepickerFormat = 3
    tribeEventsBeforeHTML =
    tribeEventsAfterHTML =
    hideSubsequentRecurrencesDefault =
    userToggleSubsequentRecurrences =
    recurrenceMaxMonthsBefore = 24
    recurrenceMaxMonthsAfter = 24
    geoloc_default_geofence = 25
    geoloc_default_unit = miles
    earliest_date = 2015-11-30 02:00:00
    latest_date = 2016-02-27 01:59:59
    custom-fields = Array
    (
    )
    custom-fields-max-index = 4
    tribe_events_timezone_mode = event
    tribe_events_timezones_show_zone =
    WORDPRESS TIMEZONE
    Europe/London
    SERVER TIMEZONE
    UTC
    COMMON LIBRARY DIR
    /home2/orange/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe
    COMMON LIBRARY VERSION
    3.12a1

Viewing 15 posts - 1 through 15 (of 32 total)
  • The topic ‘Warning: strtotime() expects parameter 1 to be string, object given in’ is closed to new replies.