All Questions

Filter by
Sorted by
Tagged with
1
vote
0answers
32 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 (...
0
votes
1answer
284 views

Custom fields - JS in template override

We need to add some enhanced ecommerce tags to standard Google Analytics tracking on few pages. We think the best way to do it would be to use Joomla Custom fields so we created a custom field for ...
0
votes
1answer
16 views

Only show joomla custom fields on certain category levels

Is it possible to only show a field on for example the 3rd level of categories? Now when I link a field to a top level categorie, the field is shown on all articles on all levels of categories, but is ...
0
votes
1answer
886 views

How to display social sharing buttons in k2 category items, tag list, and item's page?

The native K2 CKK social sharing feature don't pop by default so i spent some time and came up with this social sharing codes i want to share with the community. See my answer below and hope it helps ...
1
vote
1answer
16 views

JS file not loading on IE, works on Chrome in Joomla Seblod

I have added JS as a field on Joomla Seblod, which calls a JS file in my file system my_profile.js as follows- jQuery.getScript("/components/com_msp/js/my_profile.js") .done(function(script, ...
0
votes
2answers
13 views

Redirect a specific page on one website to a specific page on another website

I am hoping someone may be able to help me. I am not experienced enough with .htaccess and rewrite etc to understand what is needed. I have the following already switched on in my Joomla global ...
1
vote
1answer
21 views

how to route url - JRoute get wrong itemid and wrong sef url

Joomla 3.9.12, JoomGallery 3.4 I have a site with joomShopping for e-shop and JoomGallery for portfolio. The site has 2 menus where some menu items of the first are menu item aliases of the second. ...
0
votes
0answers
45 views

Redirect administrator login page of multiple Joomla websites hosted in Apache server

I have around 10 Joomla websites hosted on Apache server. The admin URLs are similar to below patterns. http://m1.aa.example.com/administrator http://m2.aa.example.com/administrator . ...
1
vote
1answer
63 views

How to programmatically set the value of a custom field of type checkbox?

In articles, I have created a series of custom fields, including two date fields and a checkboxes field. Now, through a plugin in the onContentBeforeSave event I need to verify that if date 1 is less ...
0
votes
0answers
12 views

Joomla! 3.9.12 ignores error.php when URL rewrite is turned on

I try to implement a 404 error page for my Joomla! theme without using the way to create an article. I simply want to use the error.php file as described in the documentation. Unfortunately, when "SEO ...
0
votes
2answers
64 views

was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)

The files are loaded as so: $document = JFactory::getDocument(); $document->addScript('media/breezingforms/slider-radio/slider-radio/slider-radio.js'); $document->addStyleSheet('media/...
0
votes
0answers
21 views

joomla 4 beta 1 Invalid controller class: display

Php 7.2 localhost MAMP I am having the same issue as here with Joomla_4.0.0-beta1-dev-Development (Monday, 28 October 2019 02:01:09 UTC) 4.0.0-beta1-dev Development [ Amani ] 17-October-2019 20:21 ...
1
vote
1answer
66 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
25 views

How to add an error message when returning false in the onContentBeforeSave event?

I work in a functionality in which I must validate some fields before saving, if a condition is not met I must indicate abort the save process, according to the documentation of the ...
0
votes
1answer
51 views

Form validation in Joomla with form rules doesn't work

It will try to include new rules to validate the fields of a form and it does not work. I can not even get messages on the screen. Am I missing something in the code? Here is my code: <form ...
0
votes
1answer
113 views

Convert from MySQL query using SUBSTRING_INDEX into Joomla API query?

I have a query which gets the information that I want using SUBSTRING_INDEX in MySQL. I am trying to convert this to use the Joomla query building syntax, but I am not sure how it should be formatted? ...
2
votes
1answer
302 views

Get tags for an article

How can I query the db for all the tags associated with an article? I have been able to use JTable to query to *_tags table, but that doesn't return the tags that are associated with the article ...
6
votes
2answers
589 views

Site Vulnerability Check

With the recent security announcement regarding SQL injection, I was wondering what I could do in order to 'review' my current Joomla sites, and ensure none of them have been compromised. Apart from ...
0
votes
0answers
46 views

Error: “Invalid controller class: display”

I've installed Joomla 4 to test with, and I'm getting this error on every attempt to login to the admin: Invalid controller class: display I've re-installed and am using the latest alpha release. ...
0
votes
1answer
43 views

Editing a module from another component

Suppose I want to edit the field ("Home") of a module (say mod_breadcrumbs) from edit.php file of another module.I want to use the radio button inside another module instead of using here. Is this ...
0
votes
1answer
223 views

Custom form field not working on server

I created a custom component and in the form one custom field categoryList to list all categories dynamically. Following is the code: formname.xml <fieldset addfieldpath="/administrator/...
0
votes
1answer
20 views

How to show k2 article previous date only and upcoming only

I am creating k2 articles as events. There will be: Upcoming events Old events. I am not able to show old events for current date. How to filter both types of events (Upcoming/Old) with ...
3
votes
2answers
897 views

How to Use IN Clause in Joomla Query

I am trying to select records where a column is in a suggested list if values using the IN clause. I have tried the query below but the system is not working. $db = JFactory::getDbo(); $...
0
votes
1answer
17 views

Prefill new user registration fields in the backend by URL

Hey I want to prefill in new user details by setting the parameters in a link. I am talking about the default Joomla User Manager in the BACKEND and then clicked on new user. So this link, ...
0
votes
0answers
25 views

Change default backend language programmatically

I have a component installed which doesn't provide multilingual support. If I import data via the API, I can't import in a different language, only in the default backend language. Unfortunately, ...
1
vote
1answer
31 views

Transfer Custom Code to Module / Plugin / Component

Joomla 3.9.12 I've been using Sourcerer in order to place custom code throughout my site, it's working well so far. I've created a custom html module, within this I have added PHP, JS, HTML and CSS. ...
2
votes
1answer
458 views

How to get rendered full page before returning to the browser?

Is there any way to get full rendered page before returning to the browser? I want to get full page (from <html> to </html>), replace some pseudo variables and retrun to user changed ...
2
votes
1answer
30 views

Tips On How To Optimise A Joomla Site

Joomla 3.9.12 What's the most effective way of optimising a Joomla website? I'm not sure if my site is particularly large, details below; Files / folders 28GB Database 314MiB When I take a backup ...
2
votes
1answer
162 views

How to integrate google reviews into the page?

I am searching for a option to integrate Google Reviews in Joomla so that: I can show the reviews easily to vistors of the page (e.g. in a module) I can give google these review to show in the search ...
0
votes
1answer
49 views

Joomla update gone wrong

I tried to update my Joomla site (www.thecolourchangers.nl) to Joomla3.6.5 via the update button and the site has made a backup. The trouble is: nothing is working anymore. I have unpacked the /tmp ...
1
vote
3answers
10k views

Copy file failed - when installing/updating component

I am trying to update my 3rd party component. But the installer after a while returns the error message, that the component failed to install and the warning "Copy File Failed". System information ...
5
votes
3answers
597 views

How can I create custom page titles for blog articles?

I can specify custom page titles by editing menu options and editing Page Display -> Browser Page Title but how do I do this for blog articles which do not have individual menu options?
0
votes
1answer
22 views

How to redirect all exceptions/error to a 404 page or back to home page

I'm currently using Joomla and we have a small security vulnerability in our URI. Currently, it displays the Exception/Error directly to the user like so: You have an error in your SQL syntax; ...
0
votes
0answers
19 views

Install from web tab fails installation

Install from Web tab initially returned a blank page in both Firefox and Chrome. I disabled then uninstalled plugin. When I click on "Add Install from Web" button, I get the following: Error ...
0
votes
2answers
80 views

Joomla calendar field issue

I create a plugin in k2, which has a calendar field. When I choose the time in k2 backend like 2019-03-13 05:00 and save the item, the time auto becomes 2019-03-13 13:00,the date is correct but the ...
2
votes
1answer
27 views

Joomla4 plugin getBody

In Joomla 3.x versions I use JResponse to get and set the body. function onAfterRender() { $content = JResponse::getBody(); ... } But in Joomla4 it returns Class 'JResponse' ...
0
votes
0answers
22 views

Add rewrite rule for site login to .htaccess

I have been trying to add rewrite rule to .htaccess file but it does not seem to work. I have Joomla latest version and I am trying to do it by: # Return 403 Forbidden header and show the content of ...
0
votes
2answers
306 views

PHP7.2 Undefined variable: option in … index.php with Dj-Business004 template

When I update PHP from PHP7 to PHP7.2 the website gives this error: 500 Internal Server Error This is in the Log file: [Thu Jan 24 04:44:56.061781 2019] [proxy_fcgi:error] [pid 30185:tid ...
1
vote
1answer
33 views

Extend an administrator class in the front end code

I have just upgraded my site from Joomla 3.7 to 3.9 and I am getting errors related to my code for a component model class that extends an administrator component model class. The require_once line ...
0
votes
2answers
38 views

How do create an update for your existing Joomla plugin I've written?

I've written a simple Joomla plugin that I've been using for a year. I want to write an update for it. It would change what is in the .xml file and some code in the .php file. How do I go about ...
0
votes
1answer
34 views

Why is password reset being triggered without user submitting the form?

Multiple users are reporting their 'forgot password' / password reset function is being triggered, and that they're receiving emails with the verification code etc, even though they didn't request a ...
0
votes
1answer
42 views

Custom joomla template navbar issue

I am totally new to this kinda stuff but i have got this index.php(index.php) and this template.Details.xml(templateDetails.xml). But the navigation bar looks completely different than this . It now ...
1
vote
1answer
39 views

How to collect multi-row data from #__fields_values and assign specific aliases for each value in the result set?

I have the following (working) query to get name, username and the value of a custom field: // Get a db connection. $db = JFactory::getDbo(); // Create a new query object. $query = $db->getQuery(...
1
vote
0answers
14 views

How to set default permissions of files uploaded through Joomla Media Manager?

I'm running Joomla(3.9.8) on an Apache/PHP server on Linux. If you touch a file as the server user (and from PHP running on the server), the permissions of that file are: -rw-rw-r--. However, if a ...
1
vote
0answers
14 views

Multiple Subform field in module - add multiple items at once

I have a mutliple subform field with radio buttons. All other fields load by showon of the related parent radio select. If there was added more than one item without saving successively, the radio ...
0
votes
1answer
22 views

How to make field attribute label work

Recently, I add a field tag into the filter_workitems.xml, which looks like: <field name="show_this_week" type="CheckboxCustom" label="sohw this week" description="" value="1" class="" onclick=" ...
2
votes
3answers
247 views

Joomla 3.3.6 Union SQL Issue

I am having trouble using the union functions in Joomla. This is the SQL I need: SELECT * FROM (SELECT o.title AS org_name, u1.name AS username, 'president' AS `type` FROM ...
1
vote
2answers
60 views

How to re-write sql for joomla JDatabase

I am new to custom Joomla coding so excuse me for this, I want to execute the following statement: "SELECT MAX(CASE WHEN v.FieldName = 'Team_Name' THEN v.FieldValue END) 'Team_Name' , MAX(...
2
votes
2answers
205 views

How to retrieve RSForm submission data grouped by SubmissionId?

I have a table with 3 columns: SubmissionId, FieldName and FieldValue. 1) SubmissionId keeps ID submission. 2) FieldName stores field name of a form. 3) FieldValue stores field value of form field. ...
1
vote
2answers
185 views

How to refactor two select queries on RSForm submission data?

I was wondering if anyone could help me JOIN multiple queries into one query. Currently, these 2 blocks of code retrieve information from the DB. I am using the "Sourcerer" plugin to add custom PHP ...

15 30 50 per page