• I woke up today and saw that it was loading a blank page. when I checked the files I see there were no files in the themes and plugins folder don’t know why.
    restored a previous backup and everything went great until I made a PHP file “leavereview.php” and included it in functions.php
    no big code just made a little shortcode in leavereview.php
    and when I uploaded both files on FTP and refresh the site it again shows a blank page and when I again checked the files all the files deleted again. nothing was in the themes and plugins folder strange right

    I lost the leavereview.php file else I will mention the code here but I can give the idea I just made a function write some HTML stored it in a variable and return the variable and made the shortcode of the function
    then included the file in functions.php
    and in functions.php I made a function and in function I included the file leavereview.php and then use
    add_action(‘wp_footer’, functionname)

    this code when I uploaded via FTP and refresh the site shows blank page and all files deleted can anyone help why this happened?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi there,

    If you haven’t already, I would reach out to your hosting company about this.

    In hosting, files can only disappear for these reasons:

    1. Someone gain access to your server/hosting account.
    2. Malware in your WordPress website.
    3. Accidentally deleted by yourself.
    4. Some failure of the server of your Hosting provider, which is the rarest case.

    Make sure you update your login credentials and would recommend scanning your website just in case.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Where did the files go?’ is closed to new replies.