Saturday, March 24, 2012

I have come across the following error:
Mysql Error – SQLSTATE[HY000] [2002] No such file or directory
To solve this, you need to open up your php.ini file (mine was in /etc/). Look for the following line:

Tuesday, March 20, 2012

Sometimes though the jQuery ajax code block is right, it goes to the error condition block. we found no clues on this kind of strange behavior. Why this happened?
Actually, the request successfully reached the destination server, but when it returns the client expects one kind of response, but the server returns in different format. this produces the error.
It was expecting a Json response, but it was getting empty result, that's why it was showing on the error callback though it was a successful call.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide

My Books:

I have come across the following error:
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration
option was found
To solve this problem, we need to add an editor for svn. we add the below line the bash profile file.

My Books:

If we try to submit a form or something using POST method in cross domain, then we face the cross origin error. We can mitigate this error by first setting the access control on the domain address and the access control header.

Saturday, March 17, 2012

I have found this error while working with an opencart shop. I am getting the following error into my error logs.
PHP Fatal error: require_once(): Failed opening required 'system/startup.php' (include_path='.:/usr/share/php:/usr/share/pear') in admin/index.php on line 15
Then I checked the config.php file and found that the path to the system file was wrong, so I placed the correct path to the file. and the error was gone.