Title: Functions.php errors
Last modified: August 21, 2016

---

# Functions.php errors

 *  Resolved [askmediy](https://wordpress.org/support/users/askmediy/)
 * (@askmediy)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/functionsphp-errors-1/)
 * First off I love this plugin.
 * Although it works I get a ton of functions.php errors. I only listed one below
   they are all the same starting from on line 105 – 110 most of them repeated
 *  /home/mysite/public_html/wp-includes/functions.php on line 105
 * Any ideas would be great..
 * [http://wordpress.org/plugins/starbox/](http://wordpress.org/plugins/starbox/)
 * I just installed it on another site of mine in the admin I get the same error
 * Warning: date() expects parameter 2 to be long, string given in /home/jimmy/public_html/
   wp-includes/functions.php on line 105
 * Warning: date() expects parameter 2 to be long, string given in /home/jimmy/public_html/
   wp-includes/functions.php on line 107
 * Warning: date() expects parameter 2 to be long, string given in /home/jimmy/public_html/
   wp-includes/functions.php on line 109
 * Warning: date() expects parameter 2 to be long, string given in /home/jimmy/public_html/
   wp-includes/functions.php on line 110
 * Warning: date() expects parameter 2 to be long, string given in /home/jimmy/public_html/
   wp-includes/functions.php on line 105
 * Warning: date() expects parameter 2 to be long, string given in /home/jimmy/public_html/
   wp-includes/functions.php on line 107
 * Warning: date() expects parameter 2 to be long, string given in /home/jimmy/public_html/
   wp-includes/functions.php on line 109
 * Warning: date() expects parameter 2 to be long, string given in /home/jimmy/public_html/
   wp-includes/functions.php on line 110
 * Very few plugins on this site. I use it more for testing.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [askmediy](https://wordpress.org/support/users/askmediy/)
 * (@askmediy)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/functionsphp-errors-1/#post-4344776)
 * This is what I did. Now I’m no programmer. I changed wp-includes/functions.php
   from line 105 from this
    $datemonth = $wp_locale->get_month( $datefunc( ‘m’, 
   $i ) ); $datemonth_abbrev = $wp_locale->get_month_abbrev( $datemonth ); $dateweekday
   = $wp_locale->get_weekday( $datefunc( ‘w’, $i ) ); $dateweekday_abbrev = $wp_locale-
   >get_weekday_abbrev( $dateweekday ); $datemeridiem = $wp_locale->get_meridiem(
   $datefunc( ‘a’, $i ) ); $datemeridiem_capital = $wp_locale->get_meridiem( $datefunc(‘
   A’, $i ) ); I remove from line 105 -110 and added in the below code To this $
   date_time = date( ‘Y-m-d H:i:s’, strtotime($date_time) );
 * And it works fine now. However I’m sure I screwed up something else but all is
   working fine for my test site anyway. And yes all on the same server.
 *  Plugin Author [SEO Squirrly](https://wordpress.org/support/users/cifi/)
 * (@cifi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/functionsphp-errors-1/#post-4344933)
 * Hey,
 * I think that this problem can appear when is asking for the latest posts time.
   I’ve added a condition to prevent this error.
 * Try to reinstall Starbox and see if you still get the same error.
 * Thanks for your feedback
    Calin
 *  Thread Starter [askmediy](https://wordpress.org/support/users/askmediy/)
 * (@askmediy)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/functionsphp-errors-1/#post-4344944)
 * Thank you. I spend all weekend long trying to fix this. Works great thank you
   so much.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Functions.php errors’ is closed to new replies.

 * ![](https://ps.w.org/starbox/assets/icon-256x256.png?rev=1974206)
 * [Starbox - the Author Box for Humans](https://wordpress.org/plugins/starbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/starbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/starbox/)
 * [Active Topics](https://wordpress.org/support/plugin/starbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/starbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/starbox/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [askmediy](https://wordpress.org/support/users/askmediy/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/functionsphp-errors-1/#post-4344944)
 * Status: resolved