Support

Home Forums Event Espresso Premium EE4 Unable to Create Tickets / Invalid Date or TImezone

EE4 Unable to Create Tickets / Invalid Date or TImezone

Posted: August 29, 2014 at 10:39 pm


Someplace Sober

August 29, 2014 at 10:39 pm

When trying to create an event in EE4, when I click ‘add date time’ and ‘create ticket’, it takes me to the /wp-admin/post.php page. Thus I’m unable to create tickets and add a date/time to my event.

At some point I proceeded with posting the event, and an error message with something about having an invalid date / timezone string appeared.

Could someone kindly help me take a look at the plug in /coding and assist me please?

Thanks!

My date format is F j, Y and time format is H:i. Timezone is Singapore.

WordPress 3.9.2.
No eventure add-ons.
New installation.

http://www.someplacesober.com


Someplace Sober

August 29, 2014 at 10:41 pm

I am able to provide log-in details etc if required.


Tony

  • Support Staff

September 1, 2014 at 2:46 am

Hi,

IF you go to Event Espresso -> Maintenance -> Help & Support -> Support (tab)

In there it will show your PHP version, is it currently PHP 5.2.xx?


Someplace Sober

September 1, 2014 at 10:08 am

PHP Version:
5.3.28

WordPress Version:
3.9.2

MySQL Version:
5.5.37

Event Espresso Version:
4.3.1.p


Tony

  • Support Staff

September 2, 2014 at 2:41 am

When you created this event did you initially assign the event a title before publishing?

Does the same happen if you create a new event (be sure to give the event a title)?

It is also possible this is caused be a theme/plugin conflict, could you temporarily disable all non EE plugins and retry.

If the result is the same, try switching to one of the default themes such as twentyfourteen and retry (you can switch themes without effecting the live site using a plugin such as Theme Test Drive)


Someplace Sober

September 2, 2014 at 3:07 am

I have deactivated all plug ins, then reactivated event espresso 4, then changed my theme to 2014. And attempted the following:

I assigned a title, then I scroll down to the ticket part and I see this weird formatting. See screenshot 1 – http://i.imgur.com/K3bcQQf.png

1. When I key in the details despite the weird formatting and hit submit, no error occurs. As to whether the ticket and payment actually works I am not sure.

2. When I click ‘Add datetime’ or ‘Create ticket’ I am brought to /wp-admin/post.php page which refreshes the event post and automatically saves it. See screenshot 2 – http://i.imgur.com/v5jXuNQ.png On this page, an error message appears. See screenshot 3 – http://i.imgur.com/wR4WzZ2.png

3. After the page refreshes, when I click ‘Add datetime’ or ‘Create ticket’, I

3. When I go click ‘edit’ event post on the event post overview page, then click ‘Add date time’ or ‘Create ticket’ OR click ‘publish’ post, this message pops up:
Uncaught exception ‘EE_Error’ with message ‘Something went wrong with setting the date/time. Likely, either there is an invalid datetime string or an invalid timezone string being used.’ in /wp-content/plugins/event-espresso-core-reg (2)/core/db_models/fields/EE_Datetime_Field.php:430 Stack trace: #0 /wp-content/plugins/event-espresso-core-reg (2)/core/db_models/fields/EE_Datetime_Field.php(393): EE_Datetime_Field->_convert_from_string_value_to_utc_unixtimestamp(‘2014-010-02 04:…’) #1 /wp-content/plugins/event-espresso-core-reg (2)/core/db_models/fields/EE_Datetime_Field.php(84): EE_Datetime_Field->_convert_to_utc_unixtimestamp(‘2014-010-02 04:…’) #2 /wp-content/plugins/event-espresso-core-reg (2)/core/db_classes/EE_Base_Class.class.php(182): EE_Datetime_Field->prepare_for_set(‘2014-010-02 04:…’) #3 /wp-content/plugins/event-espresso-core-reg (2)/caffeinated/admin/new/pricing in /wp-content/plugins/event-espresso-core-reg (2)/core/db_models/fields/EE_Datetime_Field.php on line 430-

  • This reply was modified 9 years, 7 months ago by  Tony. Reason: removed server details


Someplace Sober

September 2, 2014 at 3:28 am

I had also done a reinstall of the plugin to no avail.


Tony

  • Support Staff

September 2, 2014 at 3:40 am

Thank you, the error messages will help narrow this down.

I’ve created a ticket for some developer feedback on this and added the above details.

In the mean time if you could provide login details using this form:

https://eventespresso.com/send-login-details/

I’ll take a look and see if I can see a cause.

Also is this a Linux or Windows server?


Someplace Sober

September 3, 2014 at 8:28 am

I’m using a mac which means it’s Linux right?

I have just sent in the log in details. Thanks!


Tony

  • Support Staff

September 3, 2014 at 9:03 am

I had a look at your server and have found the issue.

On the Event Editor page (and actually all around EE) I notice the formatting wasn’t correct and various styles we use weren’t being applied. Looking in Google chrome I can see why – http://take.ms/88cuZ

None of EE styles/JS could be found.

I logged in via FTP and found the Event Espresso plugin directory was named ‘event-espresso-core-reg (2)’ – notice the space.

The scripts were trying to load from event-espresso-core-reg(2) so could not be found.

This I suspect was caused from downloading EE multiple times using Chrome (which appends ‘ (n)’ onto the end of the filename for each download.

When uploading plugins via the WP Dahsboard, the filename is used to create the plugins directory, this should not contain spaces (and preferably numbers or special chars) when uploading to prevent errors such as these.

Can you confirm the issue is resolved please?


Someplace Sober

September 3, 2014 at 9:11 am

Thanks. How do I fix this problem? Because I installed EE through downloading on safari then uploading it to wordpress or through FTP.


Tony

  • Support Staff

September 3, 2014 at 9:17 am

It should be fixed currently.

Edit an event and add a ticket/datetime and there should be no issue.

To prevent this happening again if you manually update Event Espresso for example, before uploading the plugin, be sure to remove any spaces, numbers or brackets from the file name before uploading.

The support post ‘EE4 Unable to Create Tickets / Invalid Date or TImezone’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso