NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
PHPed Debugger with Magento doesn't run

Joined: 24 May 2011
Posts: 9
Reply with quote
Does anyone use Nusphere to run Magento? I just do it for the first time and got this error when run install.php:
HTTP 404 - File not found

I think for some reason the header was messed up. This could be caused by bad php.ini settings. Does anyone have same problem? How do you fix it?
for example my php.ini file befoe Nusphere was

zend_extension_ts = "D:\Xampp\php\ioncube\ioncube_loader_win_5.2.dll"
after nusphere

zend_extension_ts = "D:\Xampp\php\ioncube\ioncube_loader_win_5.2.dll"

But, when I did index.php in phped using magento index.php file. It gave me 404 error and I was not able to run magento afterwards at all too.

Any help greatly appreciated.
View user's profileFind all posts by kaprishi1Send private messageAIM Address
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
I do a lot of Magento debugging using PhpED, originally because PhpED plays nicely with Ioncube and I have Ioncube encoded Magento extensions.

Your php.ini looks fine. If you comment out the dbg-php-5.2.dll and restart Apache, does the site start working again?

Also, try restarting Apache from the command line so you can see any errors or warnings:

D:\path-to-apache\apache\bin\httpd.exe -k restart
View user's profileFind all posts by plugnplaySend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote

I submitted the reply below to your PM but it is sitting in my Outbox and I don't know if it has been sent. So I've posted a copy here just in case there is anything that someone else might be interested in.

May I know how would I do in phped if say, if don't want to start from index.php to all the way til end. but say i just want to debug

How shall I command phped to directly start debugging from above link in my magento.

Magento uses a lot of 'rewrites' to redirect URL's to various parts of code. If you have not debugged Magento before, it can actually be quite complex working out which PHP files are used.

Magento uses the Zend framework, so learning about that can be beneficial.

Magento uses XML files to tell it how to do various things. For th URL http://mysite/customer/account/???? the XML file that is used is called app/code/core/Mage/Customer/etc/config.xml and in that file you will see a router entry, which then handles the customer part of the URL (that is the 'rewrite' bit).

Do not get confused by the word customer being present in the URL, XML file path and the final PHP file. That is not what Magento uses for the rewrite; It is the XML file that specifies the URL path.

The login process then goes through app/code/core/Mage/Customer/controllers/AccountController.php

In there you will see loginAction(), logoutAction() and a few others.

You can force PhpED to break in that code by either setting a breakpoint (recommended) or adding a DebugBreak() command (sometimes more convenient, particularly if you want to wrap the DebugBreak with a condition):

 * Customer login form page
public function loginAction()


    if ($this->_getSession()->isLoggedIn()) {
    $this->getResponse()->setHeader('Login-Required', 'true');

If you do use DebugBreak() remember to remove it before publishing your code.

PhpED is actually very good for debugging Magento. I think it is much better than Xdebug or Zend debugger. A lot of Magento developers use PhpED. However, for Magento specific questions I recommend using the Magento forums at
View user's profileFind all posts by plugnplaySend private message
PHPed Debugger with Magento doesn't run
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

 Reply to topic