1. astridg
  2. Commercial Templates
  3. Sunday, 16 January 2022
  4.  Subscribe via email
I tried https://www.jevents.net/ with Nina.

1. I have installed Joomla 4 and integrated a JEvent calendar via menu manager.

2. under Cassiopeia the calendar was displayed without errors.

3. with nina the view was broken. Among other things, the scripts and styles in the header were not set correctly.

4. first I commented out the line <?php require("inc/layouts/main.php";); ?> in the file j4/templates/j51_nina/index.php. Result: No more errors, but of course no calendar either.

5. I undid the change from 4. and only removed <?php if ($this->getBuffer( 'message' )) : ?> and <?php endif; ?> around <jdoc:include type="message" /> in the file j4/templates/j51_nina/inc/layouts/main.php. So


<jdoc:include type="message" />



instead of


<?php if ($this->getBuffer( 'message' )) : ?>
<jdoc:include type="message" />
<?php endif; ?>



in the file j4/templates/j51_nina/inc/layouts/main.php. This solved my problem at first sight.

6. what getBuffert does can be seen in the file j4/libraries/src/Document/HtmlDocument.php in line 542. But I have stopped here now, because I am sure you know better where the problem lies and how it can be solved.
Accepted Answer Pending Moderation
0
Votes
Undo
The template has now been updated. I downloaded / updated the template again with the new file and it works great!
thank you
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Dear Ciaran,

if I understand eumel7 correctly, than you missed the deletion of the lines


<?php if ($this->getBuffer( 'message' )) : ?>
...
<?php endif; ?>



in the file
  /inc/layouts/main.php 
of the Layla template. In the newest version of the Layla template the code


<?php if ($this->getBuffer( 'message' )) : ?>
<jdoc:include type="message" />
<?php endif; ?>


is still in the file


/inc/layouts/main.php


This causes an error in his website, too. Like in my case with NIna, wich is already fixed.
Could you please check the latest version of the Layla template ?
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you @eumel7

I have updated your template from version 1.0.3 to 1.0.5. The change kindly suggested by Astrid should be now available to you.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Excuse me. I forgot to protect administrator access. I am very sorry!!! I sent now the data via email!!
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you

Could you please also send details for the htaccess protection on your administration folder.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
I've just sent an email to info@joomla51.com
I asked "astridg" from the thread, their template "nina" no longer has the error.
In the Layla template, the code that causes the error still exists...
I currently have version 1.0.5 installed BUT I manually deleted the faulty code from the file: j4/templates/j51_nina/inc/layouts/main.php
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

We have tested the template download and are no longer able to replicate this issue. 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.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

We have just updated the Layla template also.

Ciaran

Hi.
I updated the template (Layla) today BUT the ERROR IS BACK...
If I repeat astrid's procedure in main.php, the error is gone again...

Something is wrong with the template update?!
In the settings is still version 1.0.3
I've tried several times
  1. more than a month ago
  2. Commercial Templates
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

We have just updated the Layla template also.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
and what about the other J4 templates, especially for me with Layla?
  1. more than a month ago
  2. Commercial Templates
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you for sharing your solution :)

We have just updated the Nina template, removing the getBuffer condition from the component message. It appears getBuffer is no longer available in Joomla 4, something we completely missed when updating the template.

Good work!

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 11
Accepted Answer Pending Moderation
0
Votes
Undo
hello astridg

Exactly the same error as with my problem!
Link here in the forum...


I followed your instructions and the error is gone for now. Maybe @ciaran can say more about it!
  1. more than a month ago
  2. Commercial Templates
  3. # 12
  • 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