Hi Faerie87,
I have another user reporting similar issues. I have not encountered it – so I’m not sure what may be causing it.
What is the date format that you are using when creating announcement posts? It could be that the date format is not recognized or is not being stored properly in the database, which is what the section error, “date() expects parameter 2 to be long…”, means.
You can check the date format by going to Settings > General > Date Format.
Thanks,
Evan
Hi Evan,
The date format I have set is
Date Format Date Format May 30, 2016 F j, Y
Time Format Time Format 3:05 pm g:i a
thanks.
Celine
Are you using any of the custom code we have in our documentation? I’m trying to figure out why the date would not be saving properly.
Thanks,
Evan
Hi Evan,
I literally just installed the plugin via the wordpress plugin page and have not been able to create a new announcement. I didn’t change any settings initially aside from the colours etc from new announcements.
After your reply, I’ve tried changing the date format from settings you mentioned earlier and I still get the same error. I tried to uninstall the plugin and delete everything and reinstall the code and still get the same error.
I’m wondering if it’s the theme it’s clashing with since the theme comes with visual composer. that’s the only thing I can think of. it’s a pretty fresh install of wordpress and I have not made that much customisations.
thanks!
It sounds like your server is running an older version of PHP. Can you check what version it is set at? It’s usually found in your cpanel if you are on a shared host.
I believe the function requires PHP 5.3.0 or later, or else you will run into the mentioned fatal error.
http://php.net/manual/en/datetime.gettimestamp.php
Thanks,
Evan
Hi,
No, I’m running php 5.4 🙁 I can give you access to wordpress if needed. but not sure…
here are some screenshots:
thanks
wordpress
Yea, email us at [email protected] and we can work on resolving the issue in your specific instance.
I can’t replicate things on my end, so witnessing it first hand would be helpful in diagnosing what is going wrong.
Evan
Thanks,
I have responded. I will report back here to publicly report my findings.
Thanks,
Evan
Hello, I am getting this same message, any fix for this? Thank you very much.
Fatal error: Call to a member function getTimeStamp() on a non-object in /home/content/57/8282457/html/wp-content/plugins/timeline-express/lib/helpers.php
I still have not been able to track this issue down. each time a user reports it, and I ask them to email me – I either don’t get a response or get a response, but cannot get access to the server with issues – which prevents me from seeing the issue first hand and coming up with a patch.
This has generally occurred due to the usage of an unsupported date format.
If you are still having issues you should email us at the email mentioned above.
Thanks,
Evan
Sorry, I have just gotten the ftp details. Have emailed you.
Hopefully you have a fix.
Thanks!
If you are encountering the issue still, take a look at the following documentation that we’ve setup:
https://www.wp-timelineexpress.com/documentation/fatal-error-call-member-function-gettimestamp/
You’ll need to login to your hosting account and update your version of PHP, since it is most likely using a version prior to 5.3. This seems to be the issue for many of our users.
Thanks,
Evan
Oh, it turns out I was using an older version of PHP. I use hostgator and my CPanel said 5.4, I thoought it automatically updates! So I guess I had to manually update it.
I works great now after I updated!
Thanks!
Thank you. I had the issue and your excellent documentation allowed me update my PHP version and fix my problem. Tom