Archive for June 27th, 2007

Enable themes in WPMU (Wordpress Multi Users)

Wednesday, June 27th, 2007

I installed WPMU yesterday, and really got stuck on how to install/enable themes.  Install wordpress is pretty easy, it have a web based install interface, and when something is wrong the error prompt is quite clear, just follow the instruction.

However, after I create my first blog, I found it’s not able to choose any themes, though I have already download bunch of themes in wp-content/themes directory. I searched across the web site, and found there are very few information about it, wpmu’s support BBS is a mess, it’s really hard to find useful information there.

Under the “presentation” menu,  no themes listed and no prompt telling me what to do, all I can assume is those themes are either miss-installed or version miss-match.

The magic “admin” account

Fortunately, when I browse MySQL database, I found a magic user named “admin”,  but what’s admin’s password? Obviously WPMU create this admin account automatically and it may send the password to the email account which actually does not exist. (I just use the default non-exist email for admin when install, there is no prompt to let me know that email will be important).

With MySQL web admin, I copied my own account’s password field to admin’s,  so I can use my password to login into admin.

 Enable themes in “site admin” with “admin” account

After login with “admin”, a menu “Site Admin” appeared, and there is a sub menu to let me manage themes. All install themes listed there and by default they all disabled. Enable them, they worked.

Popularity: 10% [?]

Install Lilina 0.7 on PHP 5.0 linux box

Wednesday, June 27th, 2007

Lilina is great open source server side RSS aggregator written in PHP, the latest stable version at this time is 0.7. I just installed it and found some problem.

After install Lilina 0.7 and following it’s INSTALL instruction, it just didn’t work after all:  all the web page is empty with nothing.  I didn’t touch PHP stuff for many years, so just fix this issue by “what I feel”. :)

1. Debug

Fortunately debug PHP is simple, just run those PHP pages in command line, the output will display in console, so I will not have to look inside the logs. The problem quickly show up:

PHP Fatal error:  Cannot redeclare class soapclient in /var/www/html/lilina-0.7/inc/nusoap.php on line 4096

2. Problem

Google it, the problem is clear, because PHP5 already have a class named “soapclient“. A solution was found here.

3. Quick & dirty fix

Quickly browsed the code, the only place use nusoap.php is inc/google.php, this is used for:

Enabling Google Web APIs support:
———————————
lilina is now able to automatically query Google for the title of each item
and show the top 10 results. To do so you must have a “Google Web APIs key” that
you can obtai for free from http://www.google.com/apis/.

I don’t think I need this, so I just edit lib.php, comment out the include of “google.php”,  and search “google” and find the line:

        $out .=   google_get_res($title,0) ;

change it to:

        $out .=  “”; // google_get_res($title,0) ;

Then it works.

Popularity: 10% [?]

Close
E-mail It
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License.