19-Jun-2007

No upgrade!
Today I attempted an upgrade of the blog software to the next version. Of course, I backed up the current state into a new directory ([.WP21]) and redefined the logical referring to this blog directory, and checked whether everthing worked.
Next, I installed the new version as described on the wordpress site. The basic blog – where nothing changed in configuration – seemed to be working, but the upgrade – run automatically when accessing the admin function for the first time – runs into an error:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 270336 bytes) in /wordpress/wp-admin/upgrade-schema.php on line 105
Allowed memory size of 8388608 bytes exhausted (tried to allocate 128 bytes)

This 8Mb limit is defined as a default in PHP, prior to PHP 5.2 (where it is 16M) and it should be able to override the memory requirements by specifying someting in either php.ini or a .htaccess file in the document root, as is specified in this entry in the WordPress support forum.
In the PHP documentation, there is this chapter on runtime configuration, and digging deeper it shows that you can actually do it in different ways. But this version of PHP (4.2) REQUIRES it to be linked with option --enable-memory-limit , as described in paragraph 1.5 in this page.

I tried this – and it still gives this error. That raises the suspision that PHPSHR has been compiled without this option.

So for the time being, the blog won’t run under WordPress 2.2…. But I can keep the current configuration, where it runs on the saved environment. Hopefully, HP delivers a new PHP version quickly with all building files, as requested on the bootcamp (preferred PHP 5.3 which seems to be the current state).

Update
IT WORKS.
It turned out I just made mistake. PHP_ROOT:[000000]PHP.INI should hold a line:
memory_limit = 16M
and that did the trick. The “=” was not mentioned, or completely overlooked, at the PHP documentation.

Anyway, SYSBLOG now runs on WordPress 2.2. This allows me to change themes.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.