Questions tagged [joomla-3.x]

For question regarding Joomla 3.x of the Content Management System. This includes versions 3.0 up to 3.8.

Filter by
Sorted by
Tagged with
0
votes
1answer
44 views

CheckToken() error when TinyMCE init

I have a form, which add some data to DataBase. <form> <input type="text" name="mydata" /> <textarea name="mytext"></textarea> <?php echo JHtml::_( 'form.token' );?> ...
1
vote
1answer
312 views

AJAX POST request with form Token always responds with “Invalid Token”

I'm sending data from a form with AJAX. The data is a username and password of the user, and therefore I want to make it as secure as possible. I'm trying to use a token as an extra security layer, ...
11
votes
5answers
5k views

Joomla 3.6.0 to 3.6.1 results in a “invalid security token” error

I've just tried to update my site from Joomla 3.6.0 to 3.6.1 and I get the following error message: The most recent request was denied because it contained an invalid security token. Please refresh ...
0
votes
1answer
285 views

How can I remove check for user data (invalid token error)

I've found a lot of advice on how to keep [invalid token] error from occurring. I've tried them and still have an issue. I just want to get rid of the check. Can anyone tell me off hand where I ...
1
vote
1answer
2k views

Joomla Invalid token / Session timeout issue

I have a site that is implemented in Joomla 3.1.5 on which the following are installed http://www.joomlart.com/joomla/templates/ja-muzic --> This is the theme http://www.jomsocial.com/ --> Used ...
2
votes
1answer
1k views

Invalid Token - Login Issue

Joomla 3.4.1 I was hoping somebody could briefly explain this for me. I am not that familiar with tokens, sessions or cache. My site was working fine with no issues however I decided to enable the "...
6
votes
2answers
669 views

How to generate a pseudo random one time use code for request token

