1. OldRock
  2. Commercial Templates
  3. Monday, 08 January 2024
  4.  Subscribe via email
UPDATE: The only major issue remaining is that I can't get the two columns of the home page "blog" format to be equal in size, as they were on the Joomla 3 version. The first column is only about 20% of the total width.


Hi. I'm trying to upgrade my Joomla 3.10 site to Joomla 4.4, with the J51_stockholm template for Joomla 4. I was getting a 500 error ("500 - behavior::caption not found";) when I try to access the home page. All other pages work fine. The second line of the debug call stack references the template, so I thought it might be something you can help me with.

FYI I'm testing this on XAMPP under Windows 11 and also on a subdirectory of my website hosted at Siteground. I get the same results on both.

I also posted the issue on the Joomla forum, and got the following response from a Joomla Master:
Post by toivo ยป Tue Jan 09, 2024 4:22 pm

2 Joomla\CMS\HTML\HTMLHelper::_() JROOT\templates\j51_stockholm\html\com_content\featured\default.php:14
The template has an obsolete override that in its html folder. Rename the folder templates\j51_stockholm\html\com_content.

That workaround should fix this issue, other may pop up. It would be better to use a template that is compatible with Joomla 4, like Cassiopeia.[*]

When I renamed the folder to templates\j51_stockholm\html\com_content2, the Home page appeared, but it has lost format details. I assume there's a better way to fix this.

Here's the beginning of the debug list:

behavior::caption not found.
C:\xampp\htdocs\J4\libraries\src\HTML\HTMLHelper.php:141

Call stack
# Function Location
1 () JROOT\libraries\src\HTML\HTMLHelper.php:141
2 Joomla\CMS\HTML\HTMLHelper::_() JROOT\templates\j51_stockholm\html\com_content\featured\default.php:14
3 include() JROOT\libraries\src\MVC\View\HtmlView.php:415
Accepted Answer Pending Moderation
0
Votes
Undo
[Moved this text into the original post].
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Would you have a URL to an example of your blog issue?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
The home page blog format issue in J4 can be seen at https://londonderryumc.org/xJ4/

You can see the original J3 version as it should be, at https://londonderryumc.org.

Note that I've renamed the offendng default.php file to templates/j51_stockholm/html/com_content/featured/default-old.php. There was no replacement for this file or for the .../featured directory in the J4 version of j51_stockholm. Before I renamed that file the page would not display at all.

Just in case it's helpful, I also received this response on the Joomla forum:
If the template works otherwise and you are familiar with PHP, you could refactor the override by comparing the code of the override file templates\j51_stockholm\html\com_content\featured\default.php to the current Joomla 4.4 file, components/com_content/tmpl/featured/default.php.


Unfortunately I'm not a php coder. My programming days ended with COBOL, RPGII and a couple of assembler languages!

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

To amend try adding the following to the Custom CSS field of your templates parameters (Extensions -> Templates -> [YourTemplateStyle] -> Custom CSS)....

.blog-items.columns-2 {
grid-template-columns: 50% 50%;
}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks Ciaran. I added that code to the top of the Custom CSS field, but it made no difference.
Did you notice that in addition to the uneven column widths, the html formatting for text in both columns is being ignored.

FYI, I already have other code in the Custom CSS, which you provided for me many years ago to adjust some formatting in the top banner. I don't think it's related to the current issue, but just in case, this is what's there:

#logo { padding: 4px 0;
!important;
}
body { font-size: 11px !important;
line-height: 1.1em;
}
p { margin-bottom: 12px;
!important;
}
.sidecol_block .module_surround,
.module .module_surround,
.module_menu .module_surround,
.wrapper_contenttop {
padding: 0;
}
.module:first-of-type .module_surround {
padding-top: 0;
}
.sidecol_block,
.block_holder {
padding: 0 15px;
}
.maincontent {
padding: 15px;
}
.module_menu {
margin: 0
}
.hornav li ul, .hornav li ul li ul {
min-width: 160px;
}
.hornav li ul li:hover > ul {
left: 160px;
}
.btn, .button {
padding: 8px 12px;
font-size: 14px;
}

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

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. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
I have emailed the administrator login information to info@joomla51 as requested.

It appears that the only remaining issue now is that bolded text is not showing as bold.

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

The bold issue should be now resolved.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks for all your help Ciaran. The Joomla 4.4.2 version of my website is now live.
  1. more than a month ago
  2. Commercial Templates
  3. # 9
  • 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