Jumat, 30 April 2010

Oscommerce Common Issues/ Bugs: 3

atal error: Call to a member function add_current_page() on a non-object in /home/xx/xxx/includes/application_top.php on line 312

This is another of the common issues I encounter almost on every new instance I work on. Issue resolution is very simple. Following the steps as below:

1. open includes/application_top.php
2. find the section of code

// navigation history
if (tep_session_is_registered('navigation')) {
if (PHP_VERSION < broken_navigation =" $navigation;" navigation =" new">unserialize($broken_navigation);
}
} else {
tep_session_register('navigation');
$navigation = new navigationHistory;
}
$navigation->add_current_page();

3. Replace the section with the following segment of code:

// navigation history
if (tep_session_is_registered('navigation')) {
if (PHP_VERSION < broken_navigation =" $navigation;" navigation =" new">unserialize($broken_navigation);
} else {
$navigation = new navigationHistory;
}
} else {
tep_session_register('navigation');
$navigation = new navigationHistory;
}
$navigation->add_current_page();

Sabtu, 03 April 2010

How To Install Microsoft Internet Explorer on Linux in Two Easy Steps

I am not a big fan of Internet Explorer but sometime you need Internet Explorer on Linux for:

=> Testing purpose (web developers)

=> To see IE only sites (many sites still only works with IE for example my bank site and few essential government site)

You need to use Wine to run IE. But there is a small collection of shell script exists which makes your life quite easy. It is called Ies4linux.

IEs4Linux is the simpler way to have Microsoft Internet Explorer running on Linux (or any OS running Wine).

No clicks needed. No boring setup processes. No Wine complications. Just one easy script and you'll get three IE versions to test your Sites. And it's free and open source.
Install Internet Explorer under Linux

Open terminal and type the following commands:
$ wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
$ tar -zxvf ies4linux-latest.tar.gz
$ cd ies4linux-*
$ ./ies4linux

Just follow on screen installations. Once installed type the following command to start IE6:
$ ~/bin/ie6