Content Management Systems

Getting errors when running Joomla! 1.7 and 1.6 in XAMPP on Localhost

G

The error messages that I get are all Strict Standards: Accessing static property JCache::$_handler as non static which is causing an annoying working experience with Joomla! Answer: Locate your php.ini file in c:\xampp\php\php.ini Locate error_reporting =  and change the value to error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED Locate locate display_errors = On and change the value...

this.parentNode.elements is undefined when updating Quantities in Virtuemart

t

To solve this problem open the following file components/com_virtuemart/js/themes/default/templates/product_details/includes/quantity_box_general.tpl.php and in line 46 and 47 remove this code  <input type="button" class="quantity_box_button quantity_box_button_up" onclick="var qty_el = this.parentNode.elements[\'quantity[]\']; var qty = qty_el.value; if( !isNaN( qty )) qty_el.value++;return...

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...

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