Title: Parse error
Last modified: August 31, 2016

---

# Parse error

 *  Resolved [niktip](https://wordpress.org/support/users/niktip/)
 * (@niktip)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/)
 * Hi Jan,
 * Parse error: syntax error, unexpected T_FUNCTION in /wp-content/plugins/jm-avail-
   booking/avail_booking_widget.php on line 2
 * worked perfectly on localhost, uploaded site to live (hostgator, domain on godaddy)
   and crashed.
 * Niksa
 * [https://wordpress.org/plugins/jm-avail-booking/](https://wordpress.org/plugins/jm-avail-booking/)

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

 *  Plugin Contributor [Jan Maat](https://wordpress.org/support/users/jan-maat/)
 * (@jan-maat)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010152)
 * Hi Niksa,
 * Probably the live server runs on an older version of PHP. I changed the line 
   of code back to the past in version 1.6.1.5 and hope it solves your problem.
 * Regards,
 * Jan
 *  Thread Starter [niktip](https://wordpress.org/support/users/niktip/)
 * (@niktip)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010162)
 * Hi Jan,
 * one part is solved, new one arrived:
    Parse error: syntax error, unexpected ‘:’
   in /wp-content/plugins/jm-avail-booking/includes/avail_booking_screen_options.
   php on line 181
 * Niksa
 *  Plugin Contributor [Jan Maat](https://wordpress.org/support/users/jan-maat/)
 * (@jan-maat)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010171)
 * Hi Niksa,
 * This one is solved in version 1.6.1.6
 * Regards,
 * Jan
 *  Thread Starter [niktip](https://wordpress.org/support/users/niktip/)
 * (@niktip)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010172)
 * Hi Jan,
 * new one:
 * Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /wp-content/
   plugins/jm-avail-booking/includes/availabilitybookingfunctions.php on line 332
 * Niksa
 *  Plugin Contributor [Jan Maat](https://wordpress.org/support/users/jan-maat/)
 * (@jan-maat)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010181)
 * Hi Niksa,
 * Here is was a bit more difficult to go back into the past but solved in version
   1.6.1.7
 * Regards,
 * Jan
 *  Thread Starter [niktip](https://wordpress.org/support/users/niktip/)
 * (@niktip)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010198)
 * Hi Jan,
 * it works 🙂
 * THANKS
    Niksa
 *  Plugin Contributor [Jan Maat](https://wordpress.org/support/users/jan-maat/)
 * (@jan-maat)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010202)
 * Hi Niksa,
 * But it did go wrong in another part of the plugin. Please test version 1.6.1.8
 * Regards,
 * Jan
 *  Thread Starter [niktip](https://wordpress.org/support/users/niktip/)
 * (@niktip)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010203)
 * Hi Jan,
 * I still need to add prices to check booking, I will reply as soon as I check 
   everything
 * BRs,
    Niksa
 *  Thread Starter [niktip](https://wordpress.org/support/users/niktip/)
 * (@niktip)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010204)
 * Hi Jan
 * Fatal error: Cannot call method self::avail_callback() or method does not exist
   in /wp-content/plugins/jm-avail-booking/includes/availabilitybookingfunctions.
   php on line 337
 * Niksa
 *  Plugin Contributor [Jan Maat](https://wordpress.org/support/users/jan-maat/)
 * (@jan-maat)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010208)
 * Hi Niksa,
 * I do not know how solve this. Can you ask your server provider to update the 
   php version?
 * Regards,
 * Jan
 *  Thread Starter [niktip](https://wordpress.org/support/users/niktip/)
 * (@niktip)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010209)
 * Hi Jan,
 * I’ll try 🙂
 * BRs,
    Niksa
 *  Thread Starter [niktip](https://wordpress.org/support/users/niktip/)
 * (@niktip)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010214)
 * Hi Jan,
 * default PHP Version 5.2.17
 * changed to 5.5, still waiting for change to become active
 * Niksa
 *  Plugin Contributor [Jan Maat](https://wordpress.org/support/users/jan-maat/)
 * (@jan-maat)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010218)
 * Hi Niks,
 * With 5.5 you should have no problem. From 5.3 self:: is supported.
 * Regards,
 * Jan

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/jm-avail-booking.svg)
 * [WP Availability Calendar & Booking](https://wordpress.org/plugins/jm-avail-booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jm-avail-booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jm-avail-booking/)
 * [Active Topics](https://wordpress.org/support/plugin/jm-avail-booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jm-avail-booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jm-avail-booking/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [Jan Maat](https://wordpress.org/support/users/jan-maat/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/parse-error-380/#post-7010218)
 * Status: resolved