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,186 questions
2
votes
1
answer
53
views
try to update the joomla3 to joomla4 has interface error
When I try to update Joomla 3 to Joomla 4, I have an interface error. For example, the menu has "Users". However, my interface shows MOD_MENU_COM_USERS_USERS. Not all menus have the same ...
1
vote
1
answer
70
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
58
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
426
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
83
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
80
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
112
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
2
answers
103
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
76
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
128
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
1
answer
126
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
199
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
322
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
49
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
79
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
108
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
111
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
188
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
244
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
411
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
124
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
95
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
66
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
54
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
222
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
80
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
94
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
113
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
764
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
104
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
93
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
79
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
92
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
700
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
122
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
487
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
137
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
165
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
105
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
217
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
77
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
414
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
5k
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
465
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
243
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
572
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
130
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
625
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 ...
0
votes
0
answers
56
views
Newly published article does not load
I have published a new article, which is in a published category and menu that contain other published articles.
The article, which is public, goes to a 404 error page. The url of the article is:
...
1
vote
0
answers
217
views
How to change 'Response Headers "cache-control" '
I have got a site running on AWS using Cloudfront which is caching the site.
I've got browser and page cache enabled in Joomla.
However, when looking at the Response Headers, under cache control it's ...