Hey @stjagg,
What is located on line 68 of file /homepages/36/d424354106/htdocs/lighthouse/wp-content/themes/alms/framework/sermons/templates/archive-wpfc_sermon.php?
I have a pretty good idea what could be the cause and fix is quick 🙂
Thread Starter
stjagg
(@stjagg)
This is what is located on line 68 of that file:
$sdate = gmdate(“F d, Y”, $unixtime);
Thanks for your help!
Hey @stjagg,
Thanks for that!
Could you replace that line with $sdate = gmdate("F d, Y", strtotime( $unixtime ) ); and check if it’s solved?
If it’s not, could you please share the function on GitHub (preferably), to my email ([email protected]) or here? 🙂
We would love to help, but we can’t do it if we don’t know the code!
Thank you for understanding 🙂
Thread Starter
stjagg
(@stjagg)
Thanks! The warning is gone, but now every date is reading January 1, 1970. Any fix for that?
Thread Starter
stjagg
(@stjagg)
Also, I changed the permalink of the archive page from lighthousebap.org/sermons to lighthousebap.org/sermonarchives in case you visit the site to see the problem.
Hey @stjagg,
To avoid bumping around with questions and answers, could you provide us with temporary FTP or WordPress logins to your website? 🙂
We’ll fix it in 10 mins when you send them to us (please send to [email protected]).
Or, if you are uncomfortable with sending temporary logins, you could send us the whole file/function where the problem is and we will take a look (send to the same email please). 🙂
Thank you for your patience.
hi Nikola
I too am getting this type of error in the functions.php on lines
Warning: date() expects parameter 2 to be integer, string given in /homepages/26/d609197811/htdocs/clickandbuilds/HorizonAnglingClub/wp-includes/functions.php on line 104
Warning: date() expects parameter 2 to be integer, string given in /homepages/26/d609197811/htdocs/clickandbuilds/HorizonAnglingClub/wp-includes/functions.php on line 106
Warning: date() expects parameter 2 to be integer, string given in /homepages/26/d609197811/htdocs/clickandbuilds/HorizonAnglingClub/wp-includes/functions.php on line 108
Warning: date() expects parameter 2 to be integer, string given in /homepages/26/d609197811/htdocs/clickandbuilds/HorizonAnglingClub/wp-includes/functions.php on line 109
since updating to the latest update i wonder if you could also look at my functions.php if i emailed it to you as i am very new to WordPress and trying my hardest to learn as been thrown in at the deep end by our small charity.
Kind Regards Dave
p.s have sent to your email above from [email protected].
thank you in advance but not a problem if you are busy.
-
This reply was modified 7 years, 9 months ago by
Darkman. Reason: spelling mistake
Hi Dave (@darkman-89),
I got your email. 🙂
The problem is that some plugin (or maybe even theme itself) is sending bad data to a function that localizes dates, and of course – the engine that powers the website is complaining and showing notices that something is not quite right.
Now, since this issue is unrelated to plugin named Sermon Manager (and this is the support forum of it), I have only few suggestions:
- Disable all plugins and see if the errors are gone. If they are gone, then enable one by one plugin, and reload page each time until errors appear again. When you have identified the plugin, you can contact the developer (each plugin has its own support forum on this website), or if it’s not used – you can just remove it. If the errors are not gone when you disable all plugins, that means that problem is directly theme-related.
- You can just disable error reporting – which would hide the errors, but they will still happen in the background. Which might or might not be fine – depending on your choice. (check the footnote in this reply, or contact your hosting provider about this one)
* To disable errors, you will most likely just need to open /homepages/26/d609197811/htdocs/clickandbuilds/HorizonAnglingClub/wp-config.php and change line with define( 'WP_DEBUG', true ); to define( 'WP_DEBUG', false );. Save file & reload page. If that doesn’t work, leave it to false, and add the following code after that line:
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(0);
Save file again and reload the page. I’m 99% sure that it won’t show errors anymore.
Thank you for being polite. 🙂