Make sure file and directory permissions are set correctly for a magento installation - check here http://www.magentocommerce.com/wiki/groups/227/resetting_file_permissions
Posts Tagged ‘magento’
Magento file and directory permissions
Tuesday, November 29th, 2011Magento - Call to undefined method Mage_Adminhtml_Block_Widget::getrowurl()
Wednesday, November 23rd, 2011This error occurred when navigating to ‘Catalog’ -> ‘Manage Categories’. The page did not display correctly and this error could be found in the page by using ‘view source’.
A temporary ‘hack’ fix was found here: http://www.naveenos.com/2011/01/fatal-error-call-to-undefined-method-mage_adminhtml_block_widgetgetrowurl-in-magneto-1-4-2.html
How to install magento extensions
Thursday, November 3rd, 2011How to install a magento extension using FTP or SSH:
http://www.aschroder.com/2010/05/installing-a-magento-extension-manually-via-ftp-or-ssh/
How to install using Magento Connect Manager or PEAR:
http://blog.magikcommerce.com/how-to-install-magento-extensions-magento-extension-installation-guide/
Running magento 1.3.x on PHP 5.3.x
Friday, October 21st, 2011If you hit the error message - Unknown error (8192): Function split() is deprecated in /app/code/core/….
take a look at this…
http://www.geekieblog.com/2011/03/magento-1-3-x-environment-won%E2%80%99t-run-on-php-5-3/
Magento database maintenance - large db tables
Wednesday, October 19th, 2011If you’re noticing your magento site database has grown to become very large take a look at this article on magento database maintenance…
Magento - Setting free delivery by product or category
Friday, September 16th, 2011http://www.ankitsharma.info/blog/magento-free-shipping-on-specific-category-product
Magento - Delete test orders
Friday, September 16th, 2011NOTE: the script contains a table name prefix ‘#_’ which must be either changed or removed.
Magento < 1.5 use:
http://www.eliasinteractive.com/blog/magento-ecommerce-how-to-reset-all-test-order-information-and-set-unique-prefix-for-orders-invoices-shipments-and-credit-memos/
Magento >= 1.5 use:
http://www.myscienceisbetter.info/delete-test-orders-in-magento-1-5-x.html
Once you’ve deleted your test orders and publish your live website you might find you get the error PayPal gateway has rejected request. Payment has already been made for this InvoiceID (#10412: Duplicate invoice) when trying to checkout live orders with paypal. This is because your paypal account has already processed a test order with this order id once and will not accept a second order with the same order no.
Here you you have two options:
1) change the padding of invoice numbers so your new invoice numbers won’t conflict with the old deleted ones. You can do this by changing the setting in your database e.g.
update `eav_entity_type` set `increment_pad_length`=10 where `entity_type_code`=’order’;
2) you can change the starting invoice number to a number greater than the last test order number to avoid the conflict - see http://www.magentocommerce.com/boards/viewthread/10985/ for more information
Migrating or moving a magento site to a new server or domain
Tuesday, February 16th, 2010OK, the problem…
There’s a nice shiny, fully-working Magento site and it’s running like a dream. The only thing is it’s in the wrong place - maybe on a development server or an old server that’s fast running out of space! You need to get that site out of there and fast!!
While looking into this I found a couple of suggested solutions - and some of them, although I’ve no reason to doubt they work were a little drawn out. Here’s what worked for us and you’ll be glad to hear it’s the short and sweet option…
Create an sql script of the original site’s database that contains both the structure and data
Add the following code to the START of the sql script…
SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT; SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS; SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION; SET NAMES utf8; SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO'; SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0;
Add the following to the END of the sql script…
SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT; SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS; SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION; SET SQL_NOTES=@OLD_SQL_NOTES;
The sql script is most likely to be several megabytes in size so zip it up into a zip-file - this will mean you can later use a tool like phpMyAdmin to import the script without hitting the 2 meg file size limit for file uploads.
Create the new domain and an empty database
Copy ALL the site’s file over to the new domain and ‘chown’ files as required
Make the following directories writable by the web server user:
- app/etc/
- var/
- media/
and for MagentoConnect:
- /<magento-path>/
- /<magento-path>/downloader
- /<magento-path>/downloader/config.ini
- /<magento-path>/downloader/pearlib/config.ini
- /<magento-path>/downloader/pearlib/pear.ini
- /<magento-path>/downloader/pearlib/php
If the database details have changed, update them in app/etc/local.xml
Run the (zipped) sql script on the new empty database
In the database table ‘core_config_data’ change the two record fields ‘/web/unsecure/base_url’ and ‘/web/secure/base_url’ to the new domain name if it has changed
Finally, delete the files in the following directories to manually clear the cache:
- /<magento-path>/downloader/pearlib/cache/*
- /<magento-path>/downloader/pearlib/download/*
- /<magento-path>/var/cache/*
- /<magento-path>/var/session/*
- /<magento-path>/var/report/*
- /<magento-path>/var/tmp/*