Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mydomain error in Magento module

Tags:

php

magento

b2b

I am installing a B2B extension on a local machine for Magento without trouble. But while doing the same for the client server I am getting following error:

404 Not Found

The server can not find the requested page:

mydomain.com/errors/report.php?id=264218583315&skin=default (port 80)
Please forward this error screen to mydomain.com's WebMaster.

Where do I need to do the changes? I replaced the following line 33 in Observer.php file.

    Mage::app()->getResponse()->setRedirect(Mage::helper('adminhtml')->getUrl("customer/account/login"));

with

Mage::app()->getResponse()->setRedirect("http://mydomain.com/magento/index.php/customer/account/login"));

Also when I insert the url

http://mydomain.com/magento/index.php/customer/account/login

in the browser directly it works fine. But here its redirecting to 404 error page.

Do I need to make some changes to any file in Magento or some other configurations?

like image 695
Manoj Suryawanshi Avatar asked Sep 19 '12 11:09

Manoj Suryawanshi


2 Answers

I guess This is an error with the configuration or with the installation of B2B Extension. Your configuration is stored in core_config table, also try to reinstall the B2B extension. As mentioned by LittleBigDev It can also be an issue with access rights. And do check the version of magento is same on local as well as server.

like image 188
ScoRpion Avatar answered Sep 29 '22 11:09

ScoRpion


Files' access rights should be 644. For folders it should be 755. For Mage folder's files and PEAR lib files it should be 550

And you should also check the files owner settings.

For more info, look at http://www.magentocommerce.com/wiki/groups/227/resetting_file_permissions/

like image 36
LittleBigDev Avatar answered Sep 29 '22 11:09

LittleBigDev