Skip to main content

Questions tagged [joomla-5.x]

For questions regarding Joomla 5.x of the Content Management System.

Filter by
Sorted by
Tagged with
0 votes
0 answers
2 views

J5 - Admin - New Button not opening form

Here's my conundrum. My component has several elements and in the admin side lists of each element I have a standard "New" button to create a new record for that element. All my lists work ...
Glenn Arkell's user avatar
0 votes
1 answer
18 views

Joomla 5: Error 0 Object of class Joomla\CMS\Image\Image could not be converted to string

I am trying to use the Joomla image class (use Joomla\CMS\Image\Image) in a com_fields field layout override. $image = new Image($image); gives me the following error message: 0 Object of class ...
Peter Reill's user avatar
0 votes
1 answer
35 views

Text::_() with an alternate language not working

My custom component has a need to render pages in different languages based upon some signals not included in the standard Joomla system. Consequently, I have the following code to trigger a change of ...
John Rix's user avatar
  • 563
0 votes
1 answer
37 views

Loading custom Field type from plugin in custom component

I think I'm going mad here, or don't understand basics. I have created custom field type in a plugin. It installs and works in Article: Add custom field. The problem is I can't make it work with my ...
S-C's user avatar
  • 1
1 vote
0 answers
37 views

What are the best steps to take to troubleshoot a Joomla 5 500 error?

Joomla 5 gets more 500 errors than the Joomla 3 version. I am getting used to seeing: Sorry, there was a problem we could not recover from. The server returned a "500 - Whoops, looks like ...
Eoin's user avatar
  • 2,011
1 vote
0 answers
11 views

form-horizontal form-vertical in J5

In J3 you could use the classes form-horizontal and form-vertical to change the layout of a form field to have the control label above or to the left of the control itself. These classes have ...
RogerCO's user avatar
  • 81
1 vote
2 answers
52 views

How to get DI Container of my extension in a controller?

