Questions tagged [joomla-4.x]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
18 views

Why is my rewriterule not working in Joomla 4

I am using Joomla 4 I have a requirement to rewrite certain URL's 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
0 votes
1 answer
20 views

Duplicate custom fields "media" to make "image" plugin

I am using the custom fields for the articles. I have downloaded the "media" custom field plugin and renamed this to "image" (along with the relevant files) I have installed the ...
RustyJoomla's user avatar
  • 2,076
0 votes
0 answers
19 views

Grant access to Joomla API from just one site

I finally got my Joomla 4/5 API component and plugin up and running. The API endpoints are called from an external website (Netlify) using the API tokens of a super user. - I experimented a bit with ...
cappu's user avatar
  • 137
0 votes
1 answer
24 views

Joomla 4 Router parse function

I'm converting a custom component from Joomla 3, where the component was using the legacy router, to Joomla 4 router. I have the router service set up and working on Joomla 4.4.0. I first tried ...
James Wadsworth's user avatar
1 vote
1 answer
42 views

CSRF Token Mismatch Issue in Joomla 4 Custom Form Submission

I've implemented a custom form directly within my Joomla article template's code. The form is processed by a handler located in my template. Everything worked fine until I decided to add a CSRF token ...
Deny Alines's user avatar
1 vote
2 answers
28 views

Does Jinput has a limit of max file size that supersedes PHP directives?

Here's one that is driving me crazy: PHP memory_limit: 512M PHP post_max_size: 256M PHP upload_max_filesize: 128M $app = Factory::getApplication(); dd($app->getInput()->files->get('jform')); ...
Alexandre Paulo's user avatar
0 votes
0 answers
12 views

VirtueMart PayPal Checkout Advanced Credit Card form is incomplete

Joomla ‎4.3.4 VM 4.2.2 VM PayPal Checkout 4.2.2 VM PayPal 4.2.2 We have been using the VM PayPal plugin for a while now and are in the process of changing to PayPal Checkout so that we get to use the ...
Andres Cruz's user avatar
0 votes
2 answers
36 views

How to conditionally display custom fields in template overrides

I am using the following code to pull in some custom fields into an override of com_content > category > blog_item.php: $video = $this->item->jcfields[4]->value; $media = $this->item-...
Mike Hermary's user avatar
1 vote
1 answer
39 views

Which line should PHP files in Joomla start with?

I know, that the first line in PHP Files is because of security reasons. I read it here: https://docs.joomla.org/Why_do_most_of_the_Joomla!_PHP_files_start_with_defined(%27_JEXEC%27)%3F But in the ...
agi's user avatar
  • 303
0 votes
1 answer
29 views

Visual Hint on ordering by custom column in backend

When creating a backend list view there are options to sort items by clicking on the column title Default Ordering Column <th scope="col" style=".." class="text-center d-...
Marco's user avatar
  • 583
0 votes
0 answers
21 views

How to handle duplicate items coming from an external JSON API and being imported as article content

I have adapted working code from Joomla 3 and the CLI to Joomla 4/5 and the API. The core functionality using the API system is working, but I am struggling to find a replacement for checking for ...
Mike Hermary's user avatar
1 vote
1 answer
110 views

File Upload from WebApp to Joomla API

I have successfully programmed a Joomla 4/5 API to generate an API web service. There is a kind of weird bug uploading files though, because it basically works on localhost - but on the live system I ...
cappu's user avatar
  • 137
0 votes
0 answers
22 views

Field 'sid' doesn't have a default value

Only new to Joomla- I need to add a new link to this list of links. As you can see in the picture it's only a link with a description but when trying to save it appears with "Save failed with the ...
Todd's user avatar
  • 1
0 votes
2 answers
68 views

Fix deprecated JRequest in Joomla 4

The following code use to work for generating variables for open graph data, but when I updated to Joomla 4 I now get an error because JRequest is deprecated. $option = JRequest::getCmd('option'); $...
limitedoptimist's user avatar
0 votes
0 answers
21 views

Custom task on Task Scheduler

I am trying to create a custom Joomla 4 task scheduler by creating plugin, which runs the custom task code. I created the test plugin name plg_abc_def, but I don’t know how to link it with the Task ...
TMisiunas'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
0 votes
0 answers
21 views

Try to make ACY Mailing newsletter archive view look more like a blog

