Error while installing Magento Blue theme.

We used to get tickets complaining that the customers are not able to install Magento Blue theme via Magento Connect. When you try to install you may get the below error.

ERROR:
Via magento connect
magento-core/Interface_Frontend_Default_Default_Blue  requires package "magento-core/Interface_Frontend_Default" (version  >= 1.3.1, version <= 1.4.0, excluded versions: 1.4.0), installed  version is 1.4.0.0
Install Errors
No valid packages found
PEAR  ERROR: install failed

magento-core/Interface_Frontend_Default
magento-core/Mage_Core_Modules

To fix this, login to your account via SSH and navigate to the Magento installation folder and execute the below command.

Install Interface_Frontend_Default correct version

./pear install magento-core/Interface_Frontend_Default

And then the Blue theme

./pear install magento-core/Interface_Frontend_Default_Default_Blue

You can get help for pear command by executing

pear help 

And to list Channels

pear list-channels Registered Channel

Post to Twitter Tweet This Post

Continue Reading

How to use curvycorners in Magento themes

Rounded edges or curvy corners are always a trendy style in web designing. Early stages we used images to make the edges rounded, later it replace with css or javascript alternatives. Among all the easiest method is curvycorners.js. Just include this javascript file and some 4-5 lines of code, your job is done. You can find examples and usage guide in www.curvycorners.net.

I am not going to explain much about curvy corners here, you just go to the above mentioned website and explore yourself more on that. Here i am going to explain how to use this with a magento themes.

For adding curvycorners.js, download the file ,extract it and copy curvycorners.js (curvycorners.src.js) to

<Magento installation>/js/lib

After this go to your theme directory and edit the page.xml file. You can find your page.xml in

/app/design/frontend/defaul//layout/page.xml

Here we will add the code for calling javascript. You can see a lot of js calls already there on the page.xml. Add these line to your page.xml file

<action method=”addJs”><script>lib/curvycorners.js</script></action>

So the new javascript will be called. There is few more steps to curve your html boxes in Magento. Hope you found how to use curvycoreners from its site (Refer it how to use section). There are some lines of code to add to the header section of the code. Here i suggest you to add that code to a new .js file and include it like what we did for curvycorners.js.

addEvent(window, ‘load’, initCorners);
function initCorners() {
var settings = {tl: { radius: 0 },tr: { radius: 10},bl: { radius:10 },br: { radius: 0 },antiAlias: true}
var settings2 = {tl: { radius: 10 },tr: { radius: 10 },bl: { radius: 10 },br: { radius: 10 },antiAlias: true}
var settings3 = {tl: { radius: 4 },tr: { radius:4 },bl: { radius: 4},br: { radius: 4 },antiAlias: true}
var settings4 = {tl: { radius: 5 },tr: { radius: 5 },bl: { radius: 0 },br: { radius: 0 },antiAlias: true}
curvyCorners(settings, “.footer”);
curvyCorners(settings2, “.col-main”);
curvyCorners(settings3, “.registered-users,.new-users”);
curvyCorners(settings4,”.breadcrumbs”);
}

The file content will be like this. So now you are done. This post is not of course to teach curvycorners, so if you have any doubt with curvycorenrs please visit www.curvycoreners.net and explore more.

Post to Twitter Tweet This Post

Continue Reading

Magento Suhosin Values

Sometimes Magento admins face the issue of some values missing from the frontend even though the configuration would have shown to be saved from Backend. This could be due the limit in the number of values set by suhosin.

The common override for this issue is to have the following values set in .htaccess

php_value suhosin.mail.protect 0
php_value suhosin.memory_limit 128M
php_value suhosin.post.max_vars 5000
php_value suhosin.post.max_value_length 500000
php_value suhosin.request.max_vars 5000
php_value suhosin.request.max_value_length 500000
php_flag suhosin.session.cryptua off

For php.ini use the variables without php_value or php_flag

Post to Twitter Tweet This Post

Continue Reading

Your email:

 

Post to Twitter Tweet This Post

About this blog

This blog, acts as a knowledge repository for the world and is unofficial! Anything we find interesting in the cyber world will go here. Most cases, this blog will reflect the happiness of our staff in reaching successful solution to an issue (s)he worked on. A reference for other fellow SAGEs who come across similar issues later