WordPress memory and PHP.ini problems?

December 8th, 2012

Had some issues with the ‘fatal error’ and ‘Allowed memory size of 33554432 bytes exhausted’ on wordpress when I’ve been installing various plugins. I tried upping the memory limit in the config.php file but it didn’t make a difference.

My hosting provider gave me some tips so I added a php.ini file to my Root directory. It worked!

This is what i added.

This goes in the top line of your .htaccess file (changing ‘yourusername’ to yours)..

suPHP_ConfigPath /home/yourusername/public_html

and then add these lines to a php.ini file using notepad or something similar (anything after the ; is ignored and can be used as reference text).

memory_limit = 64M ; anything up to 128M
upload_max_filesize = 20M ; this can be increased if required
post_max_size = 20M ; this can be increased if required

Categories | WordPress

WordPress Jquery PopUpWindow

February 27th, 2010

Being on a roll i decided to find the best option for a Popup window for WordPress. As you may know, at this time, there isn’t much choice in the WordPress plugin world for Pop up windows. The only one i found was the plugin ‘Simple Popup Plugin’ but if you have multiple popups on a page with different sizes it’s a problem. Not keen on slowing down WordPress with bulky plugins doing menial tasks so i went on a mission to find a better option.

Luckily I stumbled upon a good piece Jquery code with all the options you’ll ever want called PopUpWindow (centerBrowser pop up!).

To show multiple examples and download the latest version go here. (top 50, left 50 pop up!)

Categories | Development, WordPress

Embedding flash with swfobject.js

February 26th, 2010

Have been wanting to embed my flash projects into my posts for some time, without the need for popups or unnecessary plugins, so had a good search for the best solution. i found the swfobject.js was the best.
Basically put your swfobject.js on your site and make sure you code it like this…

<script type="text/javascript" src="http://www.dalesullivan.com/swfobject.js"></script></p>
<div id="cont11">You need the flash player!</div>
<p><script type="text/javascript"><!--
var so = new SWFObject("http://www.dalesullivan.com/dale-thermometer2.swf", "me11", "220", "310", "7", "#ffffff");  so.write("cont11"); //--></script>

Categories | Development, WordPress

Back to top