Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Fixing WordPress
    In reply to: Parse error

    The issue is with the php version you are running (probably php 5.3 or earlier).

    Example:
    // 5.4+ only:
    $this->Auth->user()[‘id’]
    // 5.3 (and earlier) and 5.4+:
    $result = $this->Auth->user()
    $result[id]

    Next update will bring the site down again if they don’t revert that piece of code.

    Instead of removing the [0] add the following which will fix it for now:

    $tp = TPColorpicker::process($color, true);
    return $tp[0];

    • This reply was modified 9 years, 1 month ago by sososinelu.
Viewing 1 replies (of 1 total)