• I just installed the theme on a fresh wordpress install.

    Adjusted colors, then wrote my first post. It was saved successfully. When I went to view post, I get

    Fatal error: Can’t use function return value in write context in /home/******/themes/pixelhunter/content-single.php on line 52

    Although the “hello world” post was displayed correctly and I actually only edited that…

Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you post the code from content-single.php?

    Thread Starter sinna

    (@sinna)

    Line 52 states:

    if(!empty(get_the_tag_list())){ ?>

    I am not planning on writing into the theme php files by the way. I am a tech newbie.
    Although I have read that this error has something to do with the empty() tag, so I am not surprised that I found it there.

    Thread Starter sinna

    (@sinna)

    I just found the fix on the forum.

    Replace line 52 with this:
    if(get_the_tag_list()){ ?>

    It works now. But it’s bad that this issue, which makes the whole theme useless and nearly made me use another theme (hadn’t I liked it so much already) was already known a week ago and no quick update has been issued.

    Don’t want to complain, just think you should know I nearly deleted your theme again and others will probably do it if a major error like this occurs and they don’t take the time to search the web for a solution.

    Thank you sinna,

    Your fix helped me a lot. After spending so much time on adding images and setting colors this thing took me for a ride.
    Thanks for fix ??

    Thread Starter sinna

    (@sinna)

    I am glad I could help, although I found it elsewhere ??

    I have moved on to another plugin already though. It’s sad that you had that issue even 2 weeks after it was posted on the official forum. They should have fixed it if they want their theme to be successful

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Getting error on my first post’ is closed to new replies.