Questions tagged [joomla-4.x]

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

177 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
805 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('...
toblerone_country's user avatar
3 votes
0 answers
65 views

Joomla 4 Pre-Update Check Database Fail

I installed Joomla on my webhost (Siteground) using the one-click installer package. I'm currently on v4.3.2 Everything appears to be working as expected apart from the Joomla update option. It keeps ...
jonboy's user avatar
  • 3,603
3 votes
1 answer
324 views

Migrate Users from Joomla 3 to Joomla 4 with same UserIds and Passwords

So I successfully migrated users from a Joomla 3 database into a Joomla 4 database. I am hoping there is a nicer way if anyone has done it. In particular, I couldn't work out how to create a user ...
jamesgarrett's user avatar
  • 3,299
3 votes
0 answers
365 views

The quickest way to get the POST object in Joomla 3 & 4

I've been creating a lot of webservices API endpoints in Joomla 4 lately and wanted to ask: "What's the simplest, fastest, most practical way to get the entire POST object when a controller ...
Joe Hacobian's user avatar
2 votes
0 answers
213 views

Joomla 4: Redirect to a wished page after front-end login does not work

I am using a non-published login-menu-item. Calling this item, displays the login-module. After login, I want to redirect to the homepage, but instead it is displaying the introducing - and featured ...
Mary's user avatar
  • 21
2 votes
0 answers
123 views

How do I upload a file with article custom fields?

I've created a custom field plugin type "file" and am using it as custom field on articles so users can upload a file (the "media" type file does not suit my needs). It looks and ...
Alexandre Paulo's user avatar
2 votes
0 answers
144 views

Adding a Tag to an Article (in PHP)

In J4, when I want to set a value to a Custom Field, I use the following code and it works fine: $model = new FieldModel(array('ignore_request' => true)); $model->setFieldValue(2, $item->id, '...
Marc Dechèvre's user avatar
2 votes
0 answers
452 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 (...
Tehryn's user avatar
  • 41
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://...
Ruchika's user avatar
  • 415
2 votes
0 answers
816 views

Why is my class not found in Joomla 4?

I have two two Classes in separate files in the same directory both with the same namespace and yet when one Class requests the other Class it is not found. The only way I have been able to get this ...
Irata's user avatar
  • 3,927
2 votes
1 answer
102 views

What are the hardware requirements for Joomla 4.x

My development site went down because the server was taking 7 seconds to respond. The load balancer thought it was dead. So gave 503 errors. It makes me wonder if I need a bigger server. What are the ...
Huw Evans's user avatar
  • 371
2 votes
1 answer
127 views

Joomla MEMORY tables cause an error in creating/editing articles

I am encountering an error with Joomla 4 that has never occurred to me in previous installations. When I try to create/edit an article, a category or to index contents in smart search, I get the ...
Nintendomi's user avatar
2 votes
1 answer
283 views

Scheduled Tasks Infrastructure in Joomla 4.1

Is there documentation for the new Scheduled Tasks Infrastructure in Joomla 4.1 (https://github.com/joomla/joomla-cms/pull/35143)? I just created a test task for setting the site offline. I scheduled ...
agi's user avatar
  • 303
2 votes
0 answers
339 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/...
user9530's user avatar
  • 111
2 votes
2 answers
230 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-...
Skyward Companion's user avatar
2 votes
0 answers
104 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 ...
Julie Baumer's user avatar
2 votes
0 answers
662 views

Joomla 4 - router.php SEF-URLs broken since update

This current router.php creates in Joomla 4 this URL: localhost/component/ohanah/?id=688&Itemid=101 But it should create this: localhost/kurse/688-event-name where "event-name" is the ...
user avatar
2 votes
0 answers
252 views

Joomla 4: ID state of last saved row not available via $this->getState($this->getName() . '.id')

So i have a strange effect when trying moving a MVC component of mine to Joomla 4. I could break it down to a very simple test. If you look at the \libraries\src\MVC\Model\AdminModel.php file around ...
Mike's user avatar
  • 351
2 votes
0 answers
206 views

CLI for joomla 4 not working for me

Joomla 4 PHP 7.3.1 Composer and NPM node modules installed Following this doc on Joomladocs, CLI Update, php cli/joomla.php - and whatever command I add after doesn't work. I get an error message (...
ghazal's user avatar
  • 332
1 vote
0 answers
22 views

Smart Search translation

In Joomla 4.4.2 the Smart Search component translation doesn't work for any other language then english but it happens only for 6 translations: COM_FINDER_ADVANCED_TIPS_AND; ...
Mario Carta Serra's user avatar
1 vote
1 answer
27 views

How can I prevent dropdown.min.js from loading on the front end of my website?

dropdown.min.js is conflicting with the way I have my menu set up in my Joomla 4 website, but I can't disable it entirely because the back end of the website needs it. How can I keep it enabled for ...
Kris Hunt's user avatar
  • 156
1 vote
0 answers
37 views

Login programmtacially in Joomla 4 (without user password)

I'm trying to create a script to login in Joomla 4 programmatically and without the users' password. The users' authentication is done via an external site and if successful the user will be ...
Hertus's user avatar
  • 11
1 vote
0 answers
38 views

Show Arabic/Persian number if choice this number in Joomla

After changing the site language to Farsi/Arabic, I still see the numbers in English on my site. My font is completely Farsi, but the numbers are displayed in English. Please advise that I have to do ...
Ali Zangeneh's user avatar
1 vote
1 answer
80 views

Trigger event inside custom plugin group

I have a custom plugin in a custom plugin group (maidan): <?xml version="1.0" encoding="utf-8"?> <extension version="3.1" type="plugin" group="...
maidan's user avatar
  • 423
1 vote
0 answers
55 views

Can I use uppercase in Joomla 4 url paths?

In Joomla 3 it was possible to use an URL of this form example.com/Essays/somethin-else because the router would match 'Essays' to the alias of an existing menu item (eg. 'essays, content, single ...
user1104799's user avatar
1 vote
0 answers
17 views

Filtering articles by author in url

Can I get articles from a specific author in this way in joomla 4? /index.php?option=com_content&view=category&id=87&layout=blog&filter[author_id]=42 This method works with Tags, but ...
Midhat's user avatar
  • 109
1 vote
0 answers
54 views

Why is my rewriterule not working in Joomla 4

I am using Joomla 4. I have a requirement to rewrite certain URLs to a specific article (article with ID 32). This worked OK with Joomla 3 but now I am getting unexplained error 404 using the same ....
user1104799's user avatar
1 vote
0 answers
22 views

Load third parties libraries in his extensions with composer already used in others extensions

In my extension i load via composer the library ScssPhp\ScssPhp but in some sites there are others extensions installed which loads the same library ScssPhp\ScssPhp. It's the ScssPhp\ScssPhp from my ...
user3533235's user avatar
1 vote
0 answers
101 views

Rewrite rule in htaccess in joomla 4?

In J3 i used specific rewrite rules in .htaccess that worked fine but doesn't seem to work in J4. Here's an example : RewriteRule ^metier/([a-zA-Z0-9-_]+)\.html$ /index.php?option=com_content&view=...
Joannes De KOSTER's user avatar
1 vote
1 answer
55 views

[J4]Trying to add a user to Group with addUserToGroup()

I'm trying to use the UserHelper::addUserToGroup() to add a usergroup to a user. This is in my component when I publish one of my records, I want the owning user of that record to be added to a ...
Glenn Arkell's user avatar
1 vote
0 answers
57 views

Missing /media/cms/css/debug.css

While using browser developer tools I noticed an error in my joomla 4 site: Refused to apply style from 'https://[server]/media/cms/css/debug.css' because its MIME type ('text/html') is not a ...
Jimmy's user avatar
  • 327
1 vote
0 answers
51 views

media field type ignores directory

I'using a xml formsource (<field name="media" ... />) in a subform for a custom field. The form is working but my directory path is completely ignored. E.g. directory="mitglieder/...
Peter Reill's user avatar
1 vote
1 answer
223 views

Joomla 4.3.1 Web installer fails to find MariaDB (MySQL) or PostGreSQL 11

I am trying to install Joomla 4.3.1 on my Ubuntu 18.04 machine. I am running Apache 2.4.57, PHP 7.4 (for Apache, apparently), PHP 8.2 is also installed, and two installations of PostGreSQL: 10.4 (...
excyberlabber's user avatar
1 vote
0 answers
37 views

Where are the Joomla tests located, and how can I include them in my CI/CD pipeline?

I am trying to set up a CI/CD pipeline for a Joomla project and would like to include tests for my Joomla components. I am looking for the location of the Joomla tests and how I can integrate them ...
DeesreX's user avatar
  • 87
1 vote
0 answers
182 views

Custom field type "media" not allowing PDFs

Joomla media allows me to upload ".pdf" files. But if I set up a "media" custom field it does not allow me neither to upload a PDF nor to select a PDF previously uploaded via the ...
Alexandre Paulo's user avatar
1 vote
0 answers
50 views

Is there a way I can add field types to com_fields?

Joomla's custom fields feature is missing quite a few and important field types Is there a way I can add field types to com_fields? As an example, there is no "file" (https://docs.joomla.org/...
Alexandre Paulo's user avatar
1 vote
0 answers
72 views

How can I override custom fields layout for the Administrator side?

I'm using Custom Fields in articles intensively. I need to override the Custom Fields edit layout on the administrator side. Editing the files created via Administrator Template Overrides do not work. ...
Alexandre Paulo's user avatar
1 vote
0 answers
47 views

Joomla 4 not unzipping custom component update package

I have developed a custom Joomla 4 component called "com_news" and successfully implemented the update functionality before. However, now I am encountering an issue where Joomla can't unzip ...
DeesreX's user avatar
  • 87
1 vote
1 answer
40 views

Dynamic Title Module Control

I'm using PHP to creata dynamic page title based on the menu item using Sourcer and the following PHP: <?php $active = JFactory::getApplication()->getMenu()->getActive(); echo $active->...
John S's user avatar
  • 11
1 vote
0 answers
47 views

Unable to display jevent modules when a site is visited but not logged on

When a user is logged into my site he can see and update all events and see then calendar module. When we have a guest user like most of the users they can't display the calendar. Joomla 4.2.9. I ...
user469's user avatar
  • 111
1 vote
0 answers
32 views

Boolean Logic not working in Joomla 4 Smart Search when wrapping two words within quotation marks

I am having a problem with my site at https://www.shalomadventure.com where the Smart Search is not respecting the Boolean login. If I wrap two words within parentheses and do a search we are getting ...
Sean Carney's user avatar
1 vote
2 answers
314 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/...
zoe's user avatar
  • 11
1 vote
0 answers
39 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 ...
user2680315's user avatar
1 vote
0 answers
309 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 ...
agi's user avatar
  • 303
1 vote
0 answers
122 views

Query to select b where b.id is in comma separated list of a

Update: Component Code (not normalized) can be found here: Link For my First J4 Component i've now implemented Multi Cat Option by saving the selected categories into a comma separated list (text) ...
Marco's user avatar
  • 663
1 vote
1 answer
95 views

Admin tabs not loading in Chrome

I've run into an odd issue where none of the back-end tabs are displaying in Chrome. This includes pages like Global Config, New Article, and New User. When I turn on System debug, the tabs display. ...
LMK Web's user avatar
  • 183
1 vote
0 answers
143 views

HTTP 500 Whoops, looks like something went wrong. Failed to start application for Admin sendmail

I am working with Joomla 4.2.2 I have a custom script which i previously used in Joomla 3.*, from this i am sending mail using send-mail. For front it's working fine but on admin side it can not ...
Vishal Patel's user avatar
1 vote
0 answers
51 views

How can I see a user's articles in his joomla user profile?

I hope the community can help me. In this project, I would like to use Joomla's user profile view system and display the latest user posts. I thought maybe it would be doable to create a layout in ...
Diego's user avatar
  • 11
1 vote
0 answers
91 views

Joomla .htaccess redirect on multilingual site

My website has 4 languages (/en, /ka/, am/, az/) and we have a situation where we need to replace old menu aliases so that shared links on Facebook still work. The following battery of redirect rules ...
Gocha's user avatar
  • 83
1 vote
0 answers
146 views

Joomla 4 ajax php file in component, $application missing LanguageFactoryInterface::class

In Joomla4 i am creating a ajax.php file for getting json results // Boot the DI container $container = \Joomla\CMS\Factory::getContainer(); $container->alias('session.web', 'session.web.site') ...
Sabin's user avatar
  • 21