1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Holidays period: Clément aka. Mtor is going to be away between the 16/08 and the 25/08 with rather limited access to xen-factory. Please be patient, he will answer when he gets back.
    Dismiss Notice

Fixed Parse error when installing

Discussion in 'Closed Bug Reports' started by OUTL4W, Feb 10, 2016.

  1. OUTL4W

    OUTL4W New Member

    Joined:
    Jan 8, 2016
    Messages:
    14
    Likes Received:
    2
    if using the old method of uploading the files and then uploading xml or uploading the zip file itself keeps giving the error:
    Parse error: syntax error, unexpected '[' in /library/XFA/ExtendedCover/Template.php on line 27

    version 3.2.1
     
  2. Fredxd

    Fredxd Administrator
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    1,644
    Likes Received:
    359
    Adress:
    France
    Country:
    Location on Map:
    Hi,
    In Template.php line 27

    Search
    PHP:
    if (in_array($template->getParams()['forum']['node_id'], $acpOpts->xfa_ec_thread_active_forum) && $acpOpts->xfa_ec_thread_enable_redirect && XenForo_Model::create('XFA_ExtendedCover_Model_ExtendedCover')->canManageCoverThread($template->getParams()['thread'], $template->getParams()['forum']))
    Replace by :
    PHP:
    $params $template->getParams();
                    if (
    in_array($params['forum']['node_id'], $acpOpts->xfa_ec_thread_active_forum) && $acpOpts->xfa_ec_thread_enable_redirect && XenForo_Model::create('XFA_ExtendedCover_Model_ExtendedCover')->canManageCoverThread($params['thread'], $params['forum']))
    This should fix your problem ;)
     
    OUTL4W likes this.
  3. OUTL4W

    OUTL4W New Member

    Joined:
    Jan 8, 2016
    Messages:
    14
    Likes Received:
    2
    thanks.....now working.
     
    Fredxd likes this.
  4. OUTL4W

    OUTL4W New Member

    Joined:
    Jan 8, 2016
    Messages:
    14
    Likes Received:
    2
    does version 4.2.9 fix this error? currently on 3.3.0 with the tweak above.
     
  5. Fredxd

    Fredxd Administrator
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    1,644
    Likes Received:
    359
    Adress:
    France
    Country:
    Location on Map:

Share This Page