com_mycomponent/services/provider.php: return new class implements ServiceProviderInterface { public function register(Container $container): void { $container->registerServiceProvider(...
Exprove's user avatar
  • 143
0 votes
1 answer
19 views

Fresh !J5 installation on shared hosting keeps going to index.html

Fresh Joomla 5.1.x PHP 8.2.18 installation on friend's Hostmonster.com shared webhost. System info says "WebServer to PHP Interface litespeed" After installation, plain domain name URL ...
gettingitright's user avatar
0 votes
0 answers
13 views

J5 Images and Links 'Change Image' pop-up not displaying correctly on front-end for non-Cassiopeia template

I have a custom J5 template (not a Cassiopeia child). It has barely changed since I upgraded from its J4 version to J5. I normally do most of the editing on sites myself or my clients who use front-...
Gillian's user avatar
  • 411
0 votes
1 answer
37 views

How can I get my Cassiopeia_child template to use Cassiopeia's template.css?

I have just created a J5.1.1 Cassiopeia child template and in that new template added a user.css, as well as a custom index.php, user.js and sundry override files. It mostly displays correctly, as ...
Gillian's user avatar
  • 411
0 votes
0 answers
49 views

Embeded PDF is blocked by Chrome

I have a problem with an embedded PDF file in Joomla. It worked just fine until today when I tried to change the PDF content. I guess everything started when I updated to the latest Joomla version, ...
user17806's user avatar
0 votes
0 answers
40 views

Call to a member function get() on bool

I'm facing an issue with a Call to a member function get() on bool error message. I've already enabled the debug status and I will present that in this post. Let me explain what happened: I've tried ...
user17806's user avatar
0 votes
0 answers
16 views

Admin Table list view disable clicking anywhere in row to toggle checkbox

In J5 the default behaviour of clicking anywhere an Admin list view table row is now to toggle the checkbox in the first column (for batch processing). In J3 you had to actually click on the checkbox, ...
RogerCO's user avatar
  • 81
0 votes
1 answer
12 views

Is there a way to autoload Forms / Fields in Custom J5 Module?

If I want to add a Subform to my Module I need to specify the "formsource" (path to xml) into my fieldsettings. But is there a way to use The Autoloader and "simply" use the Form ...
Marco's user avatar
  • 685
0 votes
1 answer
32 views

Error on pre-update check for Joomla 5.1

In preparing to upgrade from Joomla 5.0.3 to Joomla 5.1.0 I open the Joomla Update page. While running the (automatic) pre-update check I get this error: An error has occurred while fetching the JSON ...
Bruce Button's user avatar
0 votes
1 answer
36 views

What should I use to escape a module parameter in Joomla 5?

I have a custom module I have created. When writing the code Chat GPT suggested that I use this code. use Joomla\CMS\Utilities\Utility; ~ echo "<p><strong>" . Utility::escape($...
Eoin's user avatar
  • 2,011
0 votes
1 answer
36 views

Replace if with two conditions by a try catch

I'am looking for a way to get rid of a getError() usage by replacing it by a try catch(), the part of code has an if with two conditions. I don't know how to do it in this case : $topic = TopicHelper::...
user3533235's user avatar
0 votes
1 answer
54 views

Get Joomla Articles via Model inside static (Module) Method

When calling an AJAX Method in a Module Helper file the method has to be static. I have no app context there, when doing the following: public static function getDataAjax() { $data = ...
Marco's user avatar
  • 685
0 votes
0 answers
22 views

Form Field Type to browse and select a file

I'm struggling with finding a good way to have a control (or controls) on a form which allow the user to browse and select a file in a folder tree. There may be several thousand files in several ...
RogerCO's user avatar
  • 81
1 vote
2 answers
49 views

DB Query with JOIN in Task Plugin

I'm calling the following query to retrieve records and the primary table data elements are all included, but the JOIN elements of data are not included. Any suggestions what I'm missing? private ...
Glenn Arkell's user avatar
0 votes
1 answer
55 views

Joomla 4 / 5 - Custom Field Plugin

I'm trying to update my Ajax based FolderList Fields Plugin (to select a Folder) for Joomla 4/5. All looks fine but the field does not get rendered correctly in the Article Fields Section - it looks ...
Marco's user avatar
  • 685
0 votes
1 answer
26 views

How to set and use a global variable within a content plugin?

It's probably a duplicate. Anyhow, I am writing a J5 content plugin using onContentPrepare event. It turns out, that this plugin is called several times before the page is sent to the browser. I want ...
Plamen's user avatar
  • 747
0 votes
2 answers
51 views

Scheduled Task - Plugin to use Rules

I'm trying to set up a custom scheduled task and I want to utilise the Rules parameters as part of my logic to get other records from the database. So my question is how do I get the json rules? I've ...
Glenn Arkell's user avatar
0 votes
1 answer
43 views

Joomla Custom Field Type Plugin No Translateable Label

In my Project I create a Custom Field Type Plugin (my own Customfield Type) - I'm using the new Structure with namespaces but on the "Field Selection" There is no translateable label. Its ...
Marco's user avatar
  • 685
0 votes
1 answer
39 views

Component with a module included - JED Checker

I recently ran all my components through the JED checker to bring them up to speed with J6 in mind. Some of my components have a module and/or plugin included in the main component manifest which has ...
Glenn Arkell's user avatar
0 votes
1 answer
24 views

Saving template file in administrator results in page can't be reached message

I am experiencing a new issue that I have never seen before. I have a fresh Joomla 5.0.3 install. I can create a css file in the CSS folder of the default Cass template and edit that file. It saves ...
Terry Carter's user avatar
  • 1,822
0 votes
1 answer
23 views

J5 - Utilising com_fields in component

I'm lost with utilising com_fields in my component so that my users can create a custom field for a specific purpose and have it rendered in a modal popup. So I have my component setup with a ...
Glenn Arkell's user avatar
0 votes
0 answers
33 views

Modal Popup to use Menu template

I have a modal button on my component list page which displays details of the record in a popup modal window. My problem is I want the modal popup to use the same template set in the menu item for ...
Glenn Arkell's user avatar
2 votes
1 answer
45 views

How to replace deprecated get() Function on CMSObject?

In PHP Storm I am always tells me that the CMSObject->get() function is deprecated and that I should implement my own getter. I would, if I could... This message comes with standard things like: ......
Marco's user avatar
  • 685
1 vote
1 answer
23 views

Frontend New Button and Router.php

in my component I made a List view of items and add with ToolbarHelper a New Button to add new items. Further I add a link to the item name to edit this item. As for SEF user friendly URLs I add a ...
Gerald's user avatar
  • 13
0 votes
1 answer
12 views

BUG com_installer not always displaying update script output

[original post - I have now established it is a bug] A strange quirk. Using Joomla 5 my install script for a component is designed to show some information to the user after update. It renders the ...
RogerCO's user avatar
  • 81
1 vote
4 answers
113 views

How do I copy a template

In Joomla 3 there was a handy button to create a copy of template so that you had a basis on which to customise and create your own template. This seems to have been removed in J5 and instead there is ...
RogerCO's user avatar
  • 81
0 votes
1 answer
48 views

user id not take over by jForm

I am writing my first extension (com_bnc) in Joomla and I want to save an existing user id and a date to a new table in the joomla database. I did the following things: I created a Controller which ...
Gerald's user avatar
  • 13
1 vote
1 answer
27 views

Is it possible to process content plugins before returning articles in Web Services?

Imagine a have a list of content plugins installed on joomla like: Snippets LoadModule etc... I have an article with the following content: <p>{snippet id="1"} {loadmoduleid 1}</p&...
Exprove's user avatar
  • 143
0 votes
1 answer
64 views

Creating site routes from Administrator client

I am in the process of migrating a large Joomla component from v3.x (with lots of legacy code from 1.5+!) to Joomla 5 at present. One item I have stumbled upon is how best to bootstrap the component's ...
John Rix's user avatar
  • 563
0 votes
0 answers
38 views

Check context of plugins to avoid to be loaded everywhere in Joomla!

In my component i have some plugins (like this one https://github.com/Kunena/Kunena-Forum/blob/K6.2/src/plugins/plg_kunena_comprofiler/comprofiler.php), when there are enabled they cause issues with ...
user3533235's user avatar
2 votes
1 answer
79 views

Add Tags Feature to Custom Component

Knows someone a good guide on how to implement the TAGS feature into a Custom J4/5 Component? I have this information from Astrid's Book on how to develop J4 Components but it looks not fully correct ...
Marco's user avatar
  • 685
0 votes
1 answer
55 views

Joomla 4 / 5 Module Layouts naming

When using the following field in my module xml: <field name="layout" type="modulelayout" label="...
Marco's user avatar
  • 685
0 votes
0 answers
8 views

Joomla 4 / 5 Module Layouts naming [duplicate]

When using the following field in my module xml: <field name="layout" type="modulelayout" label="...
Marco's user avatar
  • 685
0 votes
1 answer
14 views

Admin Sidebar not appearing in one view in J5 component

So I have rewritten one of my j3 components for J5, hopefully following the new standards (my first attempt) All admin views work fine except for one where the admin sidebar does not appear (as if it ...
RogerCO's user avatar
  • 81
0 votes
0 answers
52 views

Duplicate issue when using tags component as a menu item

The problem is this. Created a menu item - list of tags. I will give an example for clarity. site/tags-menu-item, if you add for this menu item, for example, site/tags-menu-item/55/, a duplicate will ...
Sergei's user avatar
  • 11
0 votes
1 answer
48 views

RSform Use button to send form fields to url

Im trying to use onclick to send data from a simple form via a url to fill in a signup form. onclick="window.open('http://url.com/signup/{name:value}/{email:value}');" It does not include ...
Samier Saban's user avatar
0 votes
0 answers
28 views

Trying to convert PDF to JPG using Imagick

I have PDF documents created using FPDF and I wish to convert to jpg for displaying purposes. I believe I have installed Imagick correctly and set the php.ini file to see it but when I try to suck it ...
Glenn Arkell's user avatar
0 votes
1 answer
47 views

Custom Form Field Type in Module Settings not got rendered (J4)

For my Project i need to render a custom form field based on the ListField I try to use the "new" conventions for J4 and later using namespacing etc. this is the relevant part of my xml: ... ...
Marco's user avatar
  • 685
1 vote
2 answers
65 views

For how long will legacy component MVC structure work in Joomla?

Legacy component MVC structure: com_foo |- controllers | |- foo.php |- helpers | |- foo.php |- models | |- forms | | |- foo.xml | |- foo.php |- views | |- foo | | |- tmpl | | | |- default....
mavrosxristoforos's user avatar
0 votes
1 answer
60 views

Calling getState Model method in a custom model method

I have a method in a model and I need the array of state variables. In controller it's easy, simply get an $model object and get the array with $state = $model->getState(); But in a model all my ...
Peli's user avatar
  • 103
2 votes
1 answer
32 views

Custom Module not on the JED how to show compatibility information?

We developed multiple extensions for our clients, but none of them are published on the JED. We also do not want to publish to the JED since they are custom extensions. All our extensions always show ...
purple11111's user avatar
1 vote
1 answer
54 views

Line Breaks in Joomla 5 language fles

It seems that a fresh install of J5.0.1 does not allow line breaks in the text value part in a component language file. Is this correct? In previous versions you could break long text strings over ...
RogerCO's user avatar
  • 81
0 votes
1 answer
87 views

Problem inserting Joomla 4/5 Custom Field in Text Article-simple syntax solution?

Use Case: I maintain a simple site for a small orchestra. Originally written in Joomla 2010, updated to Joomla 3 in 2016 and now updating to Joomla 4/5. Each concert, the items, conductor, soloists ...
DerekE's user avatar
  • 1
1 vote
0 answers
99 views

Passwordless login on Joomla 5

Is it possible to set up passwordless login on Joomla 5? This excellent article by Nicholas Dionysopoulos explains how to do it in Joomla 4. In that case,the user still had to enter his/her username. ...
Bruce Button's user avatar