Dreamweaver error: while executing onLoad in RecordsetFind.htm, the following JavaScript error(s)

Are you getting the following errors message when using Dreamweaver CS4? (Note that it may happen to Dreamweaver Professional 8 and CS3 as well).

The following translators were not loaded due to errors:
_________.htm: has configuration information that is invalid.
….

In my case it also generate the following error message when you start and close dreamweaver.

while executing onLoad in RecordsetFind.htm, the following JavaScript error(s) occured:
In file “RecordsetFind”:
findRs is not defined

While executing onLoad in TeamAdminTempDelete.html, the following JavaScript error(s) occured:
In file “TeamAdminTempDelete”:
delTempFile is not defined

It turns out that there is something wrong with your Dreamweaver configuration files. It may be caused by file corrupt, or changes in your system.

To solve this you will have to remove the current configuration folders, so that Dreamweaver will generate new one for you. To do that, close your Dreamweaver and go to the following folder:

C:\Documents and Settings\YOUR_WINDOWS_USERNAME\Application Data\Adobe\Dreamweaver CS4\en_US

Rename the “Configuration” folder in to “Configuration-old”, and then fire up your Dreamweaver.

It should generate the new Configuration folder. Now you might loose your last configuration such as the sidebar width, last used view, etc.

What’s new in ZenCart 2.0.0

After a long time waiting, Zencart team will release the new Zen Cart v2.0.0. It was originally planned to be released at the end of 2008 but they will most likely to release the upcoming Zencart 2.0 release early this year. The following will cover what you can expect from new Zencart 2.0.0, which is a summary of what I got from Zencart forum (Comming soon Zencart 2.0.0).

Speed
An emphasis has been placed on improving performance by various methods, especially reducing the number of database queries required for processing pages.

Code
For the programmers, you’ll be happy to know that the code has been largely converted to a much more efficient OOP structure, which will ultimately end up making future growth much simpler.

Templating
Templating is much simpler, in that the complicated PHP blocks that used to make them so hard to read or follow or customize have been removed. Stylesheets are leaner. And there are some very easy-to-use admin-side layout controls to make setting your desired layouts *much* simpler.

Overrides
The same override system exists for templates and language files, meaning that those already familiar with that part of the directory structure will find it easy to continue using.

Languages
UTF-8 support is now native, and the more complicated language files have been simplified and split off into their own for easier management.

Written for PHP 5
Zen Cart 2.0 takes advantage of features specific to PHP 5.2 and MySQL 4.1, thus, those are the new minimum requirements for your hosting service to provide in order to run it. CURL is also highly recommended.

And Many More…

It’s time to move our system from Zencart 1.3.8 to Zencart 2.0.0 and for those who are planning to customize Zencart system, I would just recommend you to postpone it. So that you can implement the changes in Zencart 2.0.0 directly to reduce overhead cost.

Error Install MS SQL Server Express in Windows XP SP3 / MSXML6 SP2

If you are trying to install SQL Server 2005 Express edition in Windows SP3 environment, it will most likely fail unless Microsoft has done something to fix this. Read through this blog to find how to get around with this issue.

Symptoms include SQL Server Express edition installation return error and the error log mentioned MSXML 6 Service Pack 2 (KB954459) — Configuration failed. I am not really sure what the root cause is, but it looks like Windows XP SP3 or MSXML 6 Service Pack 2 protects the MSXML 6 configuration file from update and changes. As a result, the setup fail to continue.

There are some ways to solve this, including

  • Uninstall Service Pack 3, install Microsoft SQL Server Express edition, and reinstall SP3.
  • Disable the File system protection temporarily using regedit.

But, in my opinion the best way is

Hope this post may help more people. I have received much gratitude from visitors all around the world regarding this post. Please continue to spread this post and share the good via bookmark. Cheers

Backup & Migration Microsoft Office Outlook to New system

If you have just bought new computer or reinstall your old machine and want to replicate your Microsoft Outlook profiles to the new system, this blog can answer your questions. This guide is based on my experience on Microsoft Office Outlook 2007.

First of all, there is no easy way to do this. I am amazed that Outlook 2007 does not provide account setting export tools. Thus, I believe that this is the simplest way to migrate your outlook to new system. Please be aware that you have to backup your old Microsoft Outlook before removing it and use this guide at your own risk.

  1. Backup your data from your old Outlook. There are several settings and data that you can export from your Outlook. I would recommend to copy your PST files and Outlook settings files. Guides to do this is available from Microsoft website http://support.microsoft.com/default.aspx?scid=kb;en-us;Q196492
  2. Install Microsoft Outlook in the new system
  3. Open Outlook and setup your email accounts as in your old system (yes you have to reenter every username, password, or even setup SMTP URL and port for advanced settings)
  4. By now you should already have the same account settings and Mail folders structure in your Outlook
  5. Finally, you can import your PST files from old system to your new Outlook. Select File > Import and export. Go through the wizard by opting to import PST files and in the final step choose the same folders for Import Items location

