• Resolved gijsheerkens

    (@gijsheerkens)


    Hi there, when I activate this plugin I’ll get an error code in the header of my website saying:

    ‘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’ ); ?>

    What should I do?

    https://www.ads-software.com/plugins/wp-opening-hours/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author janizde

    (@janizde)

    Hey gijsheerkens, this error often occurs, when your php config does not allow the short php opening tag. I know I shouldn’t have used it, but the next version coming in late march only uses regular opening tag.
    If you can’t wait and you are capable of editing the php.ini or overwriting the settinh in your .htaccess, please do so until the new version comes:

    development repo: https://github.com/janizde/WP-Opening-Hours

    Hi Janizde,

    I’m having the same issue with WP 4.1 and plugin version 1.2. After upload i get the same php error. Please advise how to fix this.

    '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' ); ?>

    Your previous directions arent very clear to me.

    Plugin Author janizde

    (@janizde)

    Hey ltdxdtl,
    obviously your standard php settings do not allow the use of the short opening tag ‘<?’ but only the regular opening tag ‘<?php’.
    Im most cases, you can change that behavior in your php.ini configuration.
    I think this is a good explanation how to enable short opening tags: https://bit.ly/1HLH1iL

    Note that you may not be capable of editing the php.ini file on a hosted service. You should then try to overwrite the default setting in the .htaccess of your WordPress installation, which is also described in the above post.

    Hope I could express myself a bit more clearly ??

    So when are you going to release update? 3 months later now still no solution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error code’ is closed to new replies.