mayvelous

Me, Myself and Mayvelous

Archive for the ‘WordPress’ Category

WordPress 1.5.2 VS MySql 5.x

Last week my blog was down with some bugs. Here are fixes and some resolutions for those bugs.
The main issue was all about incompatibility between WP 1.5.2 and MySql 5.0.1 on IIS 6. My blog being on windows server with IIS 6 and the server was on move, I had a bit of headache moving around my nameservers and this bug fixing. Hopefully those are the last bug to fix and my blog seem working fine now. Anyway I compiled the following notes for whoever faces the same kind of bugs would fix theirs easily.

Version 1.5.2 is incompatible with mysql version 5.0.15 when installed on a server runing IIS 6.0. This appears to be related to variable type mis-matches that are more strictly enforced by mysql 5 than 4.1.

Error: 1 (The whole blog down with only that message)

Fatal error: Only variables can be passed by reference in …/home/blog/wp-includes/gettext.php on line 66

Fix: Error on function array_shift
search function readint()
Replace line 66 from:

return array_shift(unpack('V', $this->STREAM->read(4)));

to the following:

$tmp = unpack('V', $this->STREAM->read(4));
return array_shift($tmp);

and on in other functions array_shift

Ref: http://wordpress.org/support/topic/39279
http://wordpress.org/support/topic/48398

Error: 2 (Categories down with this message)

Fatal error: Only variables can be passed by reference in …/wp-includes/classes.php on line 629

Fix: Changing line 629 from:

$category = &get_category($this->get('cat'));

to something like:

$crom = $this->get('cat');
$category = &get_category($crom);

Ref: http://trac.wordpress.org/ticket/1614
http://trac.wordpress.org/ticket/1808

Error: 3 (Cannot add comment if you’re not login)

WordPress database error: [Out of range value adjusted for column 'user_id' at row 1]

Fix: Remove STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION from the sql_mode of my.ini

Ref: http://wordpress.org/support/topic/48933
http://wordpress.org/support/topic/48940
forums.eqdkp.com
http://forums.mysql.com/read.php?100,51432,51523
http://moodle.org/mod/forum/discuss.php?d=32071
http://bugs.mysql.com/bug.php?id=14256

  • Comments Off
  • Filed under: Blogging, Development, General, Personal, Project Notes, WordPress
  • WordPress.com Live

    No more waiting for invites.
    It’s open for everyone now.
    Account sign up.

  • Comments Off
  • Filed under: Blogging, WordPress
  • Flickr Gallery

    I just added flicker gallery plugin “falbum” and you can now view some of the photos from my flicker account.

    I love this plugin, I’ve been thinking of having gallery on the site and this one make it alot easier. Just need to do abit of config with my template since I mess around with the code inside before. Otherwise the setup should work in a few seconds.

    It display all your photo sets as separate gallery groups. The photo display is excellent too, can change to many sizes, slideshow etc.
    I just love this one.

    Thanks alot to the creator.

  • Comments Off
  • Filed under: Blogging, General, Personal, WordPress
  • Upgraded to WP 1.5.2

    I was busy, lazy, crazy and zeey before and kept delaying the upgrade.
    Finally I’ve done that. Mayvelous upgraded from WP 1.5.1.2 to WP 1.5.2

    Hmm…I don’t see any change in my admin controls…well they say upgrade so there is it.
    I’m sure it’s for the better performance

    Ok I still don’t know how to ping or track back to other blog posts. Stupid me I know, I just never tried that yet. Will have to try that somehow. hmmm.

    K Tar!.

  • Comments Off
  • Filed under: Blogging, WordPress
  • I LOVE YOU…WORD PRESS!!!

    OH MYYY!!!

    Seriously, I’m so in love with wordpress.com.
    The Geeks over there are superb!!

    I just discover the new “Import” feature in my wordpress.com blog “Musing Along Extraordinary Exaggerations“.

    It lets you import your blogger posts to your wordpress site and guess what, it’s easie pisie!
    Won’t even take 3min of your time. It takes care of everything for your, format the text, archive the posts accordingly …. boy! I just love it.

    Log in to Blogger
    The script will log into your Blogger account, change some settings so it can read your blog, and restore the original settings when it’s done. Here’s what you do:

    1. Back up your Blogger template.
    2. Back up any other Blogger settings you might need later.
    3. Log out of Blogger
    4. Log in here with your Blogger username and password.
    5. On the next screen, click one of your Blogger blogs.
    6. Do not close this window or navigate away until the process is complete.

    Out of those, the only thing you have to do is, login to your blogger account.
    I just imported my posts + comments from “Gifted7ven Technical Blog” to “Musing Along Extraordinary Exaggerations” and voila all there!

    I just love it! Thank you, thank you so so much WP!!! :D

  • 7 Comments
  • Filed under: Blogging, WordPress
  • WordPress.com invite give away

    Ladies and Gents,

    Lend me your ears…
    I have wordpress.com one invite to give away.
    Anyone interested in having that, tell me:
    # why you want it,
    # what you plan to do with it,
    Tell me the best short and sweet as you can and I’ll give you the invite.
    You can leave your reasons as a comment under this post or you can mail to me
    :: mayvelous[at]gmail.com ::

    This post will close on 31st Oct and will announce the invite receiver on 1st Nov.

    Tar!

    The Invite has been sent to Wai Pyo.

  • 3 Comments
  • Filed under: Blogging, WordPress
  • Mayvelous on WordPress.com

    My lucky day I guess. I got an invite from the amazing “wordpress.com” and now my new blog, “Musing Along Extraordinary Exaggerations”, is up.

    It has new functionalities in admin(WYSIWYG textbox, image uploading, on-fly category creations etc) and some part are restricted, eg. can’t update/use custom template, no user subscriptions, no plugin.
    The whole site set up is limited to the functionalities of the template you’ve chosen. I wish they allow the custom template function later on.
    There is only 5 templates to choose from and vanilla mist is one of them. Since I’m using vanilla mist here, I chose different template to go with the new blog.

    Now I got too many blogs and I can’t keep up with those.
    I’m still thinking what to write/even not sure what title to give to that new blog haha. :P
    What do people want to read from my blog … or rather they don’t…hmmmm :-?
    Any ideas or suggestions?

  • 1 Comment
  • Filed under: Blogging, WordPress
  • Flickr Photos

    • Win's failed macarons and chocolate
      My Sis's failed attempt Macarons
      Max, May, Showey
      May & Showey
      devweb-programs
      blank document upload

    Downloads

    Twitter Status


    Goodie Links


    Mayvelous Friends


    AdBrite
    GraphicRiver
    FlashDen

    I'm an Author for Global Voices

    Archives