Support » Plugin: ArtistDataPress » [Plugin: ArtistDataPress] Unknown or bad timezone ()

  • Resolved awellis13



    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/

    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.


Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author slushman


    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.

    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:

    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

    Plugin Author slushman


    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.


    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.

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

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

    Plugin Author slushman


    Marking as resolved, let me know if its not.

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: ArtistDataPress] Unknown or bad timezone ()’ is closed to new replies.