Posts Tagged ‘php’

slow wpmu dashboard

January 18th, 2009 Comments off

I have spent today over two hours to find out why my wpmu login (and dashboard) is so slow. For all of You it was wrongly set “Admin Notice Feed” in “Site Admin”/”Options”. bellow a patch that will give extended note about wrong url.

< $rss = @fetch_rss( $url );

> $rss_time = time();
> $rss = fetch_rss( $url );
> $rss_time = time() – $rss_time;
< echo “<div id=’update-nag’>Your feed at ” . wp_specialchars( $url ) . ” is empty.</div>”;

> if ($rss_time < 30) {
> echo “<div id=’update-nag’>Your feed at ” . wp_specialchars( $url ) . ” is empty.</div>”;
> } else {
> echo “<div id=’update-nag’>Your feed url ” . wp_specialchars( $url ) . ” seems to be broken. Go to \”Site Admin\”/\”Options\” and corect \”Admin Notice Feed\”</div>”;
> }

I have also filled a request on wpmu forums to add it to include this patch in wpmu.

Categories: Hosting Tags: , , ,

extension for AA SEO Verify

January 17th, 2009 Comments off

After writing previous post about mod_rewrite I have discovered that google webmaster tools stoped veryfing my domain After investigation I sadly have discovered that Ask Apache Search Engine Verify plugin neither Add Meta Tags can display meta tags on my page. short reading allowed me to find the right place to correct this behavior:

  1. go to your’s installation directory of search-engine-verify,
  2. edit file search-engine-verify.php at line 191 change

if(is_home() && !is_paged()){


if((is_home() && !is_paged()) || is_page()){

With this two steps all pages will contain veryfication tags, so you can redirect as many pages as you wan’t.

Categories: Hosting Tags: , , ,

WordPress themes compatibility with php

December 17th, 2008 Comments off

As preparing blog for one of clients I have found problems with get it running, after some web research I have found that Hemingway theme uses old syntax … instead of downgrading my server or allowing old syntax I have wrote script that converts old syntax to current working one.

This is the script:

grep -rl “

  • replace <? markers to <?php
  • replace <= markers to <?php echo
  • For me this solved problems with Hemingway theme.

    Categories: Hosting Tags: , , , ,