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

  • ronny.heule@gmx.net
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 1

ronny.heule@gmx.net created the topic: "Error: [] operator not supported for strings" after PHP update to 7.1

Hi,
I updated PHP version from 5.6 to 7.1.22.
After update the website is showing the following error:
Error: [] operator not supported for strings: [] operator not supported for strings

I'm not sure if the error is coming from the template.
I'm using Pulse and Xtec.
Gantry is up-to-date

I have no clue, how to solve this issue.

Regards,
Ronny
#231090
  • Posts: 5896
  • Karma: 118
  • Thank you received: 544

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


Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#231093
The following user(s) said Thank You: ronny.heule@gmx.net
  • ronny.heule@gmx.net
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 1

ronny.heule@gmx.net replied the topic: "Error: [] operator not supported for strings" after PHP update to 7.1

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
#231135
The following user(s) said Thank You: twix
  • Posts: 5896
  • Karma: 118
  • Thank you received: 544

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

Hey Ronny,

Good Job !
If you have any other questions, let me know.

Regards,
Mario

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

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

Hi,
I'm trying to apply the fixes about but run into a proboem when I get to changing
/html/mod_roknavmenu/themes/gantry-dropdown/layout.php

$ul_css is on line 98 rather than 96
teh screen cap shows the file as I found it

do I need to edit it?



many thanks
#235709
Attachments:
  • Posts: 4
  • Thank you received: 0

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

Gantry 4.1.33
Gantry template 4.1.8
php 7.2
#235710
Moderators: ForumSupporttomeperica
Time to create page: 0.197 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription 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 for just 49! (Summer Sale)

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!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

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