Subscribe Favorite

Magento 1.4.1.0 SOAP API Web Service Error

View Comments

Written on June 14, 2010 by Hendy Irawan

Magento 1.4.0.1 SOAP API Web Service Error

Accessing Magento SOAP Web Service API or get the WSDL in Magento Commerce 1.4.1.0, you may get the following error:

Parse error: syntax error, unexpected T_PUBLIC in /…/app/code/core/Mage/Api/Model/Server/Adapter/Soap.php on line 144

(error message is similar with compilation enabled, just inside a flat path)

This happens because of a typo in Magento Soap.php file. On line 133-135, change from:

} else {
 $this->fault('0', 'Unable to load Soap extension on the server');
 return $this;

to the patched version:

} else
 $this->fault('0', 'Unable to load Soap extension on the server');
 return $this;

Just remove an extra opening curly bracket (thanks hoerj!). You’ve now fixed Magento’s SOAP API  XML Web Service bug! :)

Happy API-ing! :-)

Internet Smart CDMA dengan Modem Haier CE100 di Ubuntu Lucid Lynx 10.04

View Comments

Written on June 14, 2010 by Hendy Irawan

Koneksi Internet Smart CDMA dengan Modem Haier CE100 di Ubuntu Linux Lucid Lynx 10.04

Kartu Smart CDMA dan modem Haier CE100 Anda dapat digunakan untuk konek ke Internet di Ubuntu Lucid Lynx 10.04 (Linux).

Berikut rangkuman caranya…

Aplikasi yang akan kita gunakan untuk konek adalah Gnome PPP. Untuk menginstall, klik di sini apt:gnome-ppp atau gunakan Synaptic untuk menginstall package gnome-ppp.

Dari Applications – Accessories, jalankan Terminal. Masukkan perintah berikut:

