Tuesday, 23 July 2013

Magento: Cannot add new attribute option values or delete after adding too many values

I've been trying different fixes for the issue mentioned but the fix below is the best. To fix this issue, do the following in php.ini:

memory_limit = 256M
max_execution_time = 3600
max_input_time = 600
post_max_size = 512M
max_input_vars = 100000
suhosin.post.max_vars = 100000
suhosin.request.max_vars = 100000

You may add some lines if they don't exist yet.

In CentOS, php.ini can be found in /usr/local/lib/php.ini.
In Ubuntu, it's residing in the following :
/etc/php5/apache2/php.ini
/etc/php5/cgi/php.ini
/etc/php5/cli/php.ini

After modifying php.ini, please don't forget to restart Apache.

That's all!

Wednesday, 17 July 2013

Ubuntu: Extract tar.bz2

To untar bz2 file, do this
tar jxvf firefox-3.5.tar.bz2

If it does not work, you probably need to install bzip2,
sudo apt-get install bzip2

Tuesday, 16 July 2013

Magento : Product CSV import Notice: unserialize(): Error at offset 925 of 1057 bytes in /var/www/magento/app/code/core/Mage/Dataflow/Model/Batch/Abstract.php on line 66

If ever you're getting an error like this when importing products CSV on Magento, 

Notice: unserialize(): Error at offset 925 of 1057 bytes in /var/www/magento/app/code/core/Mage/Dataflow/Model/Batch/Abstract.php on line 66

Make sure to fix special characters on the description or short_description column and other columns. For some reason, Magento does not accept those special characters like ™, ®, &, £, and a lot more.

Hope that helps...