Title: Error: PHP Tags
Last modified: August 30, 2016

---

# Error: PHP Tags

 *  [Simon Meisinger](https://wordpress.org/support/users/simon-meisinger/)
 * (@simon-meisinger)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/error-604/)
 * I just moved a site of mine to another server where I get this error:
    `"H:i','
   date-format' => 'd.m.Y' ); /* unset default if setting already set */ foreach(
   $default_settings as $key => $value ) if ( op_get_setting( $key ) ) unset( $default_settings[
   $key ] ); /* apply remaining settings */ $wp_opening_hours = new OpeningHours;
   $wp_opening_hours->applySettings( $default_settings ); } register_activation_hook(
   __FILE__, 'op_activate' ); ?>"`
 * The new server can’t handle <? instead of <?php, I just tested it with another
   piece of code, so I guess that’s where the error comes from.
 * Just wanted to let you know.
 * [https://wordpress.org/plugins/wp-opening-hours/](https://wordpress.org/plugins/wp-opening-hours/)

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

 *  Thread Starter [Simon Meisinger](https://wordpress.org/support/users/simon-meisinger/)
 * (@simon-meisinger)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/error-604/#post-6232687)
 * I just changed all the <? to <?php and now it works. May I upload it for other
   people who have the same problem so they don’t have to change it themselves?
 *  [CoffeyMachine](https://wordpress.org/support/users/coffeymachine/)
 * (@coffeymachine)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/error-604/#post-6233061)
 * I also ran into this issue. I would recommend using full PHP open tags for servers
   that don’t have short_open_tag enabled in thier php.ini.
 * See: [http://php.net/manual/en/language.basic-syntax.phptags.php](http://php.net/manual/en/language.basic-syntax.phptags.php)
 *  [Dev.Enthusiast](https://wordpress.org/support/users/deventhusiast/)
 * (@deventhusiast)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-604/#post-6233071)
 * To the author of this plugin, please change `<?` to **`<?php`**
 * It is generally recommended that <?php and ?> should be used and that `short_open_tag`
   should be **disabled**, as enabling it may result in issues when generating XML
   documents.
 *  [Phil McDonnell](https://wordpress.org/support/users/philmcdonnell/)
 * (@philmcdonnell)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-604/#post-6233078)
 * See my post here: [https://wordpress.org/support/topic/fix-for-php-errors?replies=1#post-7942804](https://wordpress.org/support/topic/fix-for-php-errors?replies=1#post-7942804)

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

The topic ‘Error: PHP Tags’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-opening-hours_3e2c4f.svg)
 * [Opening Hours](https://wordpress.org/plugins/wp-opening-hours/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-opening-hours/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-opening-hours/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-opening-hours/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-opening-hours/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-opening-hours/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [Phil McDonnell](https://wordpress.org/support/users/philmcdonnell/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/error-604/#post-6233078)
 * Status: not resolved