Гость
04 Авг 2016 12:41

Hi to all, I have installed the following:

  1. pkg_cobalt.j3.v.8.719.zip
  2. pkg_mint.j3.media.v.8.85.zip

Have enabled all plughins but it doesn't work. It throws the following error message in the back-end of the site messing up everything

Parse error: syntax error, unexpected '[' in /home/lifest70/italianwedding.directory/libraries/mint/helper.php on line 48

Who can help, please! Thanks! AI

Последние изменения: 09 Авг 2016


pepperstreet VIP
Total posts: 3,837
04 Авг 2016 20:17

Hello guest, there is already a forum topic about the same issue...

AFAIK, the message is because of your current PHP version. Choose a v5.4 or even higher.
In general, it is recommended to use v5.5/v5.6 !

(PHP v7 might give speed improvements, but hence: Many 3rd-party extensions are not fully compatible, yet)


Гость
05 Авг 2016 04:52

Good morning,

I have upgraded the PHP version as per my server provider instructions. I did to version PHP 5.6.24 but the problem still persist.

It says error in line 48 which is what follows: { $options = []; $params = JComponentHelper::getParams('com_emerald');

    if($params->get('tmpl_prefix'))
    {
        $options['suffixes'] = [$params->get('tmpl_prefix')];
    }

    return new JLayoutFile($name, $path, $options);
}

line 48 = $options = [];

Is there something I am doing wrong? Thanks and thanks for your help!


Гость
05 Авг 2016 09:09

I have upgraded the PHP version and have contacted technical support of my Server Provider (SiteGround), They have informed me that the problem is not related to the PHP version but to some core files in Joomla.

This is their reply quoted:

"The error that comes right now is not related to the PHP version. The error is within Joomla itself, in most cases that I have checked, re-applying the core files of your current Joomla version has resolved the issue, as the issue appears to be present in some Joomla instances. This is an issue that appears to be related to the way that the Joomla 3.x tree works.

I highly recommend replacing only the core files of your Joomla 3.6.2 with the ones that normally come from a fresh Joomla installation in order to ensure that the View settings are correct.

Should any other questions arise - you are welcome to contact us back."

Can somebody help, please!!!!!


pepperstreet VIP
Total posts: 3,837
05 Авг 2016 19:42

Guest re-applying the core files of your current Joomla version has resolved the issue

As far as I understand their feedback... try to re-install the Joomla CORE files only.
Personally I have also encountered many strange issues between J! 3.5.1 -> 3.6.1 -> 3.6.2 updates.

BTW, do you know the new Joomla update/installer features?
You can either re-install the last update via web,
Bildschirmfoto 2016-08-05 um 21.44.47

Or even download and upload a package manually!
Bildschirmfoto 2016-08-05 um 21.45.55

Please, try it and report back.
(Always make a BACKUP!)


Sergey
Total posts: 13,748
09 Авг 2016 04:35

I have changed that in next update. I do not use [] anymore.

Also try to look in Joomla Global Iformation -> PHP Information what version is there?

Работает на Cobalt