I am using ACY to create and send newsletters - I am using their "menu newsletter archive view" ([https://www.beeswaxcandleshop.com/home/newsletters/archive/listing.html]) - The page looks ...
Honeyflow's user avatar
0 votes
1 answer
24 views

Styling Joomla custom fields

0 i have created some custom fields in Joomla and created an over-ride: /components/com_fields/layouts/field/render.php to /templates/YOUR_TEMPLATE/html/layouts/com_fields/field/MY_OVERRIDE.ph ...
user408's user avatar
  • 33
0 votes
1 answer
14 views

Custom Rule (checked) for ClientSide Validation

I have a Form that includes two radio inputs both based on this field structure: <field name="privacy_policy" type="radio" layout="joomla.form.field.radio.switcher"...
Marco's user avatar
  • 583
0 votes
1 answer
60 views

joomla 3.x to 4.x migration

I'm moving from 3.x to 4.x. I wrote a component in 3.x which works fine but in 4.x it throws An error has occurred. 500 behavior::tabstate not found. I think it is because bootstrap has been removed??...
user1616338's user avatar
0 votes
0 answers
17 views

Joomla 4: plugin added field in com_content editing form won't save

I'm try to create a system plugin with Joomla 4. Its purpose is adding a new field (pippo) in the article editing form and save its value in the attribs column of the content table. I used the "...
luX0r's user avatar
  • 1
1 vote
1 answer
32 views

500 error on both front- and back-end

A working site has spontaneously started giving nicely-formatted 500 errors on both / and /administrator. I am running Joomla 4.2.8 with php 8.2 on Apache 2.4.56 with MariaDB Ver 15.1 Distrib 10.5.19. ...
seismofish's user avatar
0 votes
1 answer
45 views

Joomla 4 - Cassiopeia index.php override

I have created a child template from the main cassiopeia template and I can see it there. I then created an index.php in the root of the child template folder. Making changes to this file doesn't ...
j00m's user avatar
  • 181
0 votes
3 answers
45 views

Updater XML script on server targetplatform for joomla 4.3/4.4/5.0

In my XML script of my extension for the Joomla! updater, i need to allow the updates when the extension is installed on : Joomla! 4.3.x, 4.4.x and 5.0.x. I have set in my XML file the targetplatform ...
user3533235's user avatar
0 votes
0 answers
69 views

Error when upgrading from 4.3.4 5o 4.4 Error message

website working great before being asked to update Joomla to 4.4. received this error message: An error has occurred. 0 Return value of Joomla\CMS\Mail\MailerFactory::createMailer() must be an ...
aheng55's user avatar
0 votes
1 answer
30 views

J4 -Custom Component - Router Unknown $pk in model

I've added Router Features today to my Custom Component - all works finde beside the fact that the $pk variable inside the model holds a curios value (202n) where 'n' is different for each element... ...
Marco's user avatar
  • 583
1 vote
1 answer
54 views

Input JSON strips HTML

I have successfully developed a Joomla 4 API which receives JSON data containing HTML to update the database. - The HTML markup is stripped away when using this code: $input = $this->input->json-...
cappu's user avatar
  • 137
0 votes
0 answers
40 views

Override com_content views

I have created the following override files in my Joomla 4 template override folder: /templates/chat/html/com_content/category/needinghomes.xml /templates/chat/html/com_content/category/needinghomes....
RustyJoomla's user avatar
  • 2,076
3 votes
0 answers
47 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,593
0 votes
1 answer
69 views

remove data when uninstall plugin joomla

I created content plugin to extend category option. This plguin could add second image to category, it works well. But when I uninstall this plugin, the image is still in the database. What I want is: ...
zhang's user avatar
  • 23
2 votes
1 answer
274 views

How can I filter the Persian alphabet in PHP for Joomla 4?

Before anything, I must say this code works as well for the English language, but in Persian it never works. I use this code on model/celebrities.php. This code shows my frontend model: class ...
Ali Zangeneh's user avatar
0 votes
1 answer
57 views

My script doesn't work on joomla 4

I used this simple php gallery from a folder on my Joomla 3 site. Now I'm getting ready to do an update to Joomla 4 and I noticed that I have a problem with displaying images from the directory. if I ...
Midhat's user avatar
  • 99
1 vote
1 answer
85 views

Standalone PHP script to get username in Joomla 4?

In Joomla 3 I used the following code. What do I need to change to use it with Joomla 4? <?php define( 'DS', DIRECTORY_SEPARATOR ); $rootFolder = explode(DS,dirname(__FILE__)); //current level ...
yowww23's user avatar
  • 11
0 votes
1 answer
55 views

How to use Joomla.listItemTask in Custom Component

Hi i need an example on how to implement a simple on / off toggler in a Joomla 4/5 Custom Component's list view. I've tried the following code but i did not get any reaction in the model / idk how to ...
Marco's user avatar
  • 583
0 votes
1 answer
48 views

Getting a Joomla 4 API component to work with language files

When programming a component for an API, the config contains the following language file definitions: <api> <files folder="api"> <folder>src</folder> &...
cappu's user avatar
  • 137
1 vote
1 answer
40 views

New Way to use Toolbar::getInstance('toolbar')

So there is this deprecated message that pops up when using: $toolbar = Toolbar::getInstance('toolbar'); Message: 4.0 will be removed in 6.0 Use the ToolbarFactoryInterface instead Example: Factory::...
Marco's user avatar
  • 583
0 votes
1 answer
47 views

Joomla 4: How to add a main menu item to the article?

I've encountered a problem and I can't seem to solve it. My articles are tied to subcategories. In one menu item, I display a list of all articles. Let's call it [all-articles]. This is Blog layout. ...
Deny Alines's user avatar
0 votes
1 answer
64 views

Route not working properly on J4?

I have a menu entry like so: ID: 524 Type: Articles->Create Article Link: index.php?option=com_content&view=form&layout=edit In the "old days" I'do Route::_('index.php?option=...
Alexandre Paulo's user avatar
0 votes
0 answers
12 views

How to delete root user group?

I transferred all my users from J3! to J4! using JLex Transfer. In my J3! site I had incorrectly created usergroups as root groups. These groups are no longer necessary in my new site. All I have ...
Kārlis Zikmanis's user avatar
0 votes
0 answers
36 views

Short Url with FlexiContent Or Remove menu item alias from URL

I am using flexicontent for content management in Joomla 4.3.4. And i created the Menu as All content->Edited->News As its URL with menu item alias my-domain/all-content/edited/news/content-...
Vishal Patel's user avatar
1 vote
0 answers
40 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
0 votes
1 answer
27 views

OnContentPrepare not working in custom Joomla Plugin

I have made other plugins for Joomla 4 but I am still a novice. The past two days I have been searching for a solution, it's becoming quite frustrating. I have brought back my code in the php file to ...
EJBJane's user avatar
0 votes
1 answer
51 views

Field doesn't have a default value

I have just migrated from Joomla 3 to Joomla 4 and have an issue in Ignite Gallery. When I try to upload a new image, I receive the following error message: Upload Error, Adjusting the uploader ...
Neil Robertson's user avatar
0 votes
1 answer
44 views

Upgrade Joomla CLi script to handle bulk import of items into articles

I am upgrading a client's CLi script that is used to automatically bulk import news items into Joomla articles. The code was originally programmed for Joomla 3 and now needs to support Joomla 4. I ...
Mike Hermary's user avatar
0 votes
1 answer
56 views

PHP load class from namespace error

I have been using this doc to convert a client's CLi news import script from Joomla 3 to 4. The code has been stripped of all the JSON to article code for brevity. I have gone over all of my code and ...
Mike Hermary's user avatar
0 votes
1 answer
73 views

PHP: Need to know how to trigger onContentAfterSave on existing article

I have what I thought would be a simple challenge: to automate publishing an article and trigger the onAfterContentSave event for saving the article. This code ultimately has to run within another ...
Bruce S's user avatar
0 votes
0 answers
16 views

add bootstrap menu instead of the default menu

I would like to make menu on mobile devices have the same behaviour as Bootstrap menu, right now the menu slides from right to left on mobile, i want to change this to toggle-open from top to bottom ...
omer khaber's user avatar
0 votes
0 answers
7 views

How can I set Cache TTL for my font files with htacces?

My site is very good I think in pagespeed https://www.glansbeton.be But I have a problem with my 2 fonts https://pagespeed.web.dev/analysis/https-www-glansbeton-be/l7cuaewka9?form_factor=mobile The ...
Davy Renckens's user avatar
0 votes
0 answers
36 views

Joomla 4 db prepared statement re-write

I am migrating a componenet from J3 > J4. I am stuck with some db code (not my strongest). Maybe there is a kind soul that could re-write this code so it works with J4 and i could onwords :-) ...
Ronni Hansen's user avatar
0 votes
1 answer
143 views

Overwrite Site Model getListQuery

I have a System Plugin to filter Joomla 4 Category Blog Articles by Custom Fields. The Plugin basically overrides the core content ArticlesModel by loading it in the onAfterRoute Event like this: ...
cappu's user avatar
  • 137

1
2 3 4 5
10