Archive for the ‘Magento’ Category

How to create recurring payment profile in cakephp for paypal payment pro?

How to create recurring payment profile in cakephp for paypal payment pro..

I have created the paypal component in my component..

Please help me


Magento – Fix for admin login problem

Out of all CMS Magento installation is really big for everyone. Some time works and other time not works. Its all due to lake of common tips we missing while installation or After installation.

To make your mangeto admin panel working after installation follow below steps.

1] modify the core Magento code (keep in mind you may have to re-apply the fix if you update the code Magento code) – go to: app/code/core/Mage/Core/Model/Session/Abstract and open up varien.php, and comment out lines 73 (comment out the comma at the end of the line) through 76 so that it looks like the following:

// set session cookie params
$this->getCookie()->getPath() //remove this after putting on server (leave the comma)   ,

For Latest version of magneto you have to do something new :)

In the latest version of which i’m using is
in that the below mentioned code is not available



Comment these lines line (may be at line 78…);

search for “// session cookie params” line in app\code\core\Mage\Core\Model\Session\Abstract\varien.php


$cookieParams = array(
‘lifetime’ => $cookie->getLifetime(),
‘path’ => $cookie->getPath(),
‘domain’ => $cookie->getConfigDomain(),
‘cookieParams’ => $cookie->isSecure(),
‘httponly’ => $cookie->getHttponly()


$cookieParams = array(
‘lifetime’ => $cookie->getLifetime(),
‘path’ => $cookie->getPath()

and comment the below mentioned code
line number 86,

/* if (!$cookieParams['httponly']) {
if (!$cookieParams['secure']) {
if (!$cookieParams['domain']) {

if (isset($cookieParams['domain'])) {
$cookieParams['domain'] = $cookie->getDomain();

now login as admin, it will work
Hope to get lots of thanks here :)

Magento installation problem in localhost – [validate-url] – Please enter a valid URL. Protocol is required…

Comment line no. #501 in \magento-\js\prototype\validation.js file by code below:
like below i did

['validate-url', 'Please enter a valid URL. Protocol is required (http://, https:// or ftp://)', function (v) {
//return Validation.get('IsEmpty').test(v) || /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i.test(v)
return true;

it will works :)
Hire Me
Follow Me!
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.