Please leave a comment if you need further guides or just to say thank you.

Fix No Bootable Partition in Table at start up

For the last 2 days in my Christmas holiday, I have struggled to accomplish one of my ambition that is having three operating systems dwell inside my new laptop. XP, Vista, and Ubuntu that was the most ideal installation sequence if you want turn your PC into triple boot device, but that is not an option in my case. My laptop come preinstalled with Vista and the stupid product recovery discs will erase all partitions, turn it back into Vista brick. At one point, I face this blank black screen with a message “No Bootable Partition In Table” when I try to boot the laptop.

How to fix this “No Bootable Partition Table” ? If your PC produce this kind of weird message, big chance you have modified your Master Boot Record (MBR) or your PC can’t find one. You don’t need to understand what is this, but it is record on your hard drive that contains boot instruction. These are options that you can do to fix this.

Have a look if you get the right device to boot. New Computers today are capable to boot from numerous devices including CD/DVD drive and Flash Drive/USB devices apart from HDD. if your computer try to boot from flash drive / disc without any master boot record, it will throw this error message. Try to remove any USB devices and CD/DVD from your PC. Try to make sure the boot sequence point to your HDD first in BIOS setting.

If the first step does not solve any problem, you have to recover, restore, or create new MBR by using your operating system disc. This task can be daunting for some people, you may want to get IT Savvy to get this done for you.
Windows Vista installation DVD can be used to fix master boot record of your Vista installation. Other option is installing other boot manager such as GRUB which is used by Linux Ubuntu. You can google “Fix master boot record” to get into detail of this.

SEO Friendly URL Using MOD_REWRITE

One aspect in SEO (search engine optimization) is having simple and descriptive URL. For example compare these two url:

  1. http://www.yoursite.com/product.php?id=101
  2. http://www.yoursite.com/product/laptop

The second URL is easier to remember for human / our visitors and it goes the same for Search Engine. Some search engine do not like special characters such as ‘?’,’=’ in URL.

Now Let me introduce you to MOD_REWRITE (rewrite module for Apache web server). This module is able to redirect a URL request to other page/URL. You can achieve the same behavior by using PHP redirect (header(“Location: destination.php”);), however, mod rewrite give you more control and robustness. What’s more, MOD_REWRITE redirect the user seamlessly which means the user will not know if they are redirected. I will go through the simplest steps to create SEO friendly URL using Apache MOD_REWRITE module. This blog is also serve as basic or simple guide on apache mod rewrite module.

Enough for the chitchat let’s go into main business. First of all you have to make sure that your apache server has mod_rewrite module enabled. By default this module is included in apache web server distribution but it is turned off. So go ahead, edit your server httpd.conf, remove ‘#’ in the Load Module section for rewrite_module or mod_rewrite.so, and restart your server.

All URL rewrite rules for mod rewrite should be put inside “.htaccess” file. Please note the behavior of htaccess file in apache which will apply the rule recursively, thus if you put your “.htaccess” in your web root folder it will affect all other folder under this root folder. Create a “.htaccess” file with the following content:

RewriteEngine on
RewriteRule ^(.*)\.html displayPage.php?page=$1

Explanation of above rule:

  • RewriteEngine on will activate any mod rewrite rule that we have specified, you can put “RewriteEngine off” to turn off rewrite rule on certain folders.
  • RewriteRule ^(.*)\.html displayPage.php?page=$1
    This rule will rewrite the url which ended with “.html” so that it will go to displayPage.php. So if you try to go to http://www.mysite.com/our_products.html, you will be redirected to http://www.mysite.com/displayPage.php?page=our_products.

    1. ^(.*)\.html – is a regular expression, any URL that match this expression will be redirected. Please note that we can capture any characters that match regular expression by using brackets “( )”. We can refer to this captured string for redirection purposes by using $n (n = number 1,2,3,4…). For more info on regular expression go to http://www.regular-expressions.info/reference.html
    2. displayPage.php?page=$1 – is the redirection destination. $1 is variable which will contain any character that has been captured before, in our regular expression.

Now create “displaPage.php”, inside this page you can get the page parameter and display the actual page accordingly. For example:

<?php
    $requestedPage = $_GET['page'];
if ($requestedPage == 'our_products') include("page1.php");
else include("index.php");
?>

Now, If you try to access “our_products.html” in your server you will be viewing “page1.php”. You can do many things inside the displayPage.php in this simple example you may find it is not quite useful, but imagine if you rewrite product name in the url (i.e. fender_electric_guitar.html) into their product code / category code (product.php?productId=50541). In order to achieve this, you can query your database and look for the product id for any product name, inside displayPage.php. Hope you find this blog helpful.