WordPress.org

Forums

ArtistDataPress
[resolved] Unknown or bad timezone () (10 posts)

  1. awellis13
    Member
    Posted 3 years ago #

    Hello,

    I have activated the plugin and set it up to use on a client's blog and the shortcode causes the "Shows" page we created to break. When tailing my PHP error_log I see the following:

    [error] 25168#0: *37308 FastCGI sent in stderr: "PHP Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone ()' in /var/www/example.com/html/wp-content/plugins/artistdatapress/inc/layout.php:117

    If I modify that file to and wrap the ISO lines in if (!empty($show->showtimeZone)) the error goes away. When logging the $show object, the showtimeZone is an empty SimpleXMLElement object.

    Is this the XML feed that is breaking, or is it the plugin?

    Let me know if I can provide any more information.

    Regards,
    Andrew

    http://wordpress.org/extend/plugins/artistdatapress/

  2. slushman
    Member
    Plugin Author

    Posted 3 years ago #

    Hey Andrew,

    Just curious, does the error also say something about "Unknown or bad timezone (System/Localtime)"? If so, someone else is reporting that same error and we may need to troubleshoot some to figure it out.

    The ISO section is part of the formatting needed to make each event show up as an event on Google. They use microformats to delineate different things, like events, and I added the event microformat in the last big update. The ISO section just takes the time and date for the event and puts it into the correct format to be read correctly for each event.

    Can you give the URL for your show feed? I want to try to narrow this error down.

  3. wolfmancon
    Member
    Posted 3 years ago #

    I am having the exact same problem. I'm a bit of a novice, so far I tried tampering with my wordpress account time zone as well as the time format options inside your plugin. I hope I eventually get your plugin to work, it is exactly what I am looking for.

    The first show on our list loads but the rest do not. Here is what I see:

    Shows
    4/06/2012 at 9:00 pm
    RiRa Irish Pub
    Portsmouth, NH - map
    Tickets: Age Limit: 21+

    Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() [datetimezone.--construct]: Unknown or bad timezone (System/Localtime)' in /home/content/55/7791555/html/wp-content/plugins/artistdatapress/inc/layout.php:117

  4. wolfmancon
    Member
    Posted 3 years ago #

  5. slushman
    Member
    Plugin Author

    Posted 3 years ago #

    Hey Wolfman,

    I may have this one figured out and I'll post a bug fix release once I get that sorted. Part of the problem is ArtistData has duplicate entries for venues, like The High Noon Saloon has four options, all in Norwich Ct (or "Norwhich" in one case), which is bound to happen when a company allows its customers to enter their own data. It appears that at least one or several of these venues are entered without the correct time zone setting, which then defaults to System/Localtime, which isn't a real, valid time zone - and completely jacks the ADP plugin. I'll get a bug fix out asap and this should go away for you and everyone else.

    Slushman

  6. wolfmancon
    Member
    Posted 3 years ago #

    I'm very impressed with how fast you pounced on this. Your explanation sounds pretty convincing as well.

    Just for kicks I tried using my past shows XML feed which loaded 6 shows before crashing on a fatal error. Therefore the problem must have something to do with the way that 7th show is filed.

  7. ladyroboto
    Member
    Posted 3 years ago #

    I'm having this issue too, and I'm glad it's already being handled! Thank you slushman!

  8. wolfmancon
    Member
    Posted 3 years ago #

    Have you had any luck with the above mentioned update to "Artistdatapress"?

  9. slushman
    Member
    Plugin Author

    Posted 2 years ago #

    Marking as resolved, let me know if its not.

  10. wolfmancon
    Member
    Posted 2 years ago #

    Yes I would say this has been resolved. Thank you for your time & this plugin. It's great!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • ArtistDataPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic