1. Robcey
  2. Commercial Templates
  3. Thursday, 11 June 2015
  4.  Subscribe via email
I recently applied the Enterprise template to a site.
When looking in the web site error logs there is a lot of errors about an undefined error for body_bg - An extract of the repeated lines is:

[12-Jun-2015 08:31:24 ] PHP Warning: Invalid argument supplied for foreach() in /home/nepcamor/public_html/templates/j51_enterprise/php/styles.php on line 195
[12-Jun-2015 08:31:24 ] PHP Notice: Undefined variable: body_bg in /home/nepcamor/public_html/templates/j51_enterprise/php/styles.php on line 278

Could you let me know how to stop the error from filling up the log file/s?

Thanks
Rob
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Rob

Would you have a URL to your site an we will examine this issue further?

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

The site is http://nepcam.org.au/.

Thanks
Rob
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Rob

The errors do not appear to be outputed to your markup. 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. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciarán.
I have forwarded the requested details.
Regards
Rob
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Rob

We hope to have resolved this issue by adding the following to your templates variables.php...


$body_bg = $this->params->get('body_bg');


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciarán,
Thanks for applying the fix.
I have a few questions then.
1. Is this some code missing from the Enterprise template distribution package at the moment?
2. Will this code need to be added to any other installs that I have
3. Is there an updated distribution that with a fix that should be downloaded?

Thanks
Rob
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciarán,
I did a couple of tests and one of the errors is still appearing in the log file below.
The login details are still available for you.
Regards
Rob

[17-Jun-2015 14:25:41 Australia/Sydney] PHP Warning: Invalid argument supplied for foreach() in /home/nepcamor/public_html/templates/j51_enterprise/php/styles.php on line 195
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Rob

From your Joomla administration navigate to Extension -> Template Manager -> [YourTemplateStyle] -> Social Media Icons -> List/Add Custom Icons and ensure you have no empty rows. Empty rows can be removed using the red '-' button.

We will be checking all templates for this issue and were present we will amend and update the template download. This will be done over the next couple of days.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciarán,
I have removed all Social Media Icons as described but the error is still happening.

[18-Jun-2015 08:42:07 Australia/Sydney] PHP Warning: Invalid argument supplied for foreach() in /home/nepcamor/public_html/templates/j51_enterprise/php/styles.php on line 195.

Regards
Rob
  1. more than a month ago
  2. Commercial Templates
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciarán,
I normally find your solutions on the money so thought I would start from scratch.
The Save needs to be selected from "Social Media Icons" AND "List/Add Custom Icons"
Thanks for your help in resolving the errors.
Please colse the ticket.
Cheers
Rob
  1. more than a month ago
  2. Commercial Templates
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Rob for your update and for sharing your solution! It is something I hadn't considered and good to know for the future.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 11
  • 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