Post by andric2k » Thu Jun 04, 2009 4:35 pm

Hi,

I am facing problem of debugging open cart admin function with Nusphere PHP Editor.
The debugger seem to stop after login page.
Do any one of you know how to use the debugger to debug admin function?
If yes, please let me know.

Thanks in advanced.

Regards,
Andric

New member

Posts

Joined
Thu Mar 05, 2009 5:19 pm

Post by Qphoria » Thu Jun 04, 2009 7:25 pm

Yea, the admin page graph causes it to freeze... there's a few ways around it.. ill explain them in a bit..

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by andric2k » Thu Jun 04, 2009 8:01 pm

Thanks for willing to share.
I will wait for you.

Regards,
Andric

New member

Posts

Joined
Thu Mar 05, 2009 5:19 pm

Post by Qphoria » Thu Jun 04, 2009 8:03 pm

Ok.. You can get around it by making forcing a different redirect page for your home page.

Edit admin/index.php

Find:

Code: Select all

// Router
if (isset($request->get['route'])) {
	$action = new Router($request->get['route']);
} else {
	$action = new Router('common/home');
}
Replace with:

Code: Select all

// Router
if (isset($request->get['route'])) {
	if ($request->get['route'] == 'common/home') { $request->get['route'] = 'catalog/category'; }
	$action = new Router($request->get['route']);
} else {
	//$action = new Router('common/home');
	$action = new Router('catalog/category');
}
Remember to change it back when you go to a live store.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by andric2k » Thu Jun 04, 2009 8:18 pm

Thanks. Now still in office, will try after at home.

Really thanks a lot.


Regards,
Andric

New member

Posts

Joined
Thu Mar 05, 2009 5:19 pm
Who is online

Users browsing this forum: No registered users and 5 guests