Questions tagged [joomla-4.x]
For questions regarding version 4.x of the Joomla! Content Management System.
425
questions
1
vote
1
answer
82
views
Error When Saving Modules After J3 - J4 Migration
Recently migrated a J3 site to J4.2.8
I had to uninstall a lot of plugins before the migration, and a few after, but everything appears to be working apart from one thing.
In the Joomla admin area, ...
1
vote
2
answers
128
views
Joomla 4 SEF URLs broken since upgrade
We upgraded from Joomla 3 to Joomla 4 and since upgrading have found that many (almost all) links on the site are broken.
Here is an example of a broken link:
https://guildofenamellers.org/index.php/...
0
votes
0
answers
87
views
Joomla 4 com_users edit.php password validation
In com_users edit.php - the html helper password validation is not taking into account the password complexity that I have setup in the User backend. I have 12 chars minimum, upper, lower and special ...
1
vote
0
answers
33
views
Joomla 4 - 'Edit My Profile' Form - create custom generic form
I have created a custom (com_users/profile/edit.php). I have created a custom form that I would like to use - however, when I save the form - the value do not store in the db and the page does not ...
2
votes
1
answer
43
views
Why can't Discover find my extension or What is Discover looking for?
As a result of a mistake I made in the way I set up an extensions symlinks my extension was not being found when using the Discover feature of Joomla, this lead me to stepping through the installer ...
0
votes
1
answer
35
views
Store Joomla content into javascript variable
let's say my Joomla is deployed in the Root subfolder ,
*root
**Joomla
soo the index.php for Joomla resides in root/Joomla.
now I want to render Joomla content through Javascript from the root but ...
0
votes
0
answers
18
views
Limiting date range with DP-Calender's export to ics file?
I'm using DP-Calendar (free) on a Joomla 4 website. In the calendar view, there is a link to export a calendar in iCal format (*.ics file). Unfortunately, all entries are exported with this link.
Does ...
1
vote
1
answer
19
views
Joomla Manifest XML works in XAMPP but doesn't work in Hosting
I created a template for Joomla 4x, it works well in XAMPP, but doesn't work well in my Hosting, it is Installed successfully in my hosting but I got an Error when I try to access the template ...
1
vote
2
answers
120
views
Joomla plugin ajax request / class extend
I have created a "custom" authentication plugin and inside of it there is a function (onAjaxMyfunction) that is called from a module through com_ajax.
The call "url" looks like ...
2
votes
1
answer
117
views
How to initialize joomla modal through js
I'm customizing a view in my component, I have tabs, each tab contains a modal, but when adding a new tab using js, I don't know how to initialize the new tab's modal via js?
1
vote
1
answer
376
views
500 Layout default not found. (Joomla 4)
I am trying to make a music component for Joomla 4
On the backend, my other forms work fine and the data is stored correctly in the database ( celebrity , album , etc...)
In the music form, when I ...
0
votes
2
answers
364
views
Joomla4 pagination issue in component on prev, next
Facing problem in joomla pagination
when component upgraded from joomla 3 to 4
with same css, although buttons are working in joomla 4 with click taking to prev, first on left side and on right side ...
0
votes
1
answer
38
views
Component Dashboard - config not showing
I have a dashboard setup for my component which works fine but I wanted to allow a user in the administrator usergroup to have access to the components parameters. So set the permissions in the ...
0
votes
2
answers
116
views
PHP if statement to display divs only on first page of pagination Joomla 4
I've spent the past few days trying different variations of if statements to get this working but it's now driving me nuts.
What I'd like to do is show a series of divs on the first page of a custom ...
0
votes
0
answers
161
views
Connecting to an external database in Joomla 4 - further problem
I have seen the earlier question on this subject and tried the suggested code:
$db = (new Joomla\Database\DatabaseFactory)->getDriver('mysqli', $options);
but get an error:
An error has occurred ...
0
votes
1
answer
224
views
Call to undefined method Joomla\CMS\Application\ConsoleApplication::getTemplate()
I am converting some Joomla 3 CLI applications to use the Joomla Console and this message is causing my new CLI's to fail. There are various entries in Joomla tracker relating to similar issues where ...
3
votes
1
answer
76
views
Joomla 4 API for lightbox
I'm trying to upgrade my site to Joomla 4.
In Joomla 3 I used "JHTML::_('behavior.modal');" to display a link to an image inside a lightbox. As also explained in this question: Joomla API ...
0
votes
1
answer
46
views
Tutorial for creating joomla template
I read the tutorial about how to create a Joomla template from https://docs.joomla.org/Creating_a_basic_Joomla!_template , but when I scrutiny the Standard template bundled within Joomla 4.x (...
0
votes
2
answers
49
views
Activate jquery with javascript
I'd like to create a Joomla module, but it requires jquery to operate, the problem is whether Jquery is activated (imported) before is still unknown, import jquery through <script src> may cause ...
1
vote
0
answers
188
views
Tables and needed columns in Joomla 4
On the Page
https://www.dionysopoulos.me/book/com-tables.html#com-tables-get-object I read:
The table MUST have the following columns:
parent_id. The primary key of the parent node. Provides ...
0
votes
1
answer
117
views
Custom component categories missing after upgrade from 3.10 to 4.x
I have a custom component that integrates com_categories in it, after upgrading from joomla 3.10 to 4.x, and fixing all the errors of my component on joomla 4.x, when accessing the categories menu, ...
1
vote
0
answers
108
views
"Empty solution not allowed" captcha error when user tries to register
I've just updated my site from 3.x to 4.2.6 and now users started getting error "Empty solution not allowed". I was digging a bit and I found that this error is from Captcha (...
2
votes
1
answer
62
views
Registering EasyPost library in J4 module - Class not found
I have created a very basic module to display EasyPost Tracking information for our customers. The module works in J3, but in J4 I get an error.
This is the code I have:
use Joomla\CMS\Factory;
$input ...
4
votes
0
answers
488
views
(4.1 -> 4.2) Attempted to load class TemplateComponent from namespace Joomla\Component\Administrator\Extension calling $app->getTemplate
I have a file test.php that manually loads the Joomla framework and prints template parameters.
<?php
// test.php, located in the same directory that index.php is
define('_JEXEC', 1);
define('...
1
vote
1
answer
41
views
Joomla Smart Search indexer not updating when custom content is updated
I've built a custom component to handle client data, along with a plugin for the Smart Search component to find, index, and include them in searches. Thus far, everything works; the indexer sees my ...
1
vote
1
answer
288
views
J4. Table class in controller
I can't get Table class to work in a controller. I try to get the data of a record in a table but I always get
0 Call to a member function load() on bool
Is it possible to use the Table class in a ...
0
votes
1
answer
69
views
How to connect custom authentication plugin to openid so I can authenticate it through steam?
I need to create a "login using steam button" for a website using Joomla, from my research I can gather up that using OAuth no longer works for Steam, so I'll have to create a custom ...
2
votes
1
answer
69
views
use file or filename in XML
What tags do I correctly use in the XML file to install an extension to add a file?
filename or file?
In example code (https://codeberg.org/astrid/j4examplecode/src/branch/tutorial/src/plugins/content/...
0
votes
0
answers
37
views
URL Variable changed in joomla 4
I am trying in J4 through component creator where component working with native url as
abc.com/index.php?option=com_news&view=detail&id=12&Itemid=1
with news description shows correctly ...
0
votes
1
answer
74
views
pass on value of id in another variable
I want to pass value of id in new variable v_id so that if we are displaying news in frontend value of v_id can be shown in front end
Essentially the role which id do, can be performed by v_id
Pls ...
2
votes
0
answers
50
views
change joomla url in 4x
In Native url in joomla 4x like
https://www.abc.com/index.php?option=com_deals&view=schemes&Itemid=1
is there a way to change in from view=schemes to view=list so as to have url like
https://...
2
votes
1
answer
245
views
J4. Custom frontend server side form validation
Trying to create a custom validation rule in frontend, always get the same error:
0 Joomla\CMS\Form\Field\TextField::validate() rule Espaciocheck
missing.
Please, will the path to the file be wrong? ...
2
votes
1
answer
413
views
Joomla 4 - Profile Plugin
I need a custom profile plugin, so I copied the default user profile, renamed some folders/files, and installed it. It installs as if fine and I can activate it, but the fields don't actually display ...
0
votes
1
answer
103
views
J4. Showing a Popover in field label
In J3, xml field attributes label and description appears (language converted) as popover when class hasPopover is included. In J4 only label is rendered but not description in a popover. Adding data-...
0
votes
0
answers
19
views
How to set up MFA for the backend or Super Users Only?
I'm trying to set up MFA for everyone who's authorized to login to the administrator section.
There's no option to enforce MFA just for the Super Users, I can't disable MFA for certain groups because ...
2
votes
1
answer
63
views
Strange Characters in Site Text
Joomla 4.2.5
PHP 8.0.26
I've just noticed there are strange characters appearing throughout my website text - such as ’s
Some of my pages are created with SP Page Builder, others with the default ...
3
votes
1
answer
58
views
Prefill subform with data rows
Im trying to prefill my subform with datarows from the database.
newcustomerform.xml
<?xml version="1.0" encoding="utf-8"?>
<form addfieldprefix="Mydestiny\Component\...
0
votes
1
answer
24
views
Virtuemart 4 installation error
I installed joomla4 latest version (Joomla_4.2.6-Stable-Full_Package.zip) and I want to install VM4 (com_virtuemart.4.0.10.10767_package_or_extract.zip) and my PHP version is 8 but the following error ...
0
votes
0
answers
67
views
How to remove a parameter name from url with Joomla 4 router
My current working url is example.com/order/?id=abcd&pass=1234
I want url like example.com/order/abcd?pass=1234
After applying below codes in ROOT/components/com_shop/src/Service/Router.php
public ...
0
votes
1
answer
44
views
0 - Class "Uri" not found
I created Joomla template and tried to include a PHP script.
My index.php code:
<?php
defined('_JEXEC') or die;
use Joomla\CMS\Uri\Uri;
?>
<!doctype html>
<html>
<head>
<...
2
votes
2
answers
399
views
Joomla 4 WebAssetManager error
I'm a little confused on the documentation for adding assets to my component, and getting an error message:
There is no "com_supersite.supersite" asset of a "script" type in the ...
0
votes
0
answers
8
views
Joomla 4 with YOOtheme3.0.17 looks okay in the builder, but I get a 404 in the front end
I have Joomla 4 with YOOtheme3.0.17.
My https://www.kinderpedia.co/programeaza-un-demo.html is displayed okay in the builder, but I get a 404 when I want to access the page in a browser.
How can I fix ...
1
vote
1
answer
296
views
Joomla4 error: class to undefined method
While this code working in Joomla 3x with PHP 8, it is not working in Joomla 4x -- it is showing error class to undefined method
public function display($tpl = null)
{
$app = Factory::...
1
vote
1
answer
98
views
Joomla 4 : Categories::getInstance('productshop.products'); not working for my custom extension
extension
title
alias
com_content
Uncategorised
uncategorised
com_banners
Sample Data-Banners
sample-data-banners
com_banners
Sample Data-Newsfeeds
sample-data-newsfeeds
com_newsfeeds
Sample Data-...
0
votes
1
answer
39
views
How to return Http 401 on Joomla Administrator for an unauthenticated user?
everyone
How can I have /administrator/index.php?option=COM_MYCOMPONENT&controller=MYCONTROLLER&task=MYTASK return a "401 Unauthorized" HTTP error instead of redirecting to the ...
0
votes
1
answer
92
views
Converting J3 custom filter to J4
I have lots of custom filters in my J3 front-end components and I'm trying to convert to J4, but always get
0 Call to a member function getcatid() on bool
com_aaprueba/src/Field/filtercatid.php
...
0
votes
0
answers
106
views
Using Like with wildcard in joomla php query
Hi I am struggling to get an output from a wildcard query.
I am using the following code which outputs the following error:
0 Unknown format specifier "$"
$iban = '...
0
votes
1
answer
767
views
Joomla 4 Helper class not found
I'm sure I've missed something obvious, but I'm stumped.
I have a helper class located at:administrator/components/com_supersite/src/Helper/supersite.php
<?php
\defined('_JEXEC') or die();
class ...
1
vote
1
answer
156
views
About Joomla 4 Lazy Loading feature
everyone.
I've read this: https://magazine.joomla.org/all-issues/january-2021/using-native-lazyloading-on-your-website, so it's clear to me that media images inserted in articles content will be lazy-...
0
votes
1
answer
309
views
Joomla 4 Component json output
I'm building a simple Joomla 4 component, and I need to use a json view for some ajax requests. Just starting the testing process, and ran into an odd seemingly unrelated error message. I don't get ...