Fixing WordPress error “Allowed memory size of…”

I’ve just updated my WordPress to version 3.2, when update has been finished a page with error code 500 was displayed. In log file had many entry of Fatal error: Allowed memory size of 33554432 bytes exhausted

To know if it your problem too, edit file error_log in wp-admin directory and and take a look at last rows.

The following process fixed this for me, but your host server should allow sizing PHP memory at runtime.

Open and edit file wp-settings.php at root of WordPress directory and put the row bellow after “<?php”:

define('WP_MEMORY_LIMIT', '64M');

Here I’ve set up to 64MB to PHP, but how to know amount of MB to set up?

In error message, the long number means amount of bytes allocated to PHP: “Fatal error: Allowed memory size of 33554432…”. This number represents 32MB (do this calculation to converts byte in megabytes 33554432 / (1024^2) = 32).

Just set a number greater than the result in line above.

How is fight between Firefox, Internet Explorer and Google Chrome?

I’ve was analysing blog access chart and, curiously, I see how are the most usable browsers.

The fight between Firefox and Internet Explorer is old and, little time ago, Microsoft’s browser lost first position to Firefox. Now, with Google Chrome more stable and accessible, the three firsts position may be changed again.

In one year of interval, this blog had 35,738 visits, where the Firefox was most usable browser, responsible for 14,705 (41.75%) of access, distantly followed by Internet Explorer (10,542 access, or 29.5%) and Google Chrome (8,679 access, or 24.29%). Opera came in 4th and Safari came in 5th.

Below the chart generated by Google Analytics with complete list of browsers and amount of access:

Chart generated by Google Analytics between 06/07/2010 and 06/07/2011 (click to zoom)

Will be a matter of time to Internet Explorer to leave second position to Google Chrome

Enabling Windows Media Player bar in Windows 7 taskbar

Unfortunately Windows Media Player 12,  already installed with Windows 7, has no support to minimize as toolbar in the taskbar. To enable this bar, just need copy a file from Windows Media Player for Windows Vista. Now I will show how do this:

1. You will need of a dll called wmpband.dll, that come with Windows Vista. If you not own it, download here (2590) (this ZIP contains 32 and 64 bits versions);

2. Copy the file (32 or 64 bits, depends your Windows) to Windows Media Players installation directory, in my case “C:\Program Files\Windows Media Player“;

3. Now check if “Windows Media Player Network Sharing Service service is stopped. To do this, click in Start and, in the search box, type “Services” and click in the respective list item. Look for service and stop it, if running.

4. Open the Command Prompt with administrator privileges. Star > All Programs > Accessories > right click in “Command Prompt” and click “Run as Administrator”.

5. Type command regsvr32C:\Program Files\Windows Media Player\wmpband.dll“, replace the path of the directory where the dll is.

6. Open Windows Media Player and minimize it. Then right click in the taskbar > Toolbars > select Windows Media Player.

6. Abra o Windows Media Player e então o minimize-o. Depois clique com o botão direito na barra de tarefas > Barra de Ferramentas > Windows Media Player.

7. And voilá.

Microsoft should have kept this feature natively, I know people who use this resource, I inclusive.


Amarok’s playlist stop after play one music

Recently I had a problem like others Amarok’s 2.1.1 users: It play only one music and stop.

To resolve this: Close Amarok, delete the file ~/.kde/share/apps/amarok/current.xspf and then restart Amarok.

Least worked to me and I hope that works for you too! 😉

Until next!!

Error “…faulting module php5ts.dll…” in Apache with PHP and MySQL running on Windows Vista

For someone, like I, was suffering with “Faulting application httpd.exe, version, time stamp 0x493f5d44, faulting module php5ts.dll…” error, try copy the file libmysql.dll, located in PHP installation folder, to Apache bin directory and restart Apache service.

See ya!

  • Advertisement

  • Advertisement

  • Copyright © 1996-2010 André L. S.. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress