Follow-up on the problem,
I contacted the theme developer, they suggested to replace the:
private static function fillter($schema = null, $prop = null, $val = null)
{
if ($prop != null) {
return $schema::getInstance()->prop($prop, $val);
} else {
return $schema::getInstance()->scope();
}
}
to the following code:
private static function fillter($schema = null, $prop = null, $val = null)
{
$object = new $schema();
if ($prop != null) {
return $object->prop($prop, $val);
} else {
return $object->->scope();
}
}
However, that ended up in another message showing up:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting T_STRING or T_VARIABLE or ‘{‘ or ‘$’ in /home/legtech/KERWEN/kerwen.tk/wp-content/themes/customengine/includes/core/lib/schema/Schema.php on line 22
Developers told me that I should contact my hosting provider and upgrade PHP version on the servers up to 5.4.
I contacted the hosting provider, explained them the situation, and now awaiting the results. I will keep posting updates.
Meanwhile, what might be causing this error? It is bad coding of the theme? Or is it related to PHP version on the servers?