Author Archives: admin
Fresh Magento 1.7.0.2 install and get an internal server 500 error
I did a fresh Magento 1.7.0.2 install and I get an internal server 500 error.
After running the magento-cleanup tool and disabling the htaccess-file it worked correctly.
When I enable the htacces-file I get the error again so I concluded it’s something in or with the htaccess-file.
It’s the default 1.7.0.2 htaccess file and even chmodding it to 777 didn’t do the trick.
hereby the solution:
>>>
IMPORTANT! Use the File Manager in the Control Panel to edit the .htaccess file that comes with the default set of Magento files. You need to comment out the following two lines (144 and 145) by inserting the # symbol in front of each line:
#RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
#RewriteRule .* – [L,R=405]
ISCL Online Launch
Congretulation for ISCL Online is launched!
http://shop.iscl.com.hk/
Locally established in Hong Kong in 1962, Ichikawa Sangyo Co. Ltd (ISCL) is engaged in the wholesaling and retailing of active lifestyle products of Japanese sporting brands.
Since its beginning as a trading company, ISCL has taken advantage of its unique knowledge of business cultures of Japan, and has effectively communicated the distribution policies of suppliers to its good effects in Hong Kong. It also strives to meet the ever-changing market demands by feeding timely news of local needs back to the suppliers.
With the introduction of ‘Mizuno’ brand into the region in 1975, as the sole distributor in Hong Kong, ISCL has in effect helped in pioneering and development of local sporting industry such as in the fields of baseball, softball, volleyball, golf, running & athletic.
With the pool of knowledge and experience in the fields of sports and sport-fashion markets, ISCL pledges to offer quality distribution policies of the suppliers, and to keep on contributing to Hong Kong society in the development of sports and sport-fashion industries.
We wish ISCL has a successful in their new business
How to Optimize Magento for Faster Ecommerce
Magento is a very power and flexible open source ecommerce solution. As you may know, however, with great power comes great responsibility. Magento can be a lot for a server to handle if you have an active online business, but with some good optimization, you can have fast ecommerce and an efficient use of your newfound power.
One of the main optimizations you can perform is to modify the .htaccess file included with Magento.
Compression
Use the Apache mod_deflate module to compress any text, javascript, or css information. All modern browsers can receive and inflate compressed files. These lines should already be present in the file. Simply uncomment the ones you want to use by removing the “#” symbol.
<IfModule mod_deflate.c>
############################################
## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip
# Insert filter on all content
SetOutputFilter DEFLATE
# Insert filter on selected content types only
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
# Netscape 4.x has some problems…
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don’t compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don’t deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>
Merge CSS and JS Files
This will reduce the amount of HTTP requests that your web server will have to answer when the CSS and javascript files are combined.
- Login to Mangento’s administration and find System > Configuration > Developer
- Find “Javascript Settings”, and choose “Yes” for “Merge Javascript Files”
- For “CSS Settings”, choose “Yes” for “Merge CSS Files”
- Clear Magento’s cache
Enable Magento Compiler
You can reduce file system reads (disk access) by enabling Mangento’s Mage_Compiler. It will copy several highly-used files into a single directory and also cache the most frequently-used pages. To do this, login to Magento admin and find System > Tools > Compilation. Then select “Run Compilation Process”.
There are many other optimizations you can perform for Mangento.
Bonbuyshop is launched
Stop wordpress adding
tag
Been swearing at WordPress this afternoon…
I’ve been trying to transfer an html form, which I had working perfectly on a static html page, onto a WordPress page. WordPress insisted on adding multiple <br/> tags where I didn’t want them. Mutter.
Eventually, after much searching, I identified a parameter within wp-includes/formatting.php, which allows you to disable this irritating feature. If you open formatting.php and find the function wpautop you’ll see this:
function wpautop($pee, $br = 1)
Change this to:
function wpautop($pee, $br = 0)
Save the file and publish it back to your server and that’s it. Works fine in WP2.8.
Note: WP 2.8.3 overwrites formatting.php so this change needs redoing.
Use Custom Rate for Shipping Cost in Magento
Install this module
magento-community/Indust_CustomShippingRate
After, there is one additional box for customized rate in the order creation.
To shutdown pg_ctl immediately
Sometimes it doesn’t listen to the command pg_ctl stop, the following option can be used:
pg_ctl stop -m fast
or
pg_ctl stop -m immediate
Command to vacuum pg_sql database
To improve the performance of pg_sql database, it is necessary to vacuum regularly. Here is the command
vacuum full analyze sys_quest_list
Reverse the product list in Magento, to show newest product first
update the file
app/design/frontend/default/megastore2/template/catalog/product/list/toolbar.phtml
change the “asc” to “desc”
done
http://www.magentocommerce.com/boards/viewthread/1176/P75/#t203693