Questions tagged [joomla-4.x]

For questions regarding version 4.x of the Joomla! Content Management System.

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 views

Joomla ignores css changes after URL rewrite was activated

I recently installed Joomla 4.1 on my server and since I activated URL rewriting, my changes in some CSS files of the Cassiopeia Template are ignored. I tried deactivating the URL Rewrite, but it does ...
user avatar
1 vote
1 answer
26 views

Call to undefined method Joomla\CMS\Mail\MailTemplate::ClearAddresses()

In my extensions updated for Joomla! 4.0 i use the method ClearAddresses(). In Joomla! 3.x the Joomla\CMS\Mail\Mail extended phpmailer class now in Joomla! 4.x the Joomla\CMS\Component\ComponentHelper\...
user avatar
2 votes
1 answer
52 views

Is showing a Joomla API token in JS a security risk?

I have created a couple of web services under Joomla 4 that are simple enough calls to the same website to refresh a couple of fields when something else changes. In my JS code I have the 'X-Joomla-...
user avatar
  • 2,220
0 votes
1 answer
47 views

Custom plugin doesn't even seem to load on Joomla 4

As a sort of newbie developer with php/Joomla, I created a content plugin for Joomla 3 which pretty much did what I wanted and expected... I then decided to migrate it to Joomla 4 following the very ...
user avatar
  • 21
1 vote
1 answer
57 views

How to create a Joomla 4 Quickstart package

What are the key points of creating a Joomla 4 quickstart package? It seems that the way we used to do it for Joomla 3 does not work. We were creating a Joomla 3 quickstart following these steps: ...
user avatar
  • 21
1 vote
2 answers
53 views

Folders inside src/Controller/ folder

I know that you can add a controller into the src/Controller/ folder directly, and Joomla automatically recognizes it as a controller class, and you can route to it using either ?controller=...
user avatar
2 votes
1 answer
33 views

Reducing frequency of the "Joomla! update available" mails to once per day or once per week

Is there a way to reduce the frequency of the automatic "Joomla! Update available" mails? I do not want to disable the plugin, because I want to be notified about updates. But multiple mails ...
user avatar
  • 175
1 vote
0 answers
14 views

Building J4 fails in github workflow (tarball data for joomla-a11y-checker corrupted)

Upon a few days i was building Joomla 4 in an Github Workflow and after done continued doing other stuff. Now the build process fails and i dont understand whats going wrong. Important: The build ...
user avatar
  • 81
1 vote
0 answers
15 views

Language file not loaded into extension directory

In my extension a language file which aren't loaded from the directory : /components/com_exten/language/en-GB/en-GB.com_exten.controllers.ini. In the Joomla! debug there are no parse error on this ...
user avatar
0 votes
1 answer
42 views

Decode json strings from a database table column

