Posts

Showing posts with the label Bug Fix

[Solution] Wordpress "An error occurred in the upload. Please try again later" error.

Image
Got this weird " An error occurred in the upload. Please try again later " error whenever I try to do media uploads in Wordpress. I've checked the folder permission, its correct. In fact, the files were uploaded successfully to wp-content > upload folder. I've tried all kinds of suggestion in forums (disable all plugins, enable them one by one... etc), but still no avail. In the end, I decided to do a "Re-install", and that... worked! And all the uploaded files were intact. ----- Didn't dig deep into finding out what causes the issue. But a wild guess would be something to do with the PHP codes. Because the uploaded files were stored in DB, although the upload status indicated "failed". Most likely something to do with the permission issue highlighted in this blog post .

[Eclipse] Zend PDT installation error

Got this error while trying to install Zend PDT plugin for Eclipse: An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,org.zend.php.debug.debugger,5.3.18.v20110322 No repository found containing: osgi.bundle,org.zend.php.debug.debugger.win32.x86,5.3.18.v20110322 No repository found containing: org.eclipse.update.feature,org.zend.php.debug_feature,5.3.18.v20110322 Googled around and found the workaround to solve this. Apparently, we just need to get the features jar, the plugin jar and the platform specific plugin. And all these are available on Zend download sites. Missing files - Feature Download org.zend.php.debug_feature_<required-version> from  http://downloads.zend.com/pdt/features/ Unzip the feature jar into "/features" folder of eclipse folder. Missing files - Plugins D...

[Magento] Default Search / Mini Search returns 0 results

Was debugging this weird problem with a client's Magento 1.5.1.0 site. The Mini Search (and the default search - http://example.com/catalogsearch/result/?q=searchTerm) is not returning the correct result. Surprisingly the advanced search is working fine. After trying out all sort of methods, finding and editing the .phtml, .xml files. I found out that its one of the core files that causes this issue. Solution Open up app/code/core/Mage/CatalogSearch/Block/Result.php Uncomment line 149 and 150 //        $this->getListBlock() //           ->setCollection($this->_getProductCollection()); Then change line 172 $this->_productCollection = $this->getListBlock()->getLoadedProductCollection(); to $this->_productCollection = Mage::getSingleton('catalogsearch/layer')->getProductCollection(); That solves the search problem. :)

Acajoom Installation Error Fix

Image
Was upgrading Acajoom GPL 3.2.7  to Acajoom 5.2.0  and encountered the following errors. JInstaller::install: SQL Error. DB function failed with error number 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 35 SQL=CREATE TABLE IF NOT EXISTS `z1ck_acajoom_lists` ( `id` int(10) NOT NULL auto_increment, `list_name` varchar(101) NOT NULL default '', `list_desc` text NOT NULL, `list_type` tinyint(2) NOT NULL default '0', `sendername` varchar(64) NOT NULL default '', `senderemail` varchar(64) NOT NULL default '', `bounceadres` varchar(64) NOT NULL default '', `layout` text NOT NULL, `template` int(9) NOT NULL default '0', `subscribemessage` text NOT NULL, `unsubscribemessage` text NOT NULL, `unsubscribesend` tinyint(1) NOT NULL default '1', `auto_add` tinyint(1) NOT NULL default '0', `user_choose` tinyin...

[Virtuemart] Error: $("vmlp_search_str").addEvent is not a function

Got this error while working on a Joomla 1.5.18, Virtuemart 1.1.4 website. Error: $("vmlp_search_str").addEvent is not a function Source File: http://www.tracyeinny.com.sg/staging2/modules/mod_vm_live_product/js/vmliveproduct.js Line: 110 After debugging for a while. I found out that apparently there are conflicts between jQuery and Mootools (or other scripts). To solve this, just need to add in the following scripts after jQuery import. <script type="text/javascript"> jQuery.noConflict(); </script> Hope that helps those who new to HTML, Javascript.