6 votes
Accepted

Create a table observer

This was working ok on my instance Joomla 3.9.22 with PHP 7.3.5 (and mysql). Then to test this I selected PHP 7.0.33 instead and it gave me an error: Fatal error: Declaration of MyObserver::...
user avatar
4 votes
Accepted

Joomla 3.9.1 publish/unpublish no longer working (custom components)

Inside your table's constructor use setColumnAlias() to define the actual column name: public function __construct($db) { parent::__construct('#__example', 'id', $db); $this->...
user avatar
  • 8,177
4 votes
Accepted

loadAssocList() is not working properly when assigning a column name as the key parameter

Most critical to fixing your issue is to include the p.ComponentId column in your select() call so that it is available at the time the result set is being constructed. If you have your error ...
user avatar
  • 4,388
3 votes
Accepted

My site's form or captcha stopped working after upgrading to Joomla 3.9.15

Answer for Joomla Users An update of the Captcha - ReCaptcha plugin changed the existing functionality and many of the extension developers need to update the way their extensions handled Captcha ...
user avatar
3 votes
Accepted

Advanced Module Manager Assignments

In URL assignments section: Set the option to Include In URL matches enter /news/?$ Enable Use Regular Expressions *The /? part is used for the case your /news page is also loading via /news/ and ...
user avatar
  • 19.5k
3 votes
Accepted

What are the code changes for the Security patch vulnerability in 3.9.9

Changes for security patches are normally hidden further down in the commit history or sometimes in the actual release commit to throw people off. In this case, the security patch is in the release ...
user avatar
  • 26.4k
3 votes
Accepted

How to automatically update CDN after saving an article?

Here is my first plugin: <?php /** * Plugin class for update the Cloudflare Cache after save a article */ class plgContentBk_onsave extends JPlugin { public function onContentAfterSave ($...
user avatar
  • 344
3 votes

How to automatically update CDN after saving an article?

As far as I can remember since I haven't tested this recently, you don't need to clear CloudFlare's cache in order to display update's of article's with CloudFlare. CloudFlare will only cache static ...
user avatar
  • 19.5k
3 votes
Accepted

How to make my Editor plugin (type: editors-xtd) survive after updates?

Normally, the plugin would open a list of items. In this case, the component doesn't have the model/view for the items. So you have to create them. As a bare minimum, the model must contain ...
user avatar
  • 8,177
3 votes

Akeeba backup update broke the site

It's a good practice to always have up-to-date backups of your projects/sites. This way, you can always revert back to a previous working state. If an extension has broken your site, then remove that ...
user avatar
  • 19.5k
3 votes
Accepted

Method to remove all accented characters from a string

use Joomla\CMS\Factory; .... $lang = Factory::getLanguage(); $lang->transliterate($value); * This method processes a string and replaces all accented UTF-8 characters by ...
user avatar
2 votes
Accepted

Problem changing tooltip css in Joomla 3

The problem was: The Tooltip didn't have the styling I wanted. The quest was: To know the tooltip css class to be able to alter it. The solution: I googled the internet for the tooltip css class (the ...
user avatar
2 votes
Accepted

Remove textfilter partially for <link> and <meta> not working

Here is my solution: At first: remove meta and link from the source code is not part of the joomla filter. it is part of the core. So modify the core is not a solution about problem with later updates....
user avatar
  • 344
2 votes
Accepted

Modification of the generated Joomla head (<jdoc:include type="head" />)

You get the `HtmlDocument' object: $doc = JFactory::getDocument(); // echo "<br><pre>"; print_r($doc); echo "</pre>"; // to check what you have here You can get only the head Data: ...
user avatar
  • 2,436
2 votes
Accepted

onAfterRender plugin only triggers on backend

The code you currently have works. You just need to clear page cache and view the page again. You'll see fonts.googleapis.com links are removed. This may or may not be fine depending on the rest of ...
user avatar
  • 8,177
2 votes
Accepted

Custom field in menu item

Rename actiecode.php to actiecodes.php. Class name, filename and field type in XML form must all match.
user avatar
  • 8,177
2 votes

Joomla Discover is asking for FTP Login Details

Oops, I'd forgotten to disable FTP in Global Configuration. All sorted now.
user avatar
  • 161
2 votes
Accepted

Moving a Joomla site to a new hosting and now getting missing dependency errors

In the end I managed to solve the issue by simply re-creating the page locally (using MAMP), generating an Akeeba backup, and restoring the backup via Kickstart. I really have no idea why this ...
user avatar
  • 21
2 votes
Accepted

Joomla 3.9.19 get the constants from global configuration in component display function

So to get it from global configuration set in configuration.php from anywhere within Joomla component, plugins, modules and templates you would use: $config = JFactory::getConfig(); $siteName = $...
user avatar
2 votes

Joomla 3.9 replace zero dates with null on save/checkin (mysql zero date deprecated)

With thanks to @glenn-arkell who pointed me in the right direction, for j3.9 this works to stop Joomla writing '0000-00-00 00:00:00' into the checked_out_time field. For other fields (eg modified and ...
user avatar
  • 51
1 vote

New Joomla install but can't install extensions. Get 500 Internal Server error

Check and verify the Global Config settings for Log Folder Path and Temp Folder Path, and make sure they are correct, they are within your domain's root folder, and their permissions are good (should ...
user avatar
1 vote

New Joomla install but can't install extensions. Get 500 Internal Server error

Well, i recommend you that you change your server from Microsoft Web Server to a more approriate server for php, such as WampServer. WampServer has some configurations you must pay attention to. If ...
user avatar
1 vote

New Joomla install but can't install extensions. Get 500 Internal Server error

Verify your xml file Try unnistalling and installing your extension Drop the table manually Also verify your PhpMyAdmin make sure it's Mysql and the engine is InnoDB.
user avatar
1 vote
Accepted

Menu item "tagged list": How to disable link on image and title?

You can do this by creating an override for the com_tags layout file which outputs your list, as described in https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager. When logged on as a Super ...
user avatar
1 vote
Accepted

Why general match and exact match not functioning properly in smart search?

Did a little more looking when I had time and discovered a bug in com_finder that complicates this issue, but here's how it's (IMO) supposed to work as well as a workaround for the bug. The word "not"...
user avatar
  • 802
1 vote

Issues with cookie bot on Joomla 3x and jQuery

I'm still a little bit blind regarding your issue but I try to give you some direction and maybe we could solve this. There are many ways to add cookiebot to the site, I have never used Google Tag ...
user avatar
  • 2,436
1 vote
Accepted

How to add a field to com_content in the backend?

The problem was that I put the edit.xml inside the override folder instead I needed to put it inside the plugin folder.
user avatar
1 vote

Advanced Module Manager Assignments

This seems to work, add URL include regex news($)
user avatar
  • 3,491
1 vote
Accepted

What kind of extension should I use in order to build a back-end GUI to edit parts of the theme?

Depending on how elaborate you want your offering to be then you could start with just adding your customisable attributes as template options via the templates .xml file so that you don't have to ...
user avatar
  • 2,170
1 vote

How can you hide Joomla admin password while inputting the characters?

One of the solution will be to create a custom font (this tutorial explain a way to do this https://www.wikihow.com/Create-a-Font) with small circles for all characters and bind this font to your ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible