Joomla!

How to upgrade Joomla! 1.7.x to Joomla! 2.5 mannually

H

Backup your existing Joomla! 1.7.x installation and also your existing Joomla! 1.7.x database Download the 2.5.0 update package and not the installation package from here Extract the Update Package to your local machine and upload to your server overwriting existing files using FTP Now we need to delete some files and directories by opening the file administrator/components/com_admin/script...

Drag and Drop not working in ChronoForms V3.2.0

D

This happens when using the Wizard to drag over new form items, it only drags the title and does not anchor any form elements to the form. NOTE: Joomla! 1.5.23 together with ChronoForms V3.2.0 have been used when error occured. Check if the MooTools Upgrade Plugin is enabled in your Joomla! installation,  disable it when enabled and the problem will be fixed, this plugin enables MooTools 1...

Refused to set unsafe header “Connection” when adding a product to cart in Virtuemart in Joomla! 1.5

R

Complete Error: Refused to set unsafe header “Connection” XMLHttpRequest cannot load . Origin is not allowed by Access-Control-Allow-Origin. This seems to happen whenever you access your domain via the domain url without the www record. So the Ajax calls that are made when adding a product to the cart seem to make calls to the www.yourdomain.com url and sees it as a different website...

How to use the Custom, stockable variants plugin in VirtueMart 2.0

H

This is a basic tutorial to help you get started. We will use a Basic Size and Colour selection per product, say if you had a clothing store you would want users to select a Size and Colour for a clothing item, with a different price and different stock levels, you would use the Custom, stockable variants plugin for VirtueMart 2.0 Steps Open the Administration Panel for VirtueMart 2.0 On the Left...

Error: Warning: Invalid argument supplied for foreach() in /public_html/plugins/vmcustom/stockable/stockable.php on line 227

E

This error occurs when you have the Custom, stockable variants plugin in VirtueMart 2.0 enabled for one of the products or all the products on the page where you get the error.
In order to fix this, you will need to remove this plugin from the product/s where the product does not make use of this plugin or does not have any variants/child products assigned to the Custom, stockable variants plugin.

How to redirect using the Joomla! 1.5 and 2.5 API

H

When developing a Joomla! Component or Module you can use the Joomla! API to redirect the user from one page to another Joomla! 1.5 Example global $mainframe; $link = ''; $msg = 'message' $mainframe->redirect($link, $msg, $msgType='message'); Joomla! 2.5 Example $app = JFactory::getApplication(); $link = ''; $msg = 'message' $app->redirect($link, $msg, $msgType='message',$moved=false); Take...

How to add inline JavaScript to your Joomla! components

H

JavaScript code can directly be declared within a component or module’s display view <?php $document = &JFactory::getDocument(); $document->addScriptDeclaration('   alert("An inline JavaScript Declaration");   '); ?> For more information visit:  <?php $document = &JFactory::getDocument(); $document->addScriptDeclaration(' window.event("domready", function() {...

How to get the last Inserted Id using the Joomla! Platform

H

After you performed an Insert statement use the insertid method to get the auto-incremented value from the last Insert statement $db = $this->getDbo(); $query  = $db->getQuery(true); $query->clear(); $query->insert('#__database_table1'); $query->set("id=".(int)$id); $db->setQuery($query); $db->query();   //Now we get the last inserted id $lastInsertId = $db->insertid();  ...

How to display Notices and Error Messages using the Joomla! API

H

Errors, warnings and notices can be displayed at any time within any custom component, module and plugin. Ensure that you have the following code inside your Joomla! template where you would like the errors, warnings and notices displayed. <jdoc:include type="message" /> To display a Message user the following code within your Component, Module or Plugin JFactory::getApplication()...

How to display the currency symbol in front of amount instead of back in VirtueMart 2

H

Open the Joomla! Administration panel Under Components in the top menu, select VirtueMart Under Configuration in the VirtueMart screen select Currencies Search for the currency where you wish to move the currency symbol to the front and select it to edit Once the currency properties are open, edit the Positive Format and Negative Format text boxes by moving the {symbol} placeholder to the front...

Assigning Different Templates to Different Menu Items in Joomla! 2.5 not working

A

When you assign a Custom Template to a specific menu item using the Menu Style option when editing a menu item and its not working, then try the following steps to solve the problem: Turn off SEO in your Joomla! Configuration. If the Templates are changing after this change check to see if you have the SuperTable Plugin enabled. Disable the SuperTable Plugin Turn on SEO in your Joomla...

Stop Joomla! 3.x From Stripping Out Code

S

Joomla! has this option called Turn Off Filtering when editing content which in short means that text won’t get filtered for a specific user group if turned off. To Turn Off Filtering follow the steps below: Click on System -> Global Configuration Click on the Text Filters tab Set No Filtering next to the User Group where text filtering should be disabled. Click on SAVE. Now when a user...

Adding a link head tag with Joomla 3

A

If you have a custom Joomla plugin or component and you would like to add a link head tag to the page, then Joomla has a way for you to do this. To accomplish this you would make use of the JDocumentHTML class using the addHeadLink method. This method adds tags to the head of the document. The syntax for this method is as follows: addHeadLink(string $href, string $relation, string $relType =...

Warning No installation plugin has been enabled. At least one must be enabled to be able to use the installer. Go to the Plugin Manager to enable the plugins

W

When trying to install a Joomla 3.x.x Component, Module or Plugin you receive the error message: Warning No installation plugin has been enabled. At least one must be enabled to be able to use the installer. Go to the Plugin Manager to enable the plugins. Follow these steps to solve the problem: Click on Extensions->Manage->Discover Click on the Discover button at the right/ top of the...

How to clear all cache in Joomla 3.6.x?

H

Joomla 3.6.x includes effective caching options. Caching can help speed up your website and increase performance drastically. It also reduces load on your hosting server. To clear all the cache in Joomla 3.6.x you have to execute the following steps: Log into your Joomla Administrator dashboard In the top menu, click on System->Clear Cache To clear all cache, click on the Delete All button All...

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me