To avoid CSRF attacks we use a security token and validate the request against the token. This could be achieved through, the below code to generate a token $link = JRoute::_('index.php?option=...
2
votes
2answers
469 views

how to refresh Joomla token in form by AJAX

I've got a website that uses an AJAX call to login a user. To secure this, I've added a token to the login form - https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms the problem is that, ...
5
votes
1answer
1k views

Joomla token with ajax request

I've built a module that requests some data from the server via an ajax request. It includes the Joomla token to validate the session. An odd thing is happening-- when I open Chrome and load the page,...
2
votes
1answer
3k views

Token check not working in custom component admin

I've built a custom component and have three forms that executes different tasks in the default.php view on subcontrollers within the administrator. Within my tmpl view default.php, each form has a &...
0
votes
0answers
20 views

Generated URL with token - The security token did not match [duplicate]

I'm trying to make a link that acts as the "save 2 copy" button on the edit page. On the main page for the item, I am creating the link according to this documentation: https://docs.joomla.org/...
1
vote
1answer
150 views

From outside of a component how to change a parameter

In a system plugin, I am using the onAfterRoute event to change a single parameter from a 3rd party component before being loaded. public function onAfterRoute() { if ('com_abc' == JFactory::...
0
votes
1answer
142 views

Display specific Joomla user groups

This code snippet below shows the list of all Joomla user groups(registered,editor.superuser and ...) at component // load in joomla user groups $qry = "SELECT * FROM #__usergroups ORDER BY ...
0
votes
1answer
38 views

Why do we Route url using JRoute or Route namespace? What is the purpose of routing urls?

I want to know the purpose of routing the urls. Can anyone explain me why do we route urls?
0
votes
0answers
11 views

problems with d-flexpagination wrapper and naming buttons

I have two little problems. In moblie version of page I'm currently creating in categories with more than 9 pages of content it's unpossible to reach to the end - numbers of pages above 9 doesn't ...
2
votes
2answers
728 views

Get access level for a URL

How could I get access level for a given URL? I need to know if a URL is accessible for registered or only guests users.
0
votes
1answer
34 views

How to Update a field only when another filed is changed

My scenario is that I have a field in a table called Stock_Qty that when it is changed I need to update the Stock_Date field with the current date and then the user can replace the date if they don't ...
0
votes
0answers
34 views

Joomla 3.9.13 - Error: Failed to start application

I just installed version 3.9 joomla in local using xampp. Once the installation was finished correctly I tried to navigate the site and the backend. After loading a few pages, this annoying error ...
0
votes
1answer
97 views

How to post checkout data to component using Ajax?

$.ajax({ url: Joomla.getOptions('system.paths').base+'/index.php?option=mypage&view=cartcheckout&task=cartcheckout_autoSave&tmpl=component&stepId='+stepId, type: 'POST', //...
0
votes
1answer
36 views

How to customize amount of columns in Joomla megamenu?

My website has a mega menu dropdown in the main menu which shows up nicely, but the problem is that I had to choose the design for six columns to be able to implement my five desired columns in the ...
1
vote
2answers
53 views

use router.php in simple component

I am having a simple component, basically a list view and a single view. I want to nice URLs so I copy pasted and modified the router.php from com_content like this: class BookstoreRouter extends ...
0
votes
2answers
39 views

Need to add a hyperlink to a logo

I've put a logo on my site's homepage and the logo was clickable. And then I adjusted its position through custom.css file, but now the logo is NOT clickable (plain image). How to make it clickable ...
1
vote
0answers
15 views

excel file import in article joomla [closed]

I use joomla article + field for manage branch information. now I want import(excel file) branch information (title-desc-field1-field2,...) in articles. how do it? please guide me.
3
votes
0answers
31 views

Document Manager Recommendations

I'm looking for some recommendations for a document manager that's compatible with Joomla 3+. Seems to be a pretty popular question throughout the Joomla community. In the past I've always used Phoca ...
0
votes
0answers
14 views

Can't access websites hosted on GCP after updating joomla core

I host multiple Joomla sites on a Single Google Computer Engine VM. It has been working very well, but after I performed a Joomla core update I suddenly found that those websites can't be accessed ...
0
votes
0answers
12 views

How to change a language constant on the fly with PHP?

In Joomla! (currently 3.9.13) the language constant COM_INSTALLER_TYPE_TYPE_ is not defined. The constant is used in the error message that is displayed if the Joomla extension update system (the 'one-...
0
votes
0answers
12 views

Is having too many subform will affect website performance?

I'm creating a module that has 5 subforms (for theming options purpose), and each subform has about 10 fields. So far I don't see any significant performance issue on my website (except the module's ...
0
votes
0answers
20 views

How to login joomla from an external php file?

I am using ( Joomla! 3.9.11) define('_JEXEC', 1); define('JPATH_BASE', realpath(dirname(__FILE__) . '/..')); require_once JPATH_BASE . '/includes/defines.php'; require_once JPATH_BASE . '/...
1
vote
2answers
233 views

UPDATE query to add 1 to multiple columns

I have a website for my football team. I have some statistics and so on in there, for example how many games each player has played and so on. What I would like, is for me to write in the names of ...
5
votes
3answers
1k views

How to trigger javascript on a date selection on JHTML::_calendar

I am using the below code to show a calendar in my form. echo JHTML::calendar("", "timetable_slot_date", "id_timetable_slot_date") What I need is to implement an onChange or onDateSelect javascript (...
2
votes
3answers
804 views

Text search within single article content

I have inserted the Joomla search module in an article. Now I wish that this module would allow me to search only in the article in which it is present and not throughout the site! Is it possible?
1
vote
1answer
90 views

Joomla BuildRule adds language code at the back of setPath

I'm having a problem with building the rule for a particular URL. Here's what I have in my system plugin: //... function onAfterInitialise() { require_once '/path/to/myhelper.php'; $router = $...
1
vote
1answer
27 views

How can I display the first name of the currently logged in user in content

Matthew Murphy asks the following on the Joomla Facebook Group: Anyone know of an extension for content that replaces the name with the person who's logged in? For example I have been working on a ...
0
votes
1answer
291 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
18 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 ...
1
vote
1answer
17 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
0answers
46 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 . ...
0
votes
0answers
15 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 ...
1
vote
1answer
67 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 ...
2
votes
1answer
309 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
593 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
1answer
225 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 ...
0
votes
0answers
26 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, ...
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 ...
0
votes
1answer
50 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 ...
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
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 ...
1
vote
2answers
62 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
209 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. ...