15
Nov/06
0

Zencart and Ultimate URL – 1054 Unknown column ‘c.parent_id’ in ‘on clause’

Configuration:

Linux
Apache 1.3
Mysql 5
PHP 5
Zencart 1.3.5
Chemo Ultimate URL for Zencart 1.3.5

Problem:

After installation, the error message
1054 Unknown column ‘c.parent_id’ in ‘on clause’
shows up on any page in the catalog.

Fix:

Make the following change to /include/classes/seo.url.php
Original:

SELECT c.categories_id as id, c.parent_id, cd.categories_name as cName, cd2.categories_name as pName
FROM “.TABLE_CATEGORIES.” c,
“.TABLE_CATEGORIES_DESCRIPTION.” cd
LEFT JOIN “.TABLE_CATEGORIES_DESCRIPTION.” cd2
ON c.parent_id=cd2.categories_id AND cd2.language_id=’”.(int)$this->languages_id.”‘
WHERE c.categories_id=cd.categories_id
AND cd.language_id=’”.(int)$this->languages_id.”‘”;

Change:

“SELECT c.categories_id as id, c.parent_id, cd.categories_name as cName, cd2.categories_name as pName
FROM
“.TABLE_CATEGORIES_DESCRIPTION.” cd,
“.TABLE_CATEGORIES.” c
LEFT JOIN “.TABLE_CATEGORIES_DESCRIPTION.” cd2
ON c.parent_id=cd2.categories_id AND cd2.language_id=’”.(int)$this->languages_id.”‘
WHERE c.categories_id=cd.categories_id
AND cd.language_id=’”.(int)$this->languages_id.”‘”;

25
Aug/06
0

Beware of 64 bit Windows XP

Windows XP 64 bit promises to be the operating system of choice for the AMD 64 chip but falls short. The primary problem is that many hardware makers still have not developed 64 bit drivers for their products making it very difficult to get a new system up and running. Therefore, 64 bit XP is still not totally ready for primetime usage by consumers. It is still only for geeks and IT professionals.

Filed under: Software
10
Aug/06
0

Smart applications

We have been trained to deal with applications in a certain way. If we encounter a problem, we call tech support on the phone and explain what had happened. Without fail, tech support would not have enough information in order to answer our questions. It is not their fault since we usually do not have all the information to give them because we did not know what we should remember when the problem occurred. This way of reporting errors is so 90s.

It is time for smart applications. Applications should know what to do when an error occurs. The system knows when the error happened, what the user was doing, what type of data was entered, and which line of code caused the error. With all this information, the system should be the one reporting the error, not the user.

One place where I have seen this implemented is Windows XP. When an error occurs, the OS prompts the user to submit the problem to Microsoft. Web applications should follow suit but they should take it a step further. If someone is making an online order and an error pops up, that error can be sent to customer support and the site can bring up a chat screen to help the customer immediately. All the information had been sent to the support person so the customer does not have to spend time recalling what had happened then relaying the information to customer support. This method of handling errors can make the process a lot more efficient for support and more pleasant for the users.

Filed under: Software