cerovic Posted August 7, 2017 Share Posted August 7, 2017 (edited) 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 August 7, 2017 by cerkoxxl (see edit history) Link to comment Share on other sites More sharing options...
cerovic Posted August 12, 2017 Author Share Posted August 12, 2017 it was problem of PHP version 5.2, when we changet it to 5.4 all works Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now