Items filtered by date: December 2015

Sunday, 09 September 2012 15:35

Configuring Joomla ACL for Clients

This is the project page for developing a Restrict ACL permmisions solution for Webhosting clients that get a Joomla Powered website so they do not have access to features they do not require or do not need.

Articles from Joomla

Other Articles

 

Published in Joomla
Sunday, 09 September 2012 14:28

The PHP temporary directory is not set

When I go to my Extension Manager Warning section I'm seeing this error:

"The PHP temporary directory is not set. The PHP temporary directory is the directory that PHP uses to store an uploaded file before Joomla! can access this file. Whilst the directory not being set isn't always a problem, if you are having issues with manifest files not being detected or uploaded files not being detected, setting this in your php.ini file might fix the issue."

The solutions were taken from this forum thread


In the configuration.php file there's an attribute called $tmp_path. Set that to the temporary path that Joomla should use.

It's usually a subdirectory of the root called /tmp.

And I'd say that the problem is more likely the write permissions to that directory rather than the directory not existing.

For Example

public $tmp_path = '/usr/local/pem/vhosts/1xxx49/webspace/httpdocs/tmp';

It might also be that this tmp folder is not set in your php.ini file

or

It's actually related to the open_basedir config of the web server. if you have access to the root of your ftp and php is run as FastCGI you can add your custom php.ini to your virtual host which should contain the following information. I'm using parallels so this might be different for plesk.{code}open_basedir = /var/www/vhosts/domain-name/httpdocs:/tmp/{/code}

Published in Joomla
Sunday, 09 September 2012 14:27

Module Manager: Ordering Column Grayed Out

In the Module Manager, the Ordering column has 'arrows' to change the ordering, but they are shaded out and not active. I *can* change the ordering of the modules if I go inside the module and change the 'Ordering' there. It does then correctly show on the Module Manager page.


If you are not sorted by the Ordering column, then you won't be able to manipulate the ordering from manager view. In Beta 5, the view was changed to hide the arrows and save order disk when not sorted by the ordering column.

Published in Joomla
Sunday, 09 September 2012 14:13

Change Menu items Page Heading option globally

You can configure most article options globally but not 'Page headings'. They are all turned on by default for Menu Item. There is not a method of setting this globally, so far.

Read Forum Thread for further information and indepth discussion about Tile, Browser page title and Page heading and the different places they are set.


There is a sneaky trick to avoid all that manual work. Run the following MySQL Statement on your joomla database

{code}update j25_menu set params = replace(params,'"show_page_heading":1','"show_page_heading":0');{/code}

It will just do a search and replace on the params field in the j25_menu table. If your menu table has a different name, just replace it.

Published in Joomla
Sunday, 09 September 2012 14:00

Infinite loop detected in JError in Joomla 1.7

If you are getting this error, that means your configuration.php has not got the database details.

Just edit that file and enter the correct db details. Thats all.

Published in Joomla

A surprise with Joomla 2.5.2 , All HTML is filtered out of content items.

Go to Global Config - Text Filters. All filters have been reset to Blacklist. Trying to save a new setting does not work - Blacklist remains. Have tried this on two sites so far on different servers with same results.


I have noticed with IE & FF that if caching is on in Global config that the changes to the text filter are not recognised. But with other settings in Global config settings can be saved with cache on( conservative and progressive).

  • With cache off, Alter a setting in Text filer and save ... Success
  • Set cache on (conservative)
  • Alter a setting in Text filer and save ... No Avail
  • Alter settings in other tabs ( like site off line) and save ... Success
  • Set cache off
  • Ctrl+F5 (clear Browser cache for that page)
  • Alter a setting in Text filer and save ... Success

Same with cache Progressive

Tested on Joomla 2.5.3,

Quick Version, turn off Joomla's cache and then the changes will stay. You can then put the cache back on.

Published in Joomla
Sunday, 09 September 2012 13:44

Admin Login giving 404 Error on Joomla 1.7

If you are getting 404 Page not Found Error on your Joomla Administrator login, then here is the fix.

  • Just goto configuration.php file and edit it.
  • Just remove the data from live_site variable and save the file.
  • Now clear the cache folder and refresh the website and administrator login page.
Published in Joomla
Sunday, 09 September 2012 13:04

How to debug magento application

I am working with Magento but i didn't find a very good way to debug my modules. For example, many time, i got a blank page with no php error and no apache error. For example, in backend, if one grid controller isn't well set, i don't have an error.

How to debug Magento module?


It sounds like you want to enable Developer mode. Add this to your .htaccess file:

SetEnv MAGE_IS_DEVELOPER_MODE "true" 

You may also want to enable display errors in index.php:

 ini_set('display_errors', 1); 

The best way I have found to debug is with X-Debug in a local environment. You can also use log files to help debug in a production environment, if your unable to run X-Debug in the environment.

I've got a more detailed posting here:

http://www.molotovbliss.com/debugging-tips-and-tricks-with-magento-commerce

Consider also install XDebug

Published in Magento

Normally, we will use a built-in download manager for installing Magento Extensions (add-ons) directly from their Magento Connect service. However, it may not always be available or be the best option because you want to test the extension first or you are installing it on a development site which does not have internet access. You should never really install extensions straight on to a live site.

This article is a collection of tools and instructions that allow you to download the magento extensions as zip files, either in their orginal format or in a zip file that is ready to FTP or copy and paste into your site. The tools are required because getting the extensions is normally a closed system through Mageno Connect so there is no direct access to the files otherwise.

Published in Magento

Unfortunately Magento does not have the function built into its setup to allow you the option to change a products attribute set once you have created a simple product.

So you need to either create the configurable product you want in the first place or alter Magento so you can change a products type


Solution 1

With the following coding updates, you can add the functionality to change a simple products attribute set directly on the Catalog > Manage Products page:

Click here for article and code

This code is untested but seems like a lot of people use it.

Solution 2

Use an extension which has all the code alterations done for you. The reduces the risk of damaging you site. THe follwoing Extension does just that.

Flagbit Change Attribute Set


Case Study

Question

I have inserted many products (T shirts) as simple products , without entering any special attributes. i now want to create configurable products for various T shirts so that customers can pick a color ( various t shirts come in various color options ).

 

  • can i add new attributes to these simple products.
  • I have tried using the add new attribute but , it added the attribute to all products in the shop , and also did not appear when i created a new configurable product.
  • i read the tutorial that explains how to do these ( 1. create attributes 2. create simple products 3. create config product) , but is it possible to do it in a different order.

if it is not possible , than what happens if in the future i have another attribute i need to add to the config product (v neck vs regular neck)?

Answer

Yes you can always add attributes to a product once it is created, but remember attributes are assigned based on an “Attribute Set” not on a per-product basis, so if you’re products are all using the Default attribute set and you add an attribute to that set it is also added to all the products in that set.

NOTE: If you want an attribute to be available when creating a configurable product, “Only attributes with scope “Global”, input type “Dropdown” and Use To Create Configurable Product “Yes” are available.”

The key here is to set up good attribute sets before creating your products because, to my knowledge, you cannot change a product’s attribute set after the product has been created. Hope that helps.

However as we now know we can actually change a products type with the methods laid out above.

Published in Magento
Page 62 of 96