sudo chgrp dip /etc/ppp/*secrets
sudo chmod g+w /etc/ppp/*secrets

Anda juga harus menambahkan user Anda ke group dip dengan perintah berikut:

sudo adduser ceefour dip

Ganti “ceefour” di atas dengan username Anda sendiri.

Catatan: /etc/ppp/options tidak perlu diubah.

Dari Applications -> Internet, jalankan GNOME PPP lalu konfigurasi sebagai berikut:

Username: smart

Password: smart

Phone number: #777

Port: /dev/ttyUSB0

Modem: USB Modem

Ignore terminal strings (stupid mode): Checked

Put on tray after connect: Checked

Setiap mulai konek ke Internet, lakukan:

  1. Bila icon modem terlihat di desktop, kik kanan icon modem di desktop, lalu klik Eject.
  2. Jalankan Gnome PPP lalu klik Connect.

Anda juga dapat menggunakan kartu CDMA dari mobile operator lain dengan mengganti username, password, dan phone number sesuai ketentuan dari operator.

Selamat ber-Internet!

3 Quick Tips to Speed Up Magento

View Comments

Written on June 11, 2010 by Hendy Irawan

Magento is so slow” is one of the complaints I often hear about this online store web application (the other complaint is “Magento is too complex!”).

Here are some tips to really speed up Magento and make it blazingly fast.

#1: Enable Caching

Since Magento 1.4, Caching is enabled by default. So just don’t turn it off, unless really necessary, i.e. for development purposes.

#2: Use a PHP Accelerator such as APC

Using a PHP Accelerator is now a sane necessity. I personally use APC in my development laptop, and so does my web hosting provider.

If you use Ubuntu, installing APC is very simple:

sudo aptitude install php5-apc

It will be enable automatically.

For Magento installation in your web hosting, make sure to enable APC in php.ini configuration file by adding:

extension = apc.so

#3: Enable Magento Compiler

Magento 1.4 and newer comes with Magento Compiler by default. But many people are not aware of this feature, and that it’s extremely powerful.

To use it:

  1. Make sure you have about 100 MB additional space
  2. Go to Tools -> Compilation
  3. Click “Run Compilation Process”

Make sure Compiler status is “Enabled”.

Now you should notice huge difference in speed of your Magento Commerce installation! :-)

Magento Commerce 1.4.1.0 New Version Released

View Comments

Written on June 11, 2010 by Hendy Irawan

Update now, Magento Commerce Online Store version 1.4.1.0 has been released:

We are excited to announce the availability of Magento CE Version 1.4.1.0 Stable for upgrade and download.Some of the highlights of this release include: Enhanced PayPal integration (more info to follow), Change of Database structure of the Sales module to no longer use EAV, and much more.

To see a full list of features and fixed issues please visit our release notes page. Diff files are available here.

Please Note:  Since Database upgrade from EAV to flat sales might be a very heavy operation and can take up to several hours depending on number of orders and environment, please make sure to test the upgrade on a non-production environment and make sure the max_execution_time PHP option has appropriate large value that can handle this operation. We do NOT recommend upgrading a production installation of Magento directly. Please backup database and all files before upgrading. Please make sure to check file permissions before trying to upgrade through your Magento Connect Manager.We highly recommend disabling Magento cache before upgrading.

Please report all issues with this release in the bug tracker.

Important Note 1: If the Magento Compilation Module is enabled it must be disabled before attempting to upgrade. After upgrading is done, click on “Run Compilation Process” to process and enable it again.

Important Note 2: If you are running Magento version older than 1.4.x in a cluster environment and are using a shared cache (e.g. Memcached) you will now need to also make sure to configure Magento to use Database as the “slow” backend cache.

I was installing a new Magento online store when they’re preparing the release. My installation, using PEAR Downloader technique, failed because of “duplicate channel”. I retried using Magento 1.4.0.1 full distribution and succeeded.

A few hours later Magento Commerce 1.4.1.0 was released. :-) Next time, I should just wait!

Magento 1.4.x Installation Error caused by PHP safe_mode

View Comments

Written on June 11, 2010 by Hendy Irawan

Magento 1.4 Installation Error due to PHP safe_mode

After installing Magento on your shared hosting or dedicated server you may get the following error:

There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: XXXXXXXXXXXXXXX

There are many cases why this might happen. Check out the error details in the directory var/report to see what’s going on.

In my case, though, the report says:

a:5:{i:0;s:250:”Warning: realpath() [<a href='function.realpath'>function.realpath</a>]: SAFE MODE Restriction in effect.  The script whose uid is 2397 is not allowed to access /tmp owned by uid 0  in /home/…/public_html/lib/Zend/Cache/Backend.php on line 185″;i:1;s:3891:”#0 [internal function]: mageCoreErrorHandler(2, ‘realpath() [<a …’, ‘/home/…/…’, 185, Array)

The error is caused by Magento attempting to access directory /tmp in the filesystem, but since PHP is running in safe mode, it is not allowed.

To fix it, you either disable safe_mode (NOT recommended), or patch the file magento/lib/Zend/Cache/Backend/File.php as follows:

Edit:

protected $_options = array(
 'cache_dir' => null,

Replace with:

protected $_options = array(
 'cache_dir' => 'var/tmp',

Then create the directory tmp inside var directory in your Magento installation directory.

Now Magento should be running fine!
Adapted from: Magento 1.4 installation fix

Ubuntu 10.04 Lucid Lynx Released!

View Comments

Written on April 30, 2010 by Hendy Irawan

Ubuntu 10.04 Lucid Lynx - source: http://www.skuggen.com/?p=2150

Ubuntu 10.04 Lucid Lynx has been released by Canonical.

The Ubuntu team is pleased to announce Ubuntu 10.04 LTS (Long-Term Support).

This release incorporates the Desktop Edition and the Server Edition.  The Server Edition can be used on physical servers, on Ubuntu Enterprise Cloud (UEC), and on Amazon’s EC2 public cloud.  Codenamed “Lucid Lynx”, 10.04 LTS continues Ubuntu’s proud tradition of integrating the latest and greatest open source technologies into a high-quality, easy-to-use Linux distribution.

We are also pleased to announce Ubuntu 10.04 Netbook Edition, which is not a long-term support release.

Read more about the features of Ubuntu 10.04 LTS in the following press releases:

Desktop and Netbook editions
http://www.ubuntu.com/news/ubuntu-10.04-desktop-edition

Server edition
http://www.ubuntu.com/news/ubuntu-10.04-server-edition

Ubuntu 10.04 LTS will be supported for three years on desktops and five years on servers.  Ubuntu 10.04 Netbook Edition will be supported for 18 months.

Thanks to the efforts of the global translation community, Ubuntu is
available in 29 languages.  For a list of supported languages and detailed
translation statistics for these and other languages, see:

http://people.ubuntu.com/~dpm/ubuntu-10.04-translation-stats.html

Ubuntu 10.04 LTS is also the basis for new 10.04 releases of Kubuntu,
Xubuntu, Edubuntu, UbuntuStudio, and Mythbuntu:

Kubuntu      http://kubuntu.org/news/10.04-lts-release
Xubuntu      http://xubuntu.org/news/10.04-release
Edubuntu      http://edubuntu.org/news/10.04-release
Mythbuntu      http://mythbuntu.org/10.04/release
Ubuntu Studio      https://wiki.ubuntu.com/UbuntuStudio/10.04release_notes

To Get Ubuntu 10.04 LTS

To download Ubuntu 10.04, or obtain CDs, visit:

http://www.ubuntu.com/getubuntu

Users of Ubuntu 9.10 will be offered an automatic upgrade to 10.04 LTS via Update Manager.  For further information about upgrading, see:

http://www.ubuntu.com/getubuntu/upgrading

Users of Ubuntu 8.04 LTS may wish to wait for 10.04.1 LTS, due in July 2010, before upgrading.

As always, upgrades to the latest version of Ubuntu are entirely free of charge.

We recommend that all users read the release notes, which document caveats and workarounds for known issues.  They are available at:

http://www.ubuntu.com/getubuntu/releasenotes/1004

Find out what’s new in this release with a graphical overview:

http://www.ubuntu.com/getubuntu/releasenotes/1004overview

If you have a question, or if you think you may have found a bug but aren’t sure, try asking on the #ubuntu IRC channel, on the Ubuntu Users mailing list, or on the Ubuntu forums:

#ubuntu on irc.freenode.net
http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
http://www.ubuntuforums.org/

Ubuntu Netbook Edition on ARM

The ARM optimised variant of Ubuntu Netbook Edition comes with a lightweight application selection tailored specifically for ARM deployments, including a web-based office and mail solution and a launcher that works with and without graphics acceleration.

Helping Shape Ubuntu

If you would like to help shape Ubuntu, take a look at the list of ways you can participate at:

http://www.ubuntu.com/community/participate/

About Ubuntu

Ubuntu is a full-featured Linux distribution for desktops, laptops, netbooks and servers, with a fast and easy installation and regular releases.  A
tightly-integrated selection of excellent applications is included, and an incredible variety of add-on software is just a few clicks away.

Professional services including support are available from Canonical and hundreds of other companies around the world.  For more information about support, visit:

http://www.ubuntu.com/support

More Information

You can find out more about Ubuntu and about this release on our website:

http://www.ubuntu.com/

Source: Ubuntu 10.04 LTS Release Announcement

Installing Sample Data on Magento 1.4.0.1

View Comments

Written on April 8, 2010 by Hendy Irawan

Installing Magento E-Commerce with Sample Data seems to have changed a bit since Magento 1.4, at least with Magento version 1.4.0.1.

You shouldn’t just copy the media/catalog folder before, but do the steps in this tutorial in order:

  1. Create database
  2. Load sample DB into database
  3. Extract Magento
  4. Run installation
  5. Ensure you get to the configure database page. Magento will complain about un-writeable directories. chmod or chown these folders (app/etc, var, and media)
  6. Only AFTER you get to the “configure database” page, copy the “media/catalog” from Magento sample data distribution into your magento media folder. Make sure to redo  chmod or chown on media.
  7. During configure, enable rewrites. (should be enabled on ALL Magento installations for basic SEO support)
  8. After installation, edit .htaccess and edit RewriteBase if you’re not on root URI

If you do step #6 before installation, you’ll never reach step #5 !

This is probably a bug in Magento, but not a very serious issue.

How to Install Magento Commerce 1.4

View Comments

Written on February 20, 2010 by Hendy Irawan

Magento Commerce 1.4 new version has been released! Magento is an open source eCommerce software.

New Features in Magento Commerce 1.4

  • Implemented 3D Secure credit card validation (Visa and Mastercard)
  • Full reimplementation of PayPal modules, includes lot of new functionality and numerous bugfixes
  • Full review of frontend themes, introduced design cross-package fallback and the base/default theme. Includes SEO and accessibility enhancements. Changes are oriented to dramatically reduce themes maintenance.
  • Added ability to define arbitrary cache backends
  • Optimized performance of sales reports, added new sales report types
  • Added image/media uploader/browser, that can browse entire media folder
  • Optimized performance of search indexer
  • Made order processing workflow more informative and severe
  • Reimplemented 404 and report pages, introduced 503 page, specifically for maintenance purposes
  • Improved javascript files merging, added CSS files merging
  • Added Widgets functionality, added several widgets out of the box
  • Added Custom Variables functionality
  • Added lot of new System Configuration options
  • Improved order placement reliability
  • Added WYSIWYG for CMS and Catalog
  • Optimized cache initialization during startup
  • Optimized export from grids in admin area
  • Improved tax and discount totals calculation
  • Replaced admin notification flash popup into a simple HTML overlay
  • Implemented product and category URLs per store view
  • Added ability to configure entry point using virtualhost environment configuration, rather than creating another physical entry point
  • Optimized simple product view without custom options

Tutorial: How to Install Magento Commerce 1.4

  1. Download Magento Commerce (you may need to register).
  2. Install Apache, PHP, MySQL. If you’re on Windows, download XAMPP here.
  3. Using MySQL admin, create a database for Magento.
  4. Unpack Magento to your Apache document root directory.
  5. Refer to Magento Installation Guide for more information.

Koneksi Internet Smart CDMA dengan Haier CE100 di Ubuntu 9.10

View Comments

Written on January 26, 2010 by Hendy Irawan

UPDATE: Yang baru di sini… Cara konek Internet Smart CDMA via Modem Haier CE100 di Ubuntu Lucid Lynx 10.04.

Apabila Anda mempunyai kartu Smart CDMA dan modem Haier CE100, Anda dapat menggunakannya untuk konek ke Internet di Ubuntu Karmic Koala 9.10.

Berikut rangkuman caranya. Detail langkah-langkahnya akan saya bahas di artikel selanjutnya.

Aplikasi yang akan kita gunakan untuk konek adalah Gnome PPP. Untuk menginstall, klik di sini apt:gnome-ppp atau Gunakan Synaptic untuk menginstall package gnome-ppp.

Jalankan Terminal, lalu masukkan perintah berikut:

sudo chgrp dip /etc/ppp/*secrets

sudo chmod g+w /etc/ppp/*secrets

Anda juga harus menambahkan user Anda ke group dip dengan perintah berikut:

sudo adduser ceefour dip

Ganti “ceefour” dengan username Anda sendiri.

Catatan: /etc/ppp/options tidak perlu diubah.

Setiap mulai konek ke Internet, lakukan:

  1. Klik kanan modem di desktop, lalu Eject
  2. Gunakan Terminal untuk menjalankan perintah:
    sudo modprobe -v usbserial vendor=0x201e product=0x2009
  3. Jalankan Gnome PPP, Konfigurasi sebagai berikut:Username: smart

    Password: smart

    Phone number: #777

    Port: /dev/ttyUSB0

    Modem: USB Modem

    Ignore terminal strings (stupid mode): Checked

    Put on tray after connect: Checked

Anda juga dapat menggunakan kartu CDMA dari mobile operator lain dengan mengganti username, password, dan phone number sesuai ketentuan dari operator.

Selamat ber-Internet!

Advanced Techniques

Autoeject:

  1. make updated fdi & remove fdi cache
  2. add udev rule

Faster speed + no modprobe:

  1. recompile option.ko or get precompiled option.ko

Menginstall Tampilan Bahasa Indonesia di Magento

View Comments

Written on November 4, 2009 by Hendy Irawan


Magento adalah aplikasi e-commerce (disebut juga online store atau shopping cart) berbasis web dengan fasilitas sangat lengkap.

Tampilan Magento dapat diterjemahkan ke bahasa lain selain bahasa Inggris menggunakan Language Pack. Berikut ini cara menginstall dukungan bahasa Indonesia.

Catatan: Komputer/server Anda harus terkoneksi ke Internet saat melakukan langkah-langkah berikut.

Dapatkan Extension Key

  1. Browse ke Indonesian Language Pack for Magento.

  2. Klik tab “Releases”.
    Pada versi terbaru (paling atas), klik tombol “Get Extension Key”.
    Centang “By checking this box I agree to the extension license agreement“, lalu klik lagi tombol “Get Extension Key”.
  3. Pilih extension key yang muncul, catat atau copy ke Clipboard. Contoh extension key untuk versi 1.2.0.0.2 adalah:

    magento-community/Locale_Mage_community_id_ID-1.2.0.0.2

Install Language Pack Bahasa Indonesia

  1. Dari admin Magento, klik menu System -> Magento Connect -> Magento Connect Manager.

  2. Di bagian “Install New Extensions”, di kotak “Paste extension key to install”, masukkan extension key yang Anda catat di langkah 4, lalu klik tombol “Install”.

Aktifkan Tampilan Bahasa Indonesia

  1. Dari admin Magento, klik menu System -> Configuration.

  2. Pastikan Anda berada di halaman General -> General.
    Di bagian Locale options -> Locale, pilih “Bahasa Indonesia”. Lalu klik tombol “Save Config”.

Refresh Cache

Apabila cache Magento sedang aktif, perubahan Anda tidak langsung aktif. Langkah-langkah Refresh Cache sebagai berikut:

  1. Dari admin Magento, klik menu System -> Cache Management.

  2. Di bagian Cache Control -> All Cache, pilih “Refresh”.

  3. Klik tombol “Save cache settings”.

Silakan cek tampilan aplikasi web Magento Anda yang baru. :-)

Saat ini, language pack bahasa Indonesia masih belum terlalu lengkap. Mau membantu? Silakan bergabung di forum Language Pack Indonesia untuk Magento.