• This is the error message that is in my error log. I have renamed the theme and then changed it back to the original name and I am able to view my website but then I cannot login to the back end. And as soon as I sign out of cpanel, I can’t view my site again. It goes back to the white screen. Help pleaseee

    [06-May-2013 18:55:10] PHP Fatal error: Call to undefined function wp_initialize_the_theme_message() in /home5/tcmhsus/public_html/wp-content/themes/LightMag/header.php on line 1

Viewing 11 replies - 1 through 11 (of 11 total)
  • Can you login and view the site without that theme being active?

    Thread Starter tcmhs

    (@tcmhs)

    No, I just renamed the theme to make it default back to the default theme, I have a white screen when try and view the site and a broken link page when I try to go to https://www.tcmhs.us/wp-login

    I get a login here:

    https://www.tcmhs.us/wp-login.php

    And your site seems to be working fine. Have you cleared your browser cache and cookies or tried another browser?

    Thread Starter tcmhs

    (@tcmhs)

    I guess I have to have the .php after it. Because it works when I type that. But still. It’s strange that I have to go into bluehost cpanel every day and rename my theme file.

    Thread Starter tcmhs

    (@tcmhs)

    okay and when I just logged in, it just gives me a white screen again

    Thread Starter tcmhs

    (@tcmhs)

    of course…until I just renamed my fuctions.php in my theme. So here’s what I am gathering. I have to rename the theme name and the functions.php every time I log back into cpanel

    I’m still not clear – does this only happen with that theme? Or does it happen with any theme, including twentytwelve?

    Have you tried deactivating your plugins to see if one of them might be the cause of this?

    Thread Starter tcmhs

    (@tcmhs)

    I’m pretty sure it is only that theme. What started it was I installed a pluggin that messed it all up. So I deactivated all my plugins through phpmyadmin. Then things still weren’t working so I went to the error log and found that the error looked like it was in the functions.php so I deleted what the new plugin had added to the functions.php. My problem is I made so many changes to this theme I can’t just start from scratch again

    Do you have a backup of your site where you can get a copy of the functions file from before you messed with it? Or restore completely from the backup? Or download a new copy of the theme and replace the functions file with a new copy?

    Where is the theme from?

    Thread Starter tcmhs

    (@tcmhs)

    It is from https://newwpthemes.com/lightmag-free-wordpress-theme/. If I download a new copy, and replace the functions file…will it mess with any edits I made to the theme? like the header

    I really can’t make any guesses about that – I’d suggest you backup your site completely before doing anything more. If you’ve made changes to the functions file, it will wipe those, yes. Other files should be okay, but I can’t tell you that for sure.

    You should also be aware that that theme vendor has a very poor reputation, does very sleezy things, and does not comply with the GPL licensing requirements of WP. In fact, it’s possible that some of the problems you are having are due to bad things in the theme’s code. You would be best off by finding another theme ASAP. This may give you some additional info along those lines:

    https://www.chipbennett.net/2010/12/10/only-download-wordpress-themes-from-trusted-sources/

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Error in theme or theme function. Cannot login to wp-login’ is closed to new replies.