Codex

An error has occurred: 0 Call to undefined method Joomla\Database\Mysqli\MysqliDriver::query()

After migrating any website from Joomla 3.x to Joomla 4.x, we encounter the aforementioned issue since Joomla 4.x no longer supports the query() method. Additionally, if a plugin is updated from a Joomla 3.x version to a Joomla 4.x version, this can also happen. In its place, we must use the execute() method. Examining the …

An error has occurred: 0 Call to undefined method Joomla\Database\Mysqli\MysqliDriver::query() Read More »

Uncaught Error: Syntax error, unrecognized expression: [href$=#abc]

When using an attribute-based selection, we frequently get the jQuery error “Syntax error, unknown expression for href” because we failed to wrap unusual characters in quotation marks. It must be encapsulated in double quotation marks. The code contained in the if statement above will not run due to an error that looks like “Uncaught Error: …

Uncaught Error: Syntax error, unrecognized expression: [href$=#abc] Read More »

How can I change the date/time format in Joomla 4 so that it appears on the front end in the custom-built template, component, module, and plugin?

The database stores dates and times in the format 0000-00-00 00:00:00 by default for Joomla. Most of the time, we required a better method than the standard DateTime format to display on the front end. Although the date() method in the PHP core can be used to update the date and time, it is preferable …

How can I change the date/time format in Joomla 4 so that it appears on the front end in the custom-built template, component, module, and plugin? Read More »

How to truncate a string in Joomla?

We frequently need to truncate text blocks for our custom-built templates, modules, plugins, and components. To accomplish that, we can use JHTML Helper. By specifying a text length, this technique will truncate a text block rather than individual words. The first space that falls under the limit will be found, and the process will terminate …

How to truncate a string in Joomla? Read More »

Trying to uninstall unknown extension from package. This extension may have already been removed earlier.

This error message often shows during uninstalling a package from Joomla. It is because of the id in the <file> tag. Every id in the package should be unique, let’s see an example below. Closely have a look at the above syntax, the zip file name and id of that file should be the same. …

Trying to uninstall unknown extension from package. This extension may have already been removed earlier. Read More »

How to integrate the Joomla update server with custom-built extensions?

Users can now receive notifications regarding extension updates thanks to a new feature called update server integration that is available from Joomla 2.5 and the newer versions. When we created a component, module, or plugin specifically for our purposes, this was quite beneficial. If we define an update server within those extensions, we will then …

How to integrate the Joomla update server with custom-built extensions? Read More »

Shopping Cart