Title: syntax error
Last modified: August 20, 2016

---

# syntax error

 *  [rmfurqan](https://wordpress.org/support/users/rmfurqan/)
 * (@rmfurqan)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-43/)
 * can some one tell me how to fix this error??
 * Warning: date() expects parameter 2 to be long, string given in /home/lennox/
   public_html/wp-content/themes/johnlennox/page-events.php on line 62
 * Warning: date() expects parameter 2 to be long, string given in /home/lennox/
   public_html/wp-content/themes/johnlennox/page-events.php on line 63
 * code is
 * $endday = date( ‘D’,$custom_fields[‘wpcf-eveend’][0] );
    $enddate = date( ‘d’,
   $custom_fields[‘wpcf-eveend’][0] );

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-43/#post-3293178)
 * Which theme is that?
 *  Thread Starter [rmfurqan](https://wordpress.org/support/users/rmfurqan/)
 * (@rmfurqan)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-43/#post-3293180)
 * twenty eleven, customized
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-43/#post-3293185)
 * Checkout PHP’s documentation on how to use _date_ [http://php.net/manual/en/function.date.php](http://php.net/manual/en/function.date.php)
 *  [Andrew Bartel](https://wordpress.org/support/users/andrew-bartel/)
 * (@andrew-bartel)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-43/#post-3293190)
 * You should definitely familiarize yourself with the documentation that Andrew
   posted, but date() expects the second parameter to be a unix timestamp, a long
   type variable, i.e. 234234522423 rather than a string, which would be something
   like ‘Hello’
 *  Thread Starter [rmfurqan](https://wordpress.org/support/users/rmfurqan/)
 * (@rmfurqan)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-43/#post-3293194)
 * thank you guys for your prompt response, actually i am not a coder myself, but
   i can access the php file, and fix the error with your guidance, i wonder if 
   you can help me out, my client is so restless and i have to send him the site.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-43/#post-3293197)
 * What value does `$custom_fields['wpcf-eveend'][0]` have?

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

The topic ‘syntax error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/syntax-error-43/#post-3293197)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
