Advertisement

Error 500 behavior.caption Not found

Everything to do with Joomla! 4.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
User avatar
john-doe
Joomla! Ace
Joomla! Ace
Posts: 1008
Joined: Tue Apr 19, 2011 7:39 pm
Location: Colombia
Contact:

Error 500 behavior.caption Not found

Post by john-doe » Sat Oct 02, 2021 4:22 pm

Greetings.

I received a Custom template for Joomla 4 but when i wanted to run it, Shows an Error 500 behavior.caption Not Found.

I'm not fully aware of what it does but i had to track all the files that use that use it and comment

Code: Select all

JHtml::_('behavior.caption');
As soon as i commented that on the files it works but i have the doubt that Is something incompatible with Joomla 4 that i'm not aware of it?

Thanks in Advance
www.aldemar-hernandez.com - Custom templates and design services.

Advertisement
sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Error 500 behavior.caption Not found

Post by sozzled » Sat Oct 02, 2021 9:00 pm

The JHtml::_ class became deprecated in J! 3.8 and now causes a fatal error in J! 4. See https://docs.joomla.org/Potential_backw ... la_4#JHtml

The error you are getting comes from a third-party extension that does not adhere to J!'s current coding standard. Report the problem to the author of the extension and ask them to fix it.

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Error 500 behavior.caption Not found

Post by sozzled » Sun Oct 03, 2021 6:13 pm

Also see discussion on GitHub relating to a related matters : https://github.com/joomla/joomla-cms/discussions/35136

User avatar
john-doe
Joomla! Ace
Joomla! Ace
Posts: 1008
Joined: Tue Apr 19, 2011 7:39 pm
Location: Colombia
Contact:

Re: Error 500 behavior.caption Not found

Post by john-doe » Sun Oct 24, 2021 12:45 pm

sozzled wrote: Sat Oct 02, 2021 9:00 pm The JHtml::_ class became deprecated in J! 3.8 and now causes a fatal error in J! 4. See https://docs.joomla.org/Potential_backw ... la_4#JHtml

The error you are getting comes from a third-party extension that does not adhere to J!'s current coding standard. Report the problem to the author of the extension and ask them to fix it.
Gee, Did not expected that. To clarify if the following goes within this same spectrum. I tried to do a new Content (article) but now shows me this ON THE BACKEND. (See attachment)

--Halfway Edit--

Tried to disable plugins that allows me to add content via modal but not updated, neither before nor after upgrading to J!4. I have to verify again since auto update didn't worked and i havent noticed until now.

If something, this happens with Phoca Downlaod Button Plugin for administration.
You do not have the required permissions to view the files attached to this post.
www.aldemar-hernandez.com - Custom templates and design services.

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Error 500 behavior.caption Not found

Post by sozzled » Sun Oct 24, 2021 6:31 pm

Aside from the deprecated class JHtml::_, there is another issue here that relates to attempting to use the MooTools Javascript library. J! 4 does not include MooTools.

For more information about MooTools and Joomla, see also viewtopic.php?f=715&t=989407&p=3643305#p3643292.

User avatar
john-doe
Joomla! Ace
Joomla! Ace
Posts: 1008
Joined: Tue Apr 19, 2011 7:39 pm
Location: Colombia
Contact:

Re: Error 500 behavior.caption Not found

Post by john-doe » Thu Nov 04, 2021 2:21 pm

Indeed and what is strange on all this situation is that Such plugin passes the Migration Checking.
Nothing like the good old Troubleshooting
www.aldemar-hernandez.com - Custom templates and design services.

User avatar
DV-admin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 170
Joined: Wed Sep 20, 2017 7:24 am
Location: Genova
Contact:

Re: Error 500 behavior.caption Not found

Post by DV-admin » Fri Nov 19, 2021 4:50 pm

This comes back time and again with each of my Joomla 4 upgrades.
It's an extremely time consuming problem and especially for non programmers.
so... 500 behavior::caption not found. I think it may be caused by overrides of default article, category files??

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Error 500 behavior.caption Not found

Post by sozzled » Fri Nov 19, 2021 5:33 pm

This error is caused by a third-party extension that uses the Mootools [Javascript] library. That is what the "behavior." part means. J! 4 does not support Mootools.

User avatar
DV-admin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 170
Joined: Wed Sep 20, 2017 7:24 am
Location: Genova
Contact:

Re: Error 500 behavior.caption Not found

Post by DV-admin » Wed Feb 16, 2022 1:42 pm

Joomla JCE Editor developer has been able to fix this with a quick patch.

User avatar
Triplicate
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 131
Joined: Sat Aug 20, 2005 12:07 pm
Contact:

Re: Error 500 behavior.:caption not found

Post by Triplicate » Tue Feb 14, 2023 11:53 am

DV-admin wrote: Wed Feb 16, 2022 1:42 pm Joomla JCE Editor developer has been able to fix this with a quick patch.
The link to this patch is here: https://github.com/widgetfactory/jcapti ... e/releases

I have this same error and tried this patch but unfortunately it did not work for me.

Regards
Ed
The best is good enough!

natecovington
Joomla! Explorer
Joomla! Explorer
Posts: 436
Joined: Tue Jul 29, 2008 11:54 pm
Location: NE PA
Contact:

Re: Error 500 behavior.caption Not found

Post by natecovington » Thu Aug 10, 2023 6:39 pm

I fixed it by removing my template override, I renamed this:
/templates/my-template/html/com_content/

And disabled it via:
/templates/my-template/html/com_content-disable/
I am available for professional Joomla support, consulting, and custom work:
www.covingtoncreations.com

User avatar
mojito
Joomla! Guru
Joomla! Guru
Posts: 755
Joined: Wed Sep 07, 2005 10:18 pm
Location: London
Contact:

Re: Error 500 behavior.caption Not found

Post by mojito » Fri Sep 01, 2023 2:14 pm

Nate and DV-admin were on the right lines for me. But are these override files I was sure I hadn't created any. I am using a rocket theme template.
I am a freelance SEO (https://cambs.eu) web designer and developer working with Wordpress and Joomla since Mambo.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31159
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Error 500 behavior.caption Not found

Post by Per Yngve Berg » Fri Sep 01, 2023 6:41 pm

Many templates contain overrides made by the vendor. This is common for templates that use a different layout framework than the version of Joomla.

User avatar
mojito
Joomla! Guru
Joomla! Guru
Posts: 755
Joined: Wed Sep 07, 2005 10:18 pm
Location: London
Contact:

Re: Error 500 behavior.caption Not found

Post by mojito » Fri Sep 01, 2023 9:07 pm

Thanks for that extra insight Per.
I am a freelance SEO (https://cambs.eu) web designer and developer working with Wordpress and Joomla since Mambo.

User avatar
jcalvert
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 245
Joined: Sun Feb 19, 2006 10:00 am

Re: Error 500 behavior.caption Not found

Post by jcalvert » Wed Jul 03, 2024 10:44 am

Thanks for this. I also encountered this after update to Joomla 4.4.5. I updated JCE, and then realized that the old Joomla 3 template was still enabled, even though I had switched the active template to Cassiopeia. I disabled my old template and the J4 site came up.

Advertisement

Post Reply

Return to “Templates for Joomla! 4.x”