• Resolved bonjurkes

    (@bonjurkes)


    I am using WordPress with turkish language file. I was using a server with php 5.3.2 and now i switched to a server with php 5.2.17. Everything was working flawless before i move out.

    When I type,

    define(‘WPLANG’, ‘tr_TR’); into my wpconfig, my wordpress main page gives error : Call to undefined function get_the_Id() post-thumbnail-template.php on line 21

    So the function on line 21 is

    $post_id = ( null === $post_id ) ? get_the_ID() : $post_id;

    So when i type wplang as tr_TR it mess up the function name as :

    get_the_Id() instead of get_the_id(). It’s typical turkish character problem because we have ? and I , and i and ?.

    So we found the problem but dunno how to solve it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi bonjurkes,

    Maybe I’m missing something, but I don’t understand how the language definition could be affecting the processing of that php line by your server.
    What happens if you set the language to anything else other than Turkish?
    Do you still get an error message?
    I guess I’m kind of puzzled by your issue.
    A link to your site and the name of your theme would come in handy too.

    Thanks!

    Thread Starter bonjurkes

    (@bonjurkes)

    Hey Marventus,

    I solved the issue, I thought it’s about php’s non ascii characters bug issue but it turned out that Adrotator is causing that, even tho it was working fine on my old server, when I switched to new one it caused this error, just turned it off and it works like charm now

    Hello again,

    Glad you know you figured it out.
    Please don’t forget to mark this thread as ‘solved.’

    Cheers!

    Hello bonjurkes,

    I had experienced exactly the same problem as like as you. I had temporary solved it via editing post-thumbnail-template.php in wp-includes but i’m aware that it will overwritten in next update.

    So how did you turned off non-ascii character support?

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Function name problem’ is closed to new replies.