Magento Woes!


We are currently designing a few E-commerce based websites using Magento! Installed through softaculous

Installation went fine and the software is really good although it can be a bit of a fiddle to find your way around

Anyway Aside from that we can across a few very puzzling Errors

Each time we tested it out by adding items in the checkout if you go checking out it returns with error 500!

Cpanel Log showed “client Denied access by Server” Some help that was!

So then you can take a look at the actual Magento error log itself located in your magento directory called error_log

this showed

[05-Nov-2011 14:14:42] PHP Fatal error:  Allowed memory size of 42991616 bytes exhausted (tried to allocate 7680 bytes) in /home/nasheedc/public_html/portal/app/code/core/Mage/Directory/Model/Resou$
[05-Nov-2011 14:14:47] PHP Fatal error:  Allowed memory size of 42991616 bytes exhausted (tried to allocate 491520 bytes) in /home/nasheedc/public_html/portal/lib/Zend/Date.php on line 1591

Creating a PHP INI file and sticking it in root of magento is the way to go (the file code is below whcih you can use)

However when uploading it we came across the following error message

There has been an error processing your request
Exception printing is disabled by default for security reasons

Error log record number: XXXXXXXXXXXXXXX


PDO Extension not Loaded Error

NOW what you need to do is create a php.ini file and copy the following down upload it to root of magento installation

; This file is for CGI/FastCGI installations.
; Try copying it to php5.ini, if it doesn't work

; adjust memory limit

memory_limit = 64M

max_execution_time = 18000

; disable magic quotes for php request vars

magic_quotes_gpc = off

; disable automatic session start
; before autoload was initialized

flag session.auto_start = off

; enable resulting html compression

zlib.output_compression = on

; disable user agent verification to not break multiple image upload

suhosin.session.cryptua = off

; turn off compatibility with PHP4 when dealing with objects
zend.ze1_compatibility_mode = off

; PHP for some reason ignores this setting in system php.ini 
; and disables mcrypt if this line is missing in local php.ini


The Key to this file is to add the 3 Extension code about in your PHP File and Voila! it worked Alhumdulillah!