Questions tagged [joomla-4.x]

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

63 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer
88 views

Joomla 4 API Question

How to convert a custom Joomla 3 to Joomla 4, and use the Joomla 4 web services API? I have an extension I wrote for J3 and with a bit of tweaking it works just fine in J4. I want to add web services ...
user avatar
  • 1,727
2 votes
0 answers
22 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 ...
user avatar
2 votes
1 answer
46 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 ...
user avatar
  • 31
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
2 votes
0 answers
252 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
129 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 (...
user avatar
  • 332
1 vote
0 answers
35 views

Disable the save warning on TinyMCE editors

I've programmed a modal with a TinyMCE editor inside, where it's value is saved via ajax, but when leaving the page there's still the warning Changes you made may not be saved. Is there a function or ...
user avatar
  • 278
1 vote
0 answers
12 views

A solution for multilingual websites having a different domain name for each language

I was looking for an easy to implement solution for multilingual websites having a different domain name for each language... for Joomla 4. In Joomla 3 there were a couple of plugins, but there is ...
user avatar
1 vote
0 answers
32 views

I can't get $params->set() to work to transfer variable from module to template

I'm trying to get a variable from my module to my template but its not working. In my modules xml I defined: <fields name="params"> <fieldset name="basic"> &...
user avatar
1 vote
1 answer
41 views

What is the best way to have pages displaying articles from our custom content table in Joomla 4.1?

Related: Is it possible to make it so that authors can edit their own published articles creating a new unpublished version of them? The answer to that question is "In Joomla 4 it is, but authors ...
user avatar
1 vote
0 answers
36 views

Joomla exception "throw new DebugBarException("Session must be started before using stack data in the debug bar");"

I have updated my website to Joomla 4.13 and using Postman to get data via Joomla 4 webservices. I have turned on the Debug. Now I'm getting a response to the Postman "Session must be started ...
user avatar
1 vote
0 answers
37 views

Getting input param from controller in Joomla 3 vs. 4

When doing this in a frontend controller: class MyControllerCustom extends BaseController { public function __construct($config = array()) { parent::__construct($config); ...
user avatar
  • 331
1 vote
1 answer
72 views

Updated to Joomla 4 and custom PHP scripts no longer run

I have just upgraded from Joomla 3.10.8 to the latest version of Joomla 4 (it is 100% better). However some of my scripts that have run for years now no longer work. The scripts basically import files ...
user avatar
  • 31
1 vote
0 answers
28 views

How do I get the tag parent with Joomla 4?

I'm using Joomla 4 and need to use the new API to get tags which have a specific parent. (I am already able to do it with the legacy API using the $tag->parent_id). It seems that the new API doesn'...
user avatar
  • 131
1 vote
0 answers
13 views

Create a public controller method

I have a controller method that outputs some JSON which should be publicly accessible index.php?option=com_mycomponent&task=mycontroller.json&format=json If I set this as a System > URL ...
user avatar
  • 131
1 vote
2 answers
27 views

Forwarding to the item page after the creation of the item via front end editing

I wrote a small joomla 4 component and made it possible to create a new item in the frontend. After creating a new item, Joomla core components usually redirects to a list view. But I want to redirect ...
user avatar
  • 31
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
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
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
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
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
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
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
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
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
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
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
1 vote
2 answers
781 views

How to get/call Joomla 4 custom fields into module

I tried below code <?php $article_id = 2; $model = JModelLegacy::getInstance('Article', 'ContentModel'); $article = $model->getItem($article_id); JLoader::register('FieldsHelper', ...
user avatar
1 vote
1 answer
84 views

Security concern in Joomla .php: is define('_JEXEC', 1) safe to use?

I came across this on joomla.stackechange which has me concerned: "define('_JEXEC', 1) is a bad for security in the module. It allows people to use this file as an alternative entry point for ...
user avatar
  • 83
1 vote
0 answers
129 views

Multiple Stripe Webhooks for checkout.session.completed from various Joomla components

Scenario Site has OSMembership for subscriptions Site has RSForms Pro for registering for in person / virtual courses Site has J2Store for some miscellaneous products In Stripe, I've set up two ...
user avatar
1 vote
1 answer
161 views

What is url for calling task in controller for Joomla 4?

This is my ajax query for calling a task in the controller (it works for Joomla 3 but doesn't work for Joomla 4): $.ajax({ type: "POST", url: "index.php?option=com_scrib&...
user avatar
  • 11
1 vote
0 answers
103 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 ...
user avatar
  • 331
1 vote
1 answer
100 views

Virtuemart 3.4 - products on manufacturer page

Virtuemart 3.4.2, joomla 3.8 i try copy code from category template, but cant fix this errors: at /my_template/html/com_virtuemart/manufacturer/details.php NOW I HAVE Two ERRORS: Call to a member ...
user avatar
  • 11
0 votes
0 answers
28 views

addStyleDeclaration is not working in my 4.0 module

I'm trying to insert inline css in a module and it's not working. In one of my modules php files i have the following: $document = Factory::getDocument(); // Add styles $style = 'body {' . '...
user avatar
0 votes
0 answers
18 views

Change the form field name from one view to a related one

I have two related views (item and booking) in my custom component. A view for the items, and another view for booking them. So, if you browse to an item view, you will see there a "booking ...
user avatar
  • 207
0 votes
1 answer
31 views

Unlock and Unistalling the Sample Data - Blog plugin in Joomla 4

I want to Uninstall the Sample Data - Blog plugin, but the plugin can't be remove when it's stil locked. How to unlock the Sample Data - Blog plugin in Joomla 4?
user avatar
0 votes
0 answers
19 views

How to override Joomla 4 Editor - TinyMCE Templates into Joomla template

I did not find a way to to override Joomla 4 Editor - TinyMCE Templates into Joomla template, have anyone know how?
user avatar
  • 73
0 votes
1 answer
36 views

How do I create parameters in a Joomla module depending on another parameter / number?

I'm trying to create a Joomla module for typical CSS cards, but I want to make the number of cards dependent on a number input from the user. For example the user wants 5 cards so in the parameter ...
user avatar
0 votes
0 answers
29 views

Joomla 4 Administrator Sidebar Collapsible Menu Style in the Front End

I would like to create a Sidebar Menu style in the Front End of a Joomla 4 site that looks, feels and behaves similarly to how the current left sidebar Menu of the back end is. Including the option of ...
user avatar
0 votes
0 answers
24 views

Error when trying to sendmail An error occured while fetching the JSON data: HTTP 0 status code

On Joomla! 4.1.3 i have set the mail settings the first time i have tried with gmail SMTP and the second time with office365 smtp in both case i'am not able to send mail. When i hit the button "...
user avatar
0 votes
0 answers
26 views

Joomla all versions not worked 404 pages on Litespeed server

i see front page without component, → 404 error not shows but i have its in my template.. error.php: error->getCode(); ?> - title; ?> i found very much articles, whats is maybe litespeed not support ...
user avatar
0 votes
0 answers
46 views

SEO-friendly URLs are being corrupted after update

I have built a directory website and started to add some content. I have created the standard pages (contact us, privacy, etc.) and added businesses. I would like SEO-friendly URLs, so I set: Search ...
user avatar
0 votes
2 answers
69 views

How can I sort an unordered list alphabetically by class with JavaScript or PHP?

In a custom J4 site I am using the Shack Locations (previously Focalpoint) core extension that displays a dynamically generated legend of location types on the front end, but it is listing the nine ...
user avatar
  • 161
0 votes
1 answer
75 views

How to return data from 2 tables to one table using a select field

My tables: dzialki +--------------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------------+-------------+------+---...
user avatar
0 votes
1 answer
19 views

URL on three-image CSS carousel not changing with images and text

I have created a rotating carousel using a Joomla 4 blog alternative menu item. The blog shows the three latest articles as 'intro items' on a rotation of 24 seconds in total, i.e. 8 seconds each. The ...
user avatar
  • 161
0 votes
0 answers
61 views

error with joomla 4 when i try to get value from user custom Fields

with joomla v3 we use the following code to get values from database // $userfields = FieldsHelper::getFields('com_users.user', JFactory::getUser(), true); return $customFields[6]->value; // now ...
user avatar
0 votes
0 answers
26 views

How to implement and manage canonical URLs in Joomla 4.1

I want to implement and manage canonical URLs in Joomla 4.1. I know that Joomla does not provide an automatic way to generate this type of links, although they can be quite important for SEO. It is ...
user avatar