• hi,

    the website where i plan to use tdominiforms is not yet online, so i just updated v 0.12.7 to v 0.13 and i’ve got this :

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /…/www/wp-content/plugins/tdo-mini-forms/include/tdomf-widget-classes.php on line 1017

    do you have any idea ?

    …so i stay with 0.12.7 for the moment 🙂

    thanx for this great plugin !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Just edit the file and overwrite the “isEditForm” function with the original code from v0.13:

    /**
         * Returns if the input form or mode is a edit form or not
         *
         * @return Boolean
         * @access public
         */
        public static function isEditForm($mode,$form_id=false) {
            if($form_id != false) {
                $mode = tdomf_generate_default_form_mode($form_id);
            }
            if(strpos($mode, "edit-") === 0) {
                return true;
            }
            return false;
        }

    Then try again.

    Actually the problem is that you are using php4 while I did all my dev and testing on php5. You need to comment out the “public static” part in “isEditForm”.

    Luckily I’ve already commit this change so, within the next 15 minutes, you can grab the dev version (which will shortly become v0.13.1) to resolve it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: TDO Mini Forms] Parse error with v 0.13’ is closed to new replies.