"Error: [] operator not supported for strings" after PHP update to 7.1

  • Posts: 5688
  • Karma: 118
  • Thank you received: 526

MarioPuco replied the topic: "Error: [] operator not supported for strings" after PHP update to 7.1

Hi,

Can you send me yours layout.php please ?

Regards,
mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#235713
  • Posts: 4
  • Thank you received: 0

morgmel replied the topic: "Error: [] operator not supported for strings" after PHP update to 7.1

with pleasure

File Attachment:

File Name: layout.zip
File Size:4 KB
#235714
Attachments:
  • Posts: 5688
  • Karma: 118
  • Thank you received: 526

MarioPuco replied the topic: "Error: [] operator not supported for strings" after PHP update to 7.1

Hi,

I just checked it's on line 65.



So you should make your change there.

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#235715
Attachments:
The following user(s) said Thank You: morgmel
  • Posts: 4
  • Thank you received: 0

morgmel replied the topic: "Error: [] operator not supported for strings" after PHP update to 7.1

happy to say the site is back up, although there is still an error message

Warning: count(): Parameter must be an array or an object that implements Countable in /home/morgan/public_html/plugins/system/gantry/gantry.php on line 406

do you know what that is?

line 406 is: return $gantry;


private function getGantryTemplates()
{
$templates = $this->getTemplates();
$gantry = array();
foreach ($templates as $template) {
if ($template->params->get('master') != null) {
$gantry[] = array('id' => $template->id, 'name' => ucfirst($template->template));
}
}

return $gantry;
}
#235717
  • Posts: 1
  • Thank you received: 0

twix replied the topic: "Error: [] operator not supported for strings" after PHP update to 7.1

ronny.heule@gmx.net wrote: I had to change the following, to get it working:
- templates/pulse/features/color.php and on line 13 change:
function Color($hex) -> function __construct($hex)
- templates/pulse/html/mod_roknavmenu/themes/gantry-dropdown/layout.php and on line 96 change:
$ul_css = ''; -> $ul_css = [];

Thank you for your help!
Ronny



You're life and time saver. Thx a lot
#235804
Moderators: ForumSupporttomeperica
Time to create page: 0.176 seconds

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99€

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here