Support » Fixing WordPress » Fatal Error on wp-settings and links-template?

  • Hi,

    I’ve tried removing plugins one by one, and am still getting this error message. I’m doing a fresh upload of WordPress right now. Do you think this will do the trick? Or is something else going on?

    Warning: require(/home/nwhsolut/public_html/nutritionwholehealthsolutions.com/wp-includes/link-template.php) [function.require]: failed to open stream: No such file or directory in /home/nwhsolut/public_html/nutritionwholehealthsolutions.com/wp-settings.php on line 125
    
    Fatal error: require() [function.require]: Failed opening required '/home/nwhsolut/public_html/nutritionwholehealthsolutions.com/wp-includes/link-template.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nwhsolut/public_html/nutritionwholehealthsolutions.com/wp-settings.php on line 125

    This is the site: http://nutritionwholehealthsolutions.com/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Do you think this will do the trick?

    Most likely, yes.

    Make sure you grab the files in the root also, which is where wp-settings.php is located.

    Thanks Pioneer. It looks like my includes/link-template.php file name got changed to link-template.php.suspected, which makes me nervous that someone got into my site despite all of my security plugins. I uploaded a new link-template.php file and the site was up and running. Changing passwords now!

    This is exactly what’s is happening to me right now. With all my websites hosted in GoDaddy, how can this be possible? I mean…

    Now how I am supposed to solve this? they have changed the file theirselves and changed the theme, but the problem somehow persist since I can’t do anything inside the wordpress admin panel, all I got is the left menu and another error that says:

    Fatal error: Call to undefined function get_avatar_url() in /home/content/89/9175889/html/cappuccinofactory/wp-includes/pluggable.php on line 2221

    Anyone got a solution for this? I am desperate because I am all on my own, I am not a developer and I am not good with this things.

    Hope somebody can give us a hand, please.

    @mary_cap
    Please open your own thread. You do not have the exact problem.

    I actually have this exact problem on multiple websites on the same server. I fixed it by reinstallign wordpress, but a couple days later it happened again. This is the error message:

    [05-Jun-2015 09:34:20 UTC] PHP Fatal error: require(): Failed opening required '/home2/forcesfo/public_html/externwinnenisinternbeginnen/wp-includes/link-template.php' (include_path='.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear') in /home2/forcesfo/public_html/externwinnenisinternbeginnen/wp-settings.php on line 125

    It only (re)happens on the websites with the most recent wordpress installation, older installations are not affected by this. Is this a bug in the newest WP?

    I’m having this issue as well. Our site got hacked recently (which was why we upgraded to 4.2.2) and I wonder if this is in some way related. I know the link-template.php file was not compromised at the time it was renamed, though; its timestamp indicated it had been replaced during the upgrade and not touched since then.

    I asked our host (Bluehost) if they were running any malware scans or if CentOS came with such a scan, but they said they weren’t aware of any such thing. I did find afterwards there was another security hole (an FTP account) the hackers left behind, so it’s possible a hacker logged in and did something to trigger this behavior.

    Or it could be entirely unrelated. In any case, it’d be a good idea to make sure your WordPress installation hasn’t been hacked. Be sure there are no strange files or strange bits of code in your theme files; that’s apparently a popular place to put in exploits.

    furrykef, I’ve had a very similar experience. I’ve removed all of the code and files that the hackers left behind. I’m working on uploading new versions of each plugin just in case.

    Since the first incident with the links-template.php.suspected issue last week, this has happened two more times. Every couple of days I have to upload a fresh links-template.php file and remove the .suspected file in order to get our site back up and running. I’ve deleted all FTP accounts except for one and changed the password. Hopefully this does the trick.

    My hosting company also cannot find any malware on our site. I hope the changes I made stop the links-template.php from corrupting every few days! I’m curious if anyone else is having a recurring issue with this or if it’s just a one time thing for most.

    I just changed the permissions on link-template.php to 444, Read Only. Does anyone think this will stop the file from being edited? Or maybe this will just mess up my site in another way?

    I think you should probably just do a full system reinstall. That’s what I’m going to do with our sites. It’s a severe pain, but it’s the only way to be sure you don’t have a rootkit or any other nasty stuff. Hopefully the issue with the file being renamed will go away in the process.

    I’ve been having the same problem…it’s happened 3 times. I’ve completely replaced all plugins, themes, added extra security to the site etc, but the file keeps getting changed regardless of what I do. I’m hoping to hear back from chariottehyland and furrykef to see how things go for you and if you find the issue causing this problem!

    Moderator t-p

    (@t-p)

    @eli0086,
    Please start your own thread. That way you stand a good chance of getting full attention to your specific issue. Despite any similarity in symptoms, your issue is likely to be completely different because of possible differences in physical servers, accounts, hosts, plugins, theme, configurations, etc. Thus one problem, on one setup is not indicative of the functionality and reliability of an application as a whole. So, please review how and where to post in this support forum: http://codex.wordpress.org/Forum_Welcome#Where_To_Post

    Got the exactly SAME Problem with all my four WP-Systems
    Reinstalled and after Midnight all Systems get down!
    2nd Night

    Where do we talk now? New Topic? Please post address
    One of my WP-installs is not so populated! SO i decided NOW to disable ALL Plugins. When it again happened to the other wp-Systems and the one WITH NO active Plugins so i know that’s a Plugin used by all Systems 😉

    Chris

    PS: charlottehyland, furrykef, eli0086 – Where can we keep in contact to solve the problem?

    Moderator t-p

    (@t-p)

    @csasse,

    You have also posted in this thread:
    https://wordpress.org/support/topic/link-templatephpsuspected?replies=8

    – First, please do not hijack somebody’s post
    – second, please do not make multiple posts
    – Third, per the forum rules, please start your own thread. That way you stand a good chance of getting full attention to your specific issue. Despite any similarity in symptoms, your issue is likely to be completely different because of possible differences in physical servers, accounts, hosts, plugins, theme, configurations, etc. Thus one problem, on one setup is not indicative of the functionality and reliability of an application as a whole. So, please review how and where to post in this support forum: http://codex.wordpress.org/Forum_Welcome#Where_To_Post

    The NEW Link to discuss about the

    wp-settings.php on line 125 and

    link-template.php.suspected

    hack is here…

    https://wordpress.org/support/topic/link-templatephpsuspected?replies=13#post-7042958

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Fatal Error on wp-settings and links-template?’ is closed to new replies.