Questions tagged [joomla-4.x]

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

29 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
2answers
34 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-...
2
votes
0answers
91 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 (...
1
vote
0answers
17 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 ...
1
vote
0answers
20 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 ...
1
vote
1answer
38 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....
1
vote
0answers
45 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 ...
1
vote
0answers
36 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 ...
1
vote
0answers
91 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 ...
1
vote
0answers
23 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 ...
1
vote
0answers
82 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 ...
1
vote
2answers
223 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', ...
1
vote
1answer
226 views

'JEventDispatcher' is deprecated in Joomla 4 and what is the replacement

I am using the below code in my current Joomla custom component Joomla\CMS\Plugin\PluginHelper::importPlugin('captcha'); $dispatcher = JEventDispatcher::getInstance(); $res = $dispatcher->trigger('...
1
vote
1answer
58 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 ...
1
vote
0answers
76 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 ...
1
vote
0answers
68 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 ...
1
vote
1answer
92 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 ...
0
votes
1answer
14 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 ...
0
votes
1answer
30 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?
0
votes
0answers
29 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 ...
0
votes
1answer
72 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 ...
0
votes
1answer
140 views

Router for Joomla 4

I cannot find any documentation on router changes for Joomla 4. Can anyone advise? It appears that placing a router.php file in the base directory for the component still works - although not in ...
0
votes
1answer
64 views

Trying to write a custom form field that concatenates <input> and <select> values

I am a novice dabbler in Joomla PHP. I can build custom templates and simple frontend modules. I’m trying to write my first custom form field. I’ve gone over the documentation, reviewed several ...
0
votes
1answer
31 views

loadForm change behaviour from J!3.9 to J!4.0 and data not loaded with the form

In my component in a model backend, I'm loading a form but since moving the code to be used on J!4.0 the data associated to the form isn't loaded anymore. The loadForm is called: https://github.com/...
0
votes
1answer
124 views

How to Fix PHP Deprecated : Factory::getDocument() is deprecated

How can I fix the following deprecation error generated by my php code? Factory::getDocument() is deprecated $app = Factory::getApplication(); $wa = $app->getDocument()->getWebAssetManager(); ...
0
votes
1answer
101 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&...
0
votes
0answers
43 views

Warning! Internet Explorer should not be used error, on mobile browsers

After some problems with a Joomla 4( beta 6) install on ubuntu 18.04 with Nginx tried another instance for test purposes. This time on an Ubuntu 20 server with Litespeed( Open LS). Wich I don't know ...
0
votes
0answers
90 views

Joomla 4 not showing error in admin Panel

I am using Joomla 4 and working on a custom module and getting this error in my Joomla admin site. My problem is I am unable to get the error details instead I only get this Error: The 'atum' service ...
0
votes
0answers
86 views

How to package modules with admin back-end

Say I want to take mod_custom as a base for a future module. This module has an admin back-end and is not provided as package. After modifications, how can I package it for installation? Seems there ...
0
votes
0answers
135 views

Access namespaced custom field method from a plugin into another plugin

In one of my previous questions, I learned how to properly set up a namespaced custom form field, but it turns out that it's only available within its plugin scope for some reason. I need the field ...