1. andred12
  2. Commercial Templates
  3. Thursday, 27 July 2017
  4.  Subscribe via email
Hi,
if I activate the Magnolia Template, i've got an Error500 Page.
In debugging-mode, the following error message is given:

Parse error: syntax error, unexpected T_BOOLEAN_OR, expecting ')' in /hp/ao/af/xf/www/iqv/templates/j51_magnolia/index.php on line 137

Is there a bug in the index.php or is the problem my latest Joomla Version 3.7.4?

Thanx a lot
Best regards
Andre
Accepted Answer Pending Moderation
0
Votes
Undo
Hello Ciarán,
thank you for your reply.
I downloaded the latest Version of the Template, but the error still was given.

Just before you answered my message, I tried to solve the problem in Line 137 of index.php.

I changed the code in Line 137 and now it works at this point without any error. I hope that I placed not a bug in this line:

old
if(!empty($this->params->get('top1_bg') || $this->params->get('top2_bg') || $this->params->get('top3_bg') || $this->params->get('bottom1_bg') || $this->params->get('bottom2_bg') || $this->params->get('bottom3_bg'))) { ?>

new
<?php if (!empty($this->params->get['top1_bg']) || !empty($this->params->get['top2_bg']) || !empty($this->params->get['top3_bg']) || !empty($this->params->get['bottom1_bg']) || !empty($this->params->get['bottom2_bg']) || !empty($this->params->get['bottom3_bg'])) { ?>


André
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Andre

Does updating your template to the latest download resolve this issue (http://joomla51.com/tutorials/item/updating-your-template)? If not may I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Sorry,
litte error...

old
<?php if(!empty($this->params->get('top1_bg') || $this->params->get('top2_bg') || $this->params->get('top3_bg') || $this->params->get('bottom1_bg') || $this->params->get('bottom2_bg') || $this->params->get('bottom3_bg'))) { ?>

new
<?php if (!empty($this->params->get['top1_bg']) || !empty($this->params->get['top2_bg']) || !empty($this->params->get['top3_bg']) || !empty($this->params->get['bottom1_bg']) || !empty($this->params->get['bottom2_bg']) || !empty($this->params->get['bottom3_bg'])) { ?>
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you for bringing this issue to our attention and for sharing your solution.

We have just updated our Magnolia template to include your fix.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok