Re: SOLVED Gantry 4 Default Template Doesn't Work with Php 7.1
Posted 7 years 11 months ago
Please note that by answering your own post you take yourself out of the MODS "unanswered posts" queue and therefore might have to wait longer for a response - it's better to edit your original post so this does not happen.
We have been fixing all the Gantry 4 templates that have this issue and we believe we have issue new releases that have address them all - so what template are you using please and is it the latest version?
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: SOLVED Gantry 4 Default Template Doesn't Work with Php 7.1
Posted 7 years 11 months ago
We have a number of sites where we have customized with the Gantry 4 Default Template v4.1.32, as I have already mentioned. The sites work with php 7.0, but not with php 7.1. To confirm, I have created a site with the Gantry 4 Rocket Launcher ( which only works with php 5.6), updated Joomla and again, the site works with php 7.0, but not php 7.1. I would appreciate RT updating the G4 Default Template to work with php 7.1, as you have for the other G4 templates.
Dan Walker - Web Designer & Developer @ Top Webs Network
Custom Joomla & Wordpress Websites
Re: SOLVED Gantry 4 Default Template Doesn't Work with Php 7.1
Posted 7 years 11 months ago
It seems that one got overlooked and an update will be out in due course.
In the meantime you can fix it yourself... see screenshot. An array is being initialise as quote-quote instead of [] - php7.1 is much stricter than previous versions in this regard.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: SOLVED Gantry 4 Default Template Doesn't Work with Php 7.1
Posted 7 years 10 months ago
It doesn't matter which is used - they both mean the same thing... an empty array.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: SOLVED Gantry 4 Default Template Doesn't Work with Php 7.1
Posted 6 years 3 months ago
I'm just bimping this thread up for awareness.
I upgraded to PHP 7.1.23, Joomla 3.9.1, Gantry 4.1.37 and every single component/plugin was updated... yet I still got the error which the OP referred to: Error: [] operator not supported for strings: [] operator not supported for strings
I had to go into /templates/gantry/html/mod_roknavmenu/themes/gantry-dropdown/layout.php and apply the fix as instructed by Mr.T
I would have assumed this fix would be incorporated already, ohh well.
Re: SOLVED Gantry 4 Default Template Doesn't Work with Php 7.1
Posted 6 years 3 months ago
mustafa_s - I suspect that you updated Gantry FRAMEWORK but did not update Gantry TEMPLATE - you need to update BOTH.
The fix IS in the Gantry 4 TEMPLATE.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: SOLVED Gantry 4 Default Template Doesn't Work with Php 7.1
Posted 5 years 2 weeks ago
Joomla! 3.9.15
Diametric Template v1.8
Gantry Framework v4.1.42
it is working only with PHP 7.0.33
if I change to PHP 7.1.33
it gives a blank page
* I have changed the
rt_TEMPLATE/joomla/template/html/mod_roknavmenu/themes/gantry-fusion/layout.php
from: $ul_css = '';
to: $ul_css = array();
so the Error: [] operator not supported for strings: [] operator not supported for strings has gone
but still the page is not working!