I have a column in my database that essentially creates an array and I am essentially trying to explode it but I cannot figure out how to get it to work. Its also going into SQL with { characters ...
user avatar
  • 57
0 votes
1 answer
28 views

Zentools compatible version

I want to use zentools. Currently im working with joomla 4.1.0 . So, I was wondering, Is there a version of zentools that is compatible with joomla 4.1.0 ??
user avatar
  • 1
2 votes
2 answers
83 views

JRoute don't make a SEF Url from the article link

When I use Route method to convert a normal url in a SEF url it doesn't work if the article is not a menu item. I don't understand if it's a normal behavior or if I'm doing something wrong. There is ...
user avatar
2 votes
2 answers
154 views

TinyMCE in Joomla 4: <custom-element> without automatically added <p>

Can someone please tell me how it becomes possible in TinyMCE that a custom HTML element e.g. <my-custom-element>text...</my-custom-element> when saving the article is NOT always forcibly ...
user avatar
0 votes
0 answers
22 views

In extensions, make the schema update SQL conditional

In the xml install file for an extension for Joomla! 4.0, there are these lines that make the SQL update : <update> <schemas> <schemapath type="mysql">sql/...
user avatar
1 vote
1 answer
67 views

Change the default articles list ordering overriding the model

I need to change the default ordering of the articles list in the administrator Articles page. To do this I probably would have to edit the populateState() method in administrator/components/...
user avatar
1 vote
0 answers
14 views

Article layout override in J!4

I'm starting to worry about updating my Joomla! 3 to Joomla! 4 (4.0.6 at the time of posting this). In Joomla!, 3 I used a lot the functionality that allows to create article layout overrides by ...
user avatar
2 votes
1 answer
53 views

Add a field (Sql or List) in article options with a search bar inside in Joomla 4

I added a field type "sql" to show a list of options in the Article Options in Joomla 4. But I need to add a field like this with a search box inside to looking for one of the voices typing ...
user avatar
0 votes
0 answers
23 views

Joomla 4 REST API - Create User with required fields

When creating a new user over api - this works fine when there are not user->fields with required fields present. However, as soon as you mark a field as required - you must include that item in ...
user avatar
1 vote
1 answer
33 views

cant display simple text onContentPrepare

I just want to display simple text and this is not working. I don't know is there a way to see something like log to see what happens in the background? public function onContentPrepare($context, &...
user avatar
  • 11
2 votes
1 answer
24 views

How to check if site is in maintenance mode in Joomla 4?

I need to determine if the site is in maintenance mode. Pseudo code: if (*site is in maintenance mode*) { // do this } else { // do this other thing }
user avatar
1 vote
0 answers
56 views

render Subform repeatable custom fields joomla4

I have created one subform custom fields in my Joomla 4 article from backend and selected media filed at subform and use this code for load custom fields at joomla article YOUR_JOOMLA_WEBSITE_ROOT/...
user avatar
2 votes
2 answers
170 views

Loading a helper file in Joomla 4

I'm having trouble with using a helper file in Joomla 4, I'm not really sure where I'm going wrong. I have a helper file in my template, like templates/mytemplate/html/helper.php and this works well ...
user avatar
1 vote
1 answer
28 views

joomla 4 custom field auto text cleanup

I have this Joomla 4 installed website and I need a custom field(Editor type) for my product specifications which is going to be showing a table. For example, if I put this code: <table> <...
user avatar
0 votes
1 answer
31 views

How can I block a JavaScript script running when a modal is open?

EDIT: I shouldn't have asked this question. See my answer below. I have my own custom template on Joomla 4.0.6 with a simple scroll-to-top function. If I open edit an article on the front end, however,...
user avatar
  • 161
1 vote
0 answers
44 views

Delete Thumbnails Button Created as Joomla Custom Form Field Throws Me Out

I am developing a Joomla 4 Content Slider Module and it creates thumbnails in the mysite.com/cache/mymodule/ folder. I am trying to add a delete-thumbnails button. I am using a custom form field for ...
user avatar
  • 21
2 votes
1 answer
54 views

Invalid controller class from custom component ajax call to json method

I have an existing J3 component admin view which fires off a Javascript Ajax call to a Json controller and fetches back data which I then incorporate into that view. I'm trying to replicate how I've ...
user avatar
1 vote
1 answer
57 views

Joomla 4: Problem with the contact form, the text sent is missing

I'm creating a contact form with Privacy Check box (Joomla 4, template Cassiopeia). I have done all the steps as in joomla 3.x (custom fields) and everything works. But... When the e-mail arrives, all ...
user avatar
  • 11
2 votes
1 answer
46 views

Creating a field plug-in, need the com_content form to be enctype multipart

I've been writing a field plug-in for adding files to articles in com_content. I've got the basics of the field plug-in working ok, extending the JFormFieldFile class The issue I've hit is, for the ...
user avatar
0 votes
1 answer
68 views

How to create menu item in admin menu Joomla 4 in php+mysql in module, plugin?

How to create menu item in admin menu Joomla 4 in php? From plugin/module for Joomla4?
user avatar
1 vote
0 answers
18 views

How to populate Frontend Article Editor with existing Article content, Joomla 4?

We are building a new site founded on Joomla 4, and would like to only use core extension like the Article features built into Joomla 4, but we've run into a wall trying to implement editing an ...
user avatar
  • 11
0 votes
0 answers
39 views

joomla4: test the category id

I have tried if ($this->item->catid == 12){ return true; } OR with $article->catid I put the mentioned code in a module https://joomhelper.com/dbpqnex Another solution (maybe even more ...
user avatar
  • 21
2 votes
2 answers
48 views

API - get menu items from specific menu

I can't guess how to get menu items from a specific menu via API. I use: https://github.com/alexandreelise/j4x-api-collection https://documenter.getpostman.com/view/9617873/Szzj9yJy#6ac385da-724b-4b5b-...
user avatar
2 votes
0 answers
25 views

Transfer of the site, with change of the database (MySQL to MariaDB)

I built my website with Joomla4 and a MySQL8.0 database. Unfortunately, I need to transfer my site to a server using MariaDB10.4, which isn't compatible with MySQL8.0. I'm not a programmer and ...
user avatar
1 vote
1 answer
114 views

Create a category from frontend in Joomla 4

The registered user gets the "Author" access rights. Through the menu, you can make the button "Create material" and the Author, having entered the site, can create this material. ...
user avatar
0 votes
1 answer
65 views

Joomla 4, Error: Class '...\Component\...\Administrator\Model\SimpleXMLElement' not found

Please tell me what the problem may be. I adapt the component for Joomla 4. I get this error, although everything should work. Class '....\Component\....\Administrator\Model\SimpleXMLElement' not ...
user avatar
  • 111
1 vote
1 answer
134 views

Call to undefined method Joomla\CMS\Application\SiteApplication::isSite() in Joomla 4

I updated to Joomla 4! and the site displays an error. Here is a snippet of the debug log. 2021-11-23T16:27:43+00:00 CRITICAL ::1 error Uncaught Throwable of type Error thrown with message &...
user avatar
  • 13
0 votes
1 answer
43 views

What would keep custom fields from rendering in the frontend on Joomla 4

When using the shortcode (example {field34}) for a field in the Article editor text area the field content is not showing on the front end. I entered the fields manually and also used the dropdown and ...
user avatar
  • 45
2 votes
1 answer
79 views

Are custom fields updatable using joomla 4 api?

Simply put when using the API to update a custom field of an article, the new information is not successfully passed through. Furthermore, the original contents are deleted from the field. The ...
user avatar
  • 45
1 vote
1 answer
73 views

J4 API - There are two variables for Article Text, why do neither work on PATCH?

While working with the new Joomla 4 web services API. The Article text does not update. Additionally, as per the documentation, when creating an article via API the article text variable is ...
user avatar
  • 45
1 vote
1 answer
44 views

Exception for .htacess

I'm using Joomla 4. In the configuration, URL-Rewrite is set to yes. I think that's what caused this line: Return 403 Forbidden header and show the content of the root home page RewriteRule. * Index....
user avatar
  • 11
1 vote
0 answers
49 views

Link not working after menuid being applied?

I'm writing a new extension in Joomla4. When I add an item to my menu and click on the link that is generated on the main menu, it keeps saying the page cannot be found, but if I change the number ...
user avatar
  • 57
1 vote
1 answer
108 views

Calculate wins, losses and ties for each team in database

I have been struggling with this one for a couple days. I am trying to build a Joomla component that will display team standings based on record and then points for and points against. Currently I ...
user avatar
  • 57
1 vote
1 answer
94 views

How to update colorpicker fields to Joomla 4.x

Older versions of Joomla were able to just use JHtml::_('behavior.colorpicker'); and then have inputs with the class minicolors minicolors-input to use a color picker. That functionality no long ...
user avatar
  • 278
2 votes
1 answer
32 views

Joomla don't see subgroups in the Articles tab (Joomla 4)

I set up three users. To make things easier, let's take the following names: X, Y, Z. Additionally, there are subgroups in the Registered group, let's call them X_group, Y_group and Z_group. User X ...
user avatar
1 vote
0 answers
43 views

Migrating from Joomla 3 to Joomla 4 router alias problem

In my old router.php file at function COMPOENTParseRoute($segments), I get "404 Page not found". The error is caused by line 153 of /libraries/src/Router/Router.php. If I create the new ...
user avatar
  • 11
1 vote
2 answers
33 views

CLI function requires a Plugin with an access level of registered

I have a CLI function that runs daily and a key part of its processing uses a Plugin to create a connection with an external source to retrieve data and it works fine when the Access Level on the ...
user avatar
  • 2,220
0 votes
1 answer
76 views

View only showing one row from sql result set

I am creating a component and trying to display a list within a model. The code I have shows the multiple arrays that should be on the list, but when I add echo inside the view table, I am only ...
user avatar
  • 57
1 vote
0 answers
273 views

Joomla 4.0.3 - LDAP Login / Microsoft AD

Which settings and plugins are exactly needed to configure Joomla 4.0.3 with LDAP support? The AD server is a Windows Server 2016 Standard. I have activated the Joomla Plugin Authentication - LDAP ...
user avatar
1 vote
0 answers
48 views

Oauth2 in joomla template

**<?php /** * @package Joomla.Site * @subpackage Templates.bdcp * * @copyright Copyright (C) 2005 - 2020 All rights reserved. * @license GNU General Public License version 2 or ...
user avatar
  • 11
4 votes
2 answers
418 views

Adding ajax call in a module for Joomla 4

I'm trying to add an ajax call to Article Latest module. I added the code below to /modules/mod_articles_latest/src/Helper/ArticlesLatestHelper.php public static function getAjax() { $data ...
user avatar
  • 2,388