TOPIC:

"Error: [] operator not supported for strings" after PHP update to 7.1 3 years 10 months ago #231090

  • Topic Author
  • ronny.heule@gmx.net
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 26
  • Thanks: 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

Please Log in or Create an account to join the conversation.

"Error: [] operator not supported for strings" after PHP update to 7.1 3 years 10 months ago #231093

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 5958
  • Karma: 119
  • Thanks: 558
The following user(s) said Thank You: ronny.heule@gmx.net

Please Log in or Create an account to join the conversation.

"Error: [] operator not supported for strings" after PHP update to 7.1 3 years 10 months ago #231135

  • Topic Author
  • ronny.heule@gmx.net
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 26
  • Thanks: 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
The following user(s) said Thank You: twix

Please Log in or Create an account to join the conversation.

"Error: [] operator not supported for strings" after PHP update to 7.1 3 years 9 months ago #231193

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 5958
  • Karma: 119
  • Thanks: 558
Hey Ronny,

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

Regards,
Mario

Please Log in or Create an account to join the conversation.

"Error: [] operator not supported for strings" after PHP update to 7.1 3 years 3 months ago #235709

  • morgmel
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 4
  • Thanks: 0
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
Attachments:

Please Log in or Create an account to join the conversation.

"Error: [] operator not supported for strings" after PHP update to 7.1 3 years 3 months ago #235710

  • morgmel
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 4
  • Thanks: 0
Gantry 4.1.33
Gantry template 4.1.8
php 7.2

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.079 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

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!