Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter legendary-tech

    (@legendary-tech)

    Upgraded the PHP on servers to 5.4, but it did not resolve the activation problem, so I went with another theme.

    Thread Starter legendary-tech

    (@legendary-tech)

    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?

Viewing 2 replies - 1 through 2 (of 2 total)