Posts Tagged ‘php’

Having Strange Errors Utilizing Gzip in WordPress 2.9 and 2.9.1?

For­tu­nately your not alone. A recent bug fix was just released which addresses an error which is received while updat­ing the Word­Press core, as well as Word­Press plu­g­ins. This error typ­i­cally effects http.php, located at wp-includes/http.php, and looks sim­i­lar to the code listed below.

(more...)

Utilizing GZip with WordPress, Finally a Fast Blog...

The first half of this arti­cle will be taken directly from our pre­vi­ous post, as the need for a sin­gle default php.ini is nec­es­sary to con­fig­ure gzip. If read­ing our Magento post is what brought you to the site, and you’ve already con­fig­ured your default php.ini, than skip to the .htac­cess por­tion of the post. Oth­er­wise, were off...

(more...)

The Correct Way To Set Up gzip with Magento

We wrote this arti­cle in response to post­ings offer­ing advice to users of Magento, an open source ecom­merce sys­tem. The advice is being given with good inten­tions, and the intent is only to assist their fel­low Magento users. But the advice being give may actu­ally have the poten­tial cause harm to the users site, or at the least a good deal of down time. The advice being offered is to help speed up Magento by enabling a server side caching sys­tem called gzip. What peo­ple don’t real­ize is that their being told to enable two sep­a­rate caching sys­tems. These two sys­tems tend not to play well together, and could cause harm to your install. While most peo­ple see pos­i­tive results, there are a rare few see­ing server side errors, data­base errors, and are stumped as to why.

(more...)

Enabling HTML in Magento Terms and Conditions

We’ve recently been work­ing with a new E-commerce plat­form called Magento. Its a very pow­er­ful open source prod­uct, with tons of fea­tures, and open source good­ness. We recently ran into an issue where we needed to enable HTML con­tent in the “Terms and Con­di­tions”. The fix was actu­ally quite simple.

(more...)

How Do I Specify a Class For IMG Inserted With Visual Editor...

SantasLittleHelper

The fol­low­ing is in response to a ques­tion on WordPress.org. We’ve become extremely pro­fi­cient with word­press in the past few years, and we’re always com­ing up with inno­v­a­tive ways of using this amaz­ing prod­uct. We try to post most all our fixes, hacks, and tricks, in the hopes that it will prove use­ful to some­one. Hope­fully this will be no different.

(more...)

WordPress, Fatal error: Allowed memory size of 33554432 bytes exhausted

Danger Will Robinson
Dur­ing a rou­tine update to a Word­Press site we received the fol­low­ing error: Fatal error: Allowed mem­ory size of 33554432 bytes exhausted (tried to allo­cate 7680 bytes) in /home/website/public_html/wp-includes/functions.php on line 1342 Scary stuff, but no need to panic. Chances are your Word­Press install is quite well used with lots pages, posts, and plu­g­ins. First off, don’t start dis­abling plu­g­ins and hack­ing code. Fol­low these sim­ple steps and you’ll be updated in no time.

(more...)

My WordPress Blog is Sending Mail With My Webhosts Address

Here’s our solu­tion. Be sure your work­ing with the most up to date file. Local copies can become out­dated with online updates. Edit the fol­low­ing file: wordpress-root-directory/wp-includes/class-phpmailer.php

On line 75 (valid on Word­Press 2.7.1 - 2.8.7) and edit, “root@localhost.com” to the address you’de like to appear in admin­is­tra­tive emails, ie. user@yourdomain.com. You’ll also want to change your From­Name, on line 81, and your email address on line 88. Sim­ply fill the empty quotes.

71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
  /**
   * Sets the From email address for the message.
   * @var string
   */
  var $From              = 'root@localhost';
 
  /**
   * Sets the From name of the message.
   * @var string
   */
  var $FromName          = 'Root User';
 
  /**
   * Sets the Sender email (Return-Path) of the message.  If not empty,
   * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.
   * @var string
   */
  var $Sender            = '';

And that’s it. Your sever will now send admin­is­tra­tive Emails from your cho­sen name, and address. Let us know if this was helpful.