Category Archives: Development

Anything related to Programming and Program Development. Shaping our latest technologies.


So I had this problem with php not giving me any errors.  I went through my php.ini file looking for what other people posted to change.

I tried this in my php.ini

and added this to my php script:

Still i run my php and nothing came up.  Finally I found this in the php.ini

Track errors was off, now that it’s on  I see and can debug my php scrpits.

Please comment if this helps anyone.

Magento – Adding Image Rollerover Effects to Product Lists

What I’m trying to accomlish is adding a roller over effect to the images.  I want the image to pop up in another layer on rollover.

As always, with any editing of any files that currently already work, make a BACKUP!

I like to copy and paste the file, then rename it .backup

First I add the code to the css file:

Then I want to edit my template file:

Find the line (about line 100-105) that contains:

add the php signs around that and comment it out, then add my following lines:

The image resize function all depends on how you have manento setup and the cache, but this should work.  Feel free leave comments on how this works.

Removing All from Show All Per Page on Magento’s front end


Searching low and high, trying every search string i can think of in google. I’ve found nothing. Posting on Magento Commerce’s website i got a response with the answer. Here is the answer:

The file you are looking for is: Mage/Catalog/Block/Product/List/Toolbar.php

In this file at line 530 function getAvailableLimit()

public function getAvailableLimit()
if ($this->getCurrentMode() == 'list') {
if (isset($this->_availableLimit['list'])) {
return $this->_availableLimit['list'];
$perPageValues = (string)Mage::getStoreConfig('catalog/frontend/list_per_page_values');
$perPageValues = explode(',', $perPageValues);
$perPageValues = array_combine($perPageValues, $perPageValues);
return ($perPageValues /*+ array('all'=>$this->__('All'))*/);
elseif ($this->getCurrentMode() == 'grid') {
if (isset($this->_availableLimit['grid'])) {
return $this->_availableLimit['grid'];
$perPageValues = (string)Mage::getStoreConfig('catalog/frontend/grid_per_page_values');
$perPageValues = explode(',', $perPageValues);
$perPageValues = array_combine($perPageValues, $perPageValues);
return ($perPageValues /*+ array('all'=>$this->__('All'))*/);
return parent::getAvailableLimit();

as you can see the

return ($perPageValues /*+ array('all'=>$this->__('All'))*/);

I comment /*+ array(’all’=>$this->__(’All’))*/
now the “All” show anymore ….

Or course you should not change the core but sometime it’s easier then build an override
for it.

You should test it on a development store before !!!!

Let me know if you have any problem

Installing MCrypt in php

1 way I’ve found of installing mcrypt, to tell you the truth I have no idea how it works, but it worked for me. Please comment and let me know how it works for you.

From root SSH (putty)

run commands as follows:

yum install mcrypt*

yum install php-mcrypt*

Your Magento folder does not have sufficient write permissions


Error: Please check for sufficient write file permissions

Your Magento folder does not have sufficient write permissions, which this web based downloader requires.

If you wish to proceed downloading Magento packages online, please set all Magento folders to have writable permission for the web server user (example: apache) and press the “Refresh” button to try again.

To learn more about setting write permissions, please visit the Magento community site for further details.

Ever seen the above error message?  I have.  Solution’s I’ve found for this are as follows:

I installed magento through SSH as root.  Now the problem with this is all the folders magento creates is now owned by root, so apache or magento cannot change them.  Simple fix.  From what I read off of is somebody changed the owner of the downloader folder.   I tried this, it didn’t fix my problem.  Feel free to try this way though.
chown apache downloader/ -hR

I took this a step further since I was still having the same problem.  I did this to the entire website directory

chown apache www/ -hR

Let me know if this works for you.

FTP Images

Learning by trial and error.  When using FTP always transfer images using BINARY.  Transferring images in ASCII can cause images to pixelate or become corrupt.  Just a tip from one FTP user to another.

Plesk webmail error

Ever see this error while in Plesk:

Failed setting of domain parameters: Cannot change Webmail on domain: webmail

So in between making domains in my plesk, i decided to update plesk core files.  Well it didn’t tell me there was a file dependency.  So I updated core files, tried to make another domain and I kept getting this error.  After searching a bit, and concluding nothing from these searches i went back, deleted all my domains and accounts and started creating new domains.  Which still gave me this error.

After sifting through plesk’s interface a while i realized the Latest Release Dates on Base packages of Plesk and Horde webmail support were the same.  I didn’t have the newest version of Horde webmail support installed.  So I installed the new version of Horde webmail support and all was well.