Support » Themes and Templates » Fatal error: Call to a member function create_url()

  • Resolved Nevis1


    I am VERY new to WP, and also to PHP and to some extent CSS. Obviously biting off a lot at one time. I found a theme I liked and installed it however came up with errors. I did a search on the following error with no luck.

    / <a href=”
    Fatal error: Call to a member function create_url() on a non-object in D:\Inetpub\Hosted\\nevis1blog\wp-content\themes\the_beach\sidebar.php on line 3

    You can see this error at I am not sure what to even ask for to get help. I don’t mind reading FAQ,s and such, but it is hard to get help when you don’t know what is wrong.

    Any pointers in the right direction would be appreciated


Viewing 6 replies - 1 through 6 (of 6 total)
  • Could you post the contents of your sidebar file to

    Very interesting site this I hope I patsted it correctly, chose php syntax and signed it by my WP username Nevis1.

    Thanks for getting back to me

    Do you have a link to the pastebin page? 😉

    Hmm, I wondered how you were going to look at the code…as I say I am new to this. I thnk this should work though.

    Ah right, the problem is that you are calling a function create_url() that isn’t actually part of WordPress, it belongs to fAlbum, I believe?

    Do you see the bit like this:

    <?php echo $falbum->create_url("show/recent"); ?>

    It’s near the top of your sidebar file, on line 3. Try adding gloabl $falbum; where I’ve added it below:

    <?php global $falbum; echo $falbum->create_url("show/recent"); ?>

    I’m not sure that will work, though. I don’t know how fAlbum functions. If that all that piece of code does is generate a link to your photo gallery, it should be very easy to fix.

    Well I tried to edit this properly, but it didn’t work. Oh well, I didn’t need it anyway, it just came with the template. I did however find a good PHP editor. PHP Designer 2006. Not sure how to use 99.9% of it, but the code sure stands out a lot easier. Thanks for helping a beginner, and hopefully in a few weeks I will be much better. If you can suggest any books, cd tutorials or good web sites that you think will help me learn PHP let me know please. Oh by the way, using my knowledge of HTML, I was able to decipher how to just whack out the photo album bit.

    Cheers, Mate. Time to get tonites “The Bill” from the usenet. Yes I am a yank who loves UKTV….it helps when your GF is a Scouser 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error: Call to a member function create_url()’ is closed to new replies.