Jump to content

Fatal error of eshop


Recommended Posts

Hello.

 

Once, without any touch to eshop, me eshop broke down ant just this error message is appearing:

Parse error: syntax error, unexpected '[', expecting ')' in /home/do005700/www_root_wfy/modules/inixframe/InixModule.php on line 1557 

  the line 1557 is (also attachement)

  // Check field validator
                if ((isset($values['is_array']) && $values['is_array'])) {
                    if (isset($values['requried']) and $values['requried'] and ( !Tools::isSubmit($field) or count(Tools::getValue($field)) == 0 or ! Tools::getValue($field))) {
                        $this->errors[] = sprintf(Tools::displayError('fields %s is required!'), $values['title']);
                    }
                    elseif (Tools::getValue($field) && isset($values['validation'])) {
                        foreach (Tools::getValue($field) as $f) {

                            if (!call_user_func(['Validate', $validate_method], $f)) {
                                $this->errors[] = sprintf(
                                        Tools::displayError('field %s is invalid.'), $values['title']
                                );
                            }
                        }
                    }
} } 
             

Does enyone have any idea what could be wrong? 

Edited by cerkoxxl (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...