Questions tagged [joomla-3.x]
For question regarding Joomla 3.x of the Content Management System. This includes versions 3.0 up to 3.10.
3,190
questions
0
votes
0
answers
15
views
Status of J_FILE Field Type for Subforms in Joomla
Hello Joomla Community,
I’m reaching out to clarify the current status of the J_FILE field type in Joomla. Based on my research and discussions, it appears that Joomla has had ongoing issues related ...
1
vote
1
answer
41
views
How does Joomla Generate a Page When the View is Excluded?
I've been trying to resolve a really annoying bug, and I've tracked it down to a convention of writing JRoute code that looks like this: JRoute::_('index.php?option=com_users&task=user.login')
...
0
votes
1
answer
29
views
What is the best practice for structureing complex OOP in components
When building a complex component I sometimes find that my models can grow too large and I'd like to refactor them into into multiple classes that properly separate concerns. In the core I've only ...
0
votes
1
answer
122
views
0 - syntax error, unexpected token "public", expecting end of file
Trying to create a function to show a news and echo it
But facting issue when
a. Using public - its showing 0 - syntax error, unexpected token "public", expecting end of file. Shouldnt ...
0
votes
0
answers
27
views
problems with updating database
I have some code to update a table:
$updateLastAttempt = new stdClass();
$tempDate = new DateTime('now');
$formattedDate = $tempDate->format('Y-m-d H:i:s');
$updateLastAttempt->id = $pxobjUpdate-...
1
vote
1
answer
40
views
Query with multiple joins and a variable
I have a query:
$query->select( $db->quoteName(
array_keys($fields),
array_values($fields)
));
$query->from($db->quoteName('#__receipts_patient_charge',...
0
votes
3
answers
33
views
How to version assets/images on the entire CMS?
Is there any way to force versioning of specific assets or media types (like .webp images) on all pages of the CMS? I'd imagine it'd be an extension or something that adds ?ver=xyz type of postfix to ...
0
votes
0
answers
151
views
Joomla 3.10.11 on server with MySql 8.0
On my online server which has MySql 5.7 and PHP 7.4 I have three sites in joomla which have the following:
Mywebsite1 with joomla 3.10.11 and JD Boston template with Helix framework 3.0.3
Mywebsite2 ...
0
votes
2
answers
44
views
onContentAfterSave doesn't show custom fields
I created a plugin to send published articles data to external service
class plgSystemVacancypub extends JPlugin
{
public function onContentAfterSave($context, $article, $isNew)
{
// Get ...
0
votes
0
answers
43
views
500 Joomla\CMS\Form\Form::getInstance() could not load file on Multicategories Component
I have a site that I upgraded from Joomla 2.5 to 3.10.12. The previous site is using Multicategories v1.0.4 component, it doesn't work on Joomla 3.10 and there is no update from the Author so I tried ...
0
votes
1
answer
74
views
How do I modify the CSS class on a specific page in a Joomla 3 template?
I upgrade a site template from Nebulae - version 1.6.3 to the latest version 1.16. Nebulae Template
The new template change the rt-container children class from this:
to this:
As you can see, the ...
0
votes
0
answers
12
views
Global robots tag is not inserted, only when you do it on menu basis or article basis
When I set the index,follow in the global configuration and set everything regarding this robots tag to use global it will not actually render the robots tag. It just does not render it at all.
Only ...
0
votes
1
answer
58
views
How do I override Joomlas default field template, but just in my component?
Is it possible to override the default field template just in my component? How would I go about doing it?
The template I specifically want to override is "joomla.form.renderlabel", which is ...
0
votes
0
answers
88
views
Where can I find/edit <div> elements in Joomla 3.10?
Looking to simply add some text to a element which appears on the homepage - this would take me ten seconds in HTML but I can't find where it's located in the Joomla control panel. I've looked in the ...
0
votes
1
answer
150
views
How do I change a page URL on Joomla 3.10.11?
I'm a complete newbie to Joomla here (been working with it for a few days only) and wanted to ask what is probably a silly question. For clarification I'm not using any SEF extensions/plugins - only ...
2
votes
0
answers
22
views
'This page doesn't work' in articles & items
A strange issue occurred in my site https://myagiaparaskevi.gr/ suddenly. I've done no changes except publishing new articles. Every time I try to visit an article I get 'This page doesn't work'. ...
0
votes
1
answer
47
views
Tags not saving for Joomla category custom component with the correct entry in the #__content_type for the Joomla 4 and Jooma 3
Created field type category in the custom component com_drawing
but not able to save the tags in the category(refer to the image)
Table entry in the table #__content_types
INSERT INTO #...
0
votes
1
answer
45
views
Add title to image tag
Seo optimizers cannot find titles in pictures, and I can not find how to add it through the admin panels. Please help.
1
vote
3
answers
64
views
Indexing time of smart search increases heavily
I have a large site with over 900.000 articles. Now I want to use smart search.
Therefore I use the CLI method to index the smart search:
php -d memory_limit=256M finder_indexer.php
No matter how ...
0
votes
1
answer
117
views
Joomla 4 - change in way URLs generated compared to Joomla 3
I've copied the exact menus and menu structured over from a J3 website to a J4 website but the resulting URL tree is generating differently on the J4 site.
For example the old J3 URL is: https://old....
0
votes
1
answer
169
views
Using MySQL "LOAD DATA LOCAL INFILE" with the Joomla database connection object
In a Joomla 3 component I use the MySQL "LOAD DATA LOCAL INFILE" command to import large CSV files into a Joomla database table.
When moving to a new server, it is no longer possible to ...
0
votes
2
answers
306
views
Help with update a JoomlaCli-Application from Joomla 3 to Joomla 4
I'm working with a JoomlaCli Application, called from a external php command via a cronjob. It worked in Joomla 3, but in Joomla 4 some classes have changed.
Our class name is import
Namespaces:
use ...
1
vote
1
answer
93
views
Reoder featured articles after migration to joomla 4
I have upgrade my site from Joomla 3.10.x to Joomla 4.3.2.
My homepage shows a list of featured articles. I have create new featured articles and if i change the order in the backend with drag & ...
0
votes
1
answer
50
views
Is there any way to hide banners in article but keep them in category list?
I have a website running under Joomla 3.10.11, which displays various banner modules on all post category pages.
The goal is to NOT show any banner when the user enters the article page. Is it ...
2
votes
0
answers
45
views
Help With Joomla PHP Upgrade
I need a little bit of guidance when it comes to upgrading PHP on a Joomla! site
The server is running RHEL 8.7 and I have already updated Lampp on my webserver to xampp-linux-x64-7.4.30-1. (this ...
0
votes
0
answers
45
views
Add image to registration email
I have some issues getting the registration email that I want. I have changed the language override to have the text I want. But now I want to add some images, logo and signature to the email.
But how ...
1
vote
2
answers
153
views
Can't Access Cookie From Plugin That Was Set in Another Extension
Background: I'm writing a component where you can add items to a cart. When the user isn't logged in, it uses a token to identify them, stored as a cookie. The cookie is stored in a view's controller.
...
2
votes
1
answer
46
views
How to 3rd party routing to my component?
I need to add EasySocial routing to my own component, so that JRoute([some EasySocial link]) outputs a proper EasySocial URL.
How can I do that? If I understand correctly, EasySocial routing is active ...
0
votes
2
answers
55
views
Using namespase USE in a module
I'm writing several joomla modules and I'd like to put common functions in the libraries folder. However I want to use them from a joomla Ajax call in my module. I'm preparing to upgrade from 3.x to ...
2
votes
2
answers
64
views
Undefined offset: 0 In old com_search override - PHP 8
as you are all probably aware PHP is not my expertise. I'm helping plan a Joomla migration to PHP 8 (J3) and a previous developer has created a com_search override of the default_results.php file.
The ...
1
vote
1
answer
577
views
Change JS/jQuery Scroll function based on screensize
I'm working on a J3 site which I've had to use quite a bit of custom html/js code. I've reached a 'can't see the wood for the tree's moment'. Joomla and PHP I can do, jQuery - my old brain doesn't ...
1
vote
0
answers
53
views
404 errors in Joomla backend
I've a problem in the back end for Joomla. I am moving my web site to a new server; it's not ready to go live yet. The problem happens all over the place not just in Article manager but here's an ...
1
vote
1
answer
54
views
Secure joomla admin: Disable editing css/html files for templates
I'd like to disable entering and editing any files in the Templates/Templates area. We have some security issues with template files (they are edited by hackers) and we are afraid that it is used for ...
1
vote
1
answer
56
views
Parsing errors in language files
My joomla 3.10 website was transferred to a new server. I get the following error message from the joomla debug console: "JROOT/administrator/language/en-GB/en-GB.plg_system_jdom.ini : error(s) ...
1
vote
1
answer
49
views
Modifying email address through PHP
I'm using Regular Lab's sourcerer to embed code in an article to modify users' email addresses once a questionnaire has been completed (anonymization).
I used this code to no avail:
$user = JFactory::...
3
votes
1
answer
598
views
Acess Joomla framework from external php file
Please advise on how to access the Joomla framework in 3.10 using an external php file in Joomla 3 which can work in Joomla 4 too
I am getting this issue:
Warning: Constant JPATH_BASE already defined ...
1
vote
1
answer
88
views
Joomla function to list down models in 3.11 not working in Joomla 4
am calling file - getbrand.php to display list of models using ajax
default.php
<?php
function brand_down(){
$db = JFactory::getDBO();
$sql = "SELECT * from #__car_categories where ...
2
votes
1
answer
402
views
Better way to rewrite method without deprecated JRequest
I believe JRequest is deprecated in the latest version of Joomla 3, have rewritten this function:
public function display($tpl = null)
{
$app = JFactory::getApplication();
$user = JFactory::...
0
votes
1
answer
73
views
How to return Http 401 on Joomla Administrator for an unauthenticated user?
everyone
How can I have /administrator/index.php?option=COM_MYCOMPONENT&controller=MYCONTROLLER&task=MYTASK return a "401 Unauthorized" HTTP error instead of redirecting to the ...
1
vote
1
answer
124
views
Suggestions for temporary fix with controller.php ($cachable = false, $urlparams = [])
I'm looking for a possible quick fix (temporary) for the follow error. This is on a Joomla 3 site, which I can only seem to assume was migrated from a Joomla 2.5 site which hopefully will be migrated ...
0
votes
0
answers
68
views
php beginner: handling array in Joomla module
Newbie in php, I am trying to create a module to extract orders from Joomla database and plot monthly results as a yearly curve.
I am trying to store first the products in an array, followed by a ...
0
votes
2
answers
140
views
joomla php notice error of only variable should be passed in
Hi Getting php notice error of only variable should be passed in
$this->assignRef('CatList' , $modelUsedcar->loadMainCat($brand,$Carmodel));
Can anyone suggest on how to make this function ...
0
votes
1
answer
30
views
Menuitem form field type: show only components
I am building an admin side form and placed a Menuitem form field, that is working just fine.
It is showing all the menu entries as expected, but I need it to list only the ones for "components&...
2
votes
1
answer
358
views
Show button for each iteration of foreach loop
I have built a module using Joomla's subform XML. The XML in the subform is
<fieldset name="topics" label="Topic">
<field name="title" type="text&...
2
votes
1
answer
4k
views
Joomla 3.10 admin not working after upgrade to PHP 8
My provider has upgraded the PHP version from 7.4 to 8.1. I'm working with Joomla 3.10 and thought that no actions were needed since PHP 8 is recommended for Joomla 3.10.
Since the upgrade was done, I ...
1
vote
0
answers
363
views
cart.json error in joomla
While checking error logs in hosting account, finding this error on few pages of cart.json not available
i have checked source page, file and never had this kind of file or link cart.json in it
Also ...
1
vote
0
answers
205
views
"Call to a member function setState() on bool" with responsivizer component after upgrading from joomla 3.9 to 3.10
After updating my Joomla site from version 3.9 to 3.10, everything is working except the responsivizer component where I am getting this error in the backend:
Call to a member function setState() on ...
3
votes
3
answers
362
views
JCE Editor toggle editor button missing V2.9.32
I manage quite a few Joomla sites and following a stint of updates I've noticed that the Toggle editor button is missing on sites with JCE 2.9.32 Joomla 3.10.11.
I had some sites which I was yet to ...
2
votes
0
answers
75
views
Very slow HTTP response times possibly due to SEF rules in htaccess
Im running Joomla 3.X and can't seem to pinpoint why I'm getting such high HTTP response times.
I think I narrowed it down to the SEF rules in my .htaccess
I ran some tests and thought to post my ...
1
vote
1
answer
450
views
Display google photos embed as a grid on joomla website (publicalbum.org)
I will upload a pretty large amount of photos on my website and I don't want to overload the server.
I was thinking it might be a good idea to upload the images to google photos and embed them on the ...