I host my own small personnal site on my server using Drupal. It was working fine until about a month ago when I had a powercut and the server went down (no UPS for you). Since then it hasn't worked properly.
On any page I go I get a number of errors pertaining to the $SERVER_ROOT/drupal/includes/menu.inc file. One that comes up most often is:
warning: array_keys() [function.array-keys]: The first argument should be an array in /var/www/localhost/htdocs/drupal/includes/menu.inc on line 919.
The line reads:
$temp_mid = min(array_keys($_menu['items'])) - 1;
and the comment above it is: // Menu items not in the DB get temporary negative IDs
Also I no longer get any formatting, or content, when I load a page I'll get something like this:
{head} {styles}
{_BLOCK_.header.logo} {_BLOCK_.header.site_name}
{secondary_links}
{primary_links}
{_BLOCK_.header.search_box}
{_BLOCK_.footer.blocks}
{_BLOCK_.node.title} {submitted}
{content}
{_BLOCK_.node.links}
{_BLOCK_.node.title} {submitted}
{content}
{_BLOCK_.node.links}
{_BLOCK_.node.title} {submitted}
{content}
{_BLOCK_.node.links}
{_BLOCK_.node.title} {submitted}
{content}
{_BLOCK_.node.links}
{_BLOCK_.node.title} {submitted}
{content}
{_BLOCK_.node.links}
{_BLOCK_.node.title} {submitted}
{content}
{_BLOCK_.node.links}
{_BLOCK_.node.title} {submitted}
{content}
{_BLOCK_.node.links}
{_BLOCK_.node.title} {submitted}
{content}
{_BLOCK_.node.links}
{_BLOCK_.node.title} {submitted}
{content}
{_BLOCK_.node.links}
{_BLOCK_.node.title} {submitted}
{content}
{_BLOCK_.node.links}
1
2
3
4
5
6
7
next page
last page
{_BLOCK_.footer.message}
Which isn't what I expect at all.
I'm not sure if this is a MySql problem, a PHP problem or a Drupal one - I've been to the Drupal site and tried to fix a few errors and have been successful with a few, but not with others. It suggests to get rid of the {head} etc to go to ?q=admin/themes and change the theme - but I only get more of the {head} etc. stuff.
Drupal version is 4.6.8.
PHP version is PHP 5.1.4-pl0-gentoo
MySql: Ver 14.7 Distrib 4.1.20
Site if you want to have a look at any errors in action: http://dylunio.homelinux.com/drupal
Any help would be grand.
Regards
dylunio


















Joined: 2005-12-20