Support

Home Forums Event Espresso Premium New Errors Since Updating

New Errors Since Updating

Posted: March 2, 2017 at 3:51 am

Viewing 8 reply threads


Jeff Long

March 2, 2017 at 3:51 am

I’m seeing two new errors in my log.

[client IP] A valid DateTime could not be recreated from “-0001-11-29 18:00:00 -0600 America/Detroit” because the following errors occurred: Array\n(\n [warning_count] => 0\n [warnings] => Array\n (\n )\n\n [error_count] => 1\n [errors] => Array\n (\n [0] => Unexpected data found.\n )\n\n)\n PHP version: 5.6.30-1+wpengine8, referer: https://secure.authorize.net/gateway/transact.dll

[client IP] A valid DateTime could not be generated from “-0001-11-29 18:00:00 -0600 America/Detroit” because the following errors occurred: Array\n(\n [warning_count] => 0\n [warnings] => Array\n (\n )\n\n [error_count] => 1\n [errors] => Array\n (\n [0] => Unexpected data found.\n )\n\n)\n PHP version: 5.6.30-1+wpengine8 Stack Trace: #0 [internal function]: EventEspresso\\core\\domain\\entities\\DbSafeDateTime->__sleep()\n#1 [dir-path]/wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php(803): serialize(Array)\n#2 [dir-path]/wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php(742): EE_Session->_save_session_to_db()\n#3 [internal function]: EE_Session->update(”)\n#4 [dir-path]/wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array)\n#5 [dir-path]/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)\n#6 [dir-path]/truefocusmedia/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#7 [dir-path]/truefocusmedia/wp-includes/load.php(677): do_action(‘shutdown’)\n#8 [internal function]: shutdown_action_hook()\n#9 {main}, referer: https://secure.authorize.net/gateway/transact.dll

Do you have an idea about what would be going wrong ?


Tony

  • Support Staff

March 2, 2017 at 4:04 am

Hi there,

Which version number of Event Espresso are you currently using?


Jeff Long

March 2, 2017 at 8:29 am

4.9.24.p


Tony

  • Support Staff

March 2, 2017 at 10:03 am

Hmm, we added some code in 4.9.23 that should prevent the above error.

Can you update to the latest version of EE4 (currently 4.9.31) and see if the error continues please?


David Dadekian

March 3, 2017 at 8:22 pm

I’m getting a similar error and I’m running the most current version.


Josh

  • Support Staff

March 6, 2017 at 11:29 am

You should be able to avoid those errors by going to Event Espresso > General Settings > Admin Options and set Encode Session Data? to Yes.


David Dadekian

March 6, 2017 at 12:31 pm

Thank you. Will do that now.


David Dadekian

March 8, 2017 at 7:48 pm

So I set Encode Session Date to yes and when someone bought a ticket on my site today the error occurred again at the same time. Here’s the line(s) from the log:

[08-Mar-2017 23:31:02 UTC] A valid DateTime could not be recreated from “-0001-11-29 19:57:20 -0402 America/Boa_Vista” because the following errors occurred: <br /> Array
(
[warning_count] => 0
[warnings] => Array
(
)

[error_count] => 1
[errors] => Array
(
[0] => Unexpected data found.
)

)
<br /> PHP version: 5.6.30


Josh

  • Support Staff

March 9, 2017 at 9:25 am

OK so the thing to check with the above is find out whether your server supports base64 functions. You can ask your host to see if they’ve disabled base64_encode() and/or base64_decode() functions or if you can do a quick test to verify. Here are the steps for doing the test:

1) You go to WordPress Plugins > Add New
2) You install and activate the Debug Bar plugin
3) You install and activate the Debug Bar Console plugin
4) You click on Debug (on the WP tool bar)
5) You click on Console (in the left column)
6) You add this PHP code to the PHP box, then click Run:

echo base64_encode('encode me!');
echo '<br>';
echo base64_decode('aXQgd29ya3M=');

If your server allows the base64 functions, you’ll see some output in the Output box.

Viewing 8 reply threads

The support post ‘New Errors Since Updating’ 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