WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Warning messages & lost theme (5 posts)

  1. neilcamp
    Member
    Posted 4 years ago #

    I am unable to get one of my add-on domains to show up in my browser. I am able to log into the WP-Admin Dashboard, and all posts, pages seem to be there, BUT there are warning messages all over the place like this on the Dashboard:

    Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/neilccom/public_html/copingwithpanicattacksinfo.com/wp-includes/theme.php on line 513<

    I have LOST the theme that I had previously installed. There is now no theme at all and when I try to re-install the theme, I get warning messages like this:

    Warning: Invalid argument supplied for foreach() in /home/neilccom/public_html/copingwithpanicattacksinfo.com/wp-admin/includes/theme-install.php on line 492

    Then when I tried to reinstall the theme I got another warning:

    Downloading install package from http://wordpress.org/extend/themes/download/twentyten.1.1.zip…
    Unpacking the package…
    Installing the theme…
    Could not create directory. /home/neilccom/public_html/copingwithpanicattacksinfo.com/wp-content/themes/twentyten/
    Theme install failed.

    This all happened after I had used FileZilla to upload some videos for use on my site, which I was subsequently unable to embed. Maybe I uploaded them to the wrong place and this has upset the applecart. When I view the files on my website via FileZilla, I notice that My add-on domain is in two places, the additional place being under a directory called WWW. Is this correct?

    I am really worried now as I have just spent time pinging search engines that I have just updated the site and they won't even be able to access it.

    It has just occurred to me that my WordPress installation may be corrupt. Is this possible? I can access & edit all my posts and pages through WP-Admin (which is also where I can see all the warning messages) but get a blank screen when trying to preview anything.

    If it is corrupt, can I reinstall it without losing all my data? I have copies of all my posts and pages input in a text file.

    I would be grateful for any help.

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 4 years ago #

    This is difficult to troubleshoot without sight of the site, but my best guess on the information you have provided is that it sounds like you may have inadvertently dragged a directory to a different location whilst in filezilla.

    Do you still have a wp-content directory at the same level as wp-admin? & if so does it still contain the themes directory? If it does, but your theme is missing from the themes directory, download a new copy of the theme, unzip it & then upload it using filezilla. Otherwise locate where the wp-content or themes directory is now & drag it back in place.

    However, if you have accidentally deleted the directory, download a new WordPress installation zip, extract it and upload the missing directory.

  3. neilcamp
    Member
    Posted 4 years ago #

    Hello! Many thanks for your helpful reply.

    I have two wp-content directories. One is at the same level as wp-admin and has sub directories of Upgrade and Uploads only. The other one is a sub directory of wp-admin and has sub directories Plugins, Themes, Upgrade and Uploads

    Should I delete the directory at the same level as wp-Admin and then drag the other one to fill the position of the deleted one? Or are they both supposed to be there?

  4. neilcamp
    Member
    Posted 4 years ago #

    Hello Cubecolour

    I moved the two sub directories (Plugins & Themes) from the wp-admin sub directory (wp-content) to the wp-content (same level as wp-admin) directory, but left the sub directory wp-content of directory wp-admin (ie the one at the lower level) with the two Upgrade & Uploads directories.

    It worked perfectly. The only thing that I need to know now is whether to delete the lower level wp-content directory. Also, is there some way I can back up my WordPress files?

    My very sincere appreciation to you for both your prompt reply and your great help. I was really worried and am most grateful for your assistance.

  5. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 4 years ago #

    I'm glad it has worked for you. If the second directory (within wp-admin) is empty it will be safe to delete, however if you have any doubts or are generally wary of deleting things (like I am), maybe rename it to delete-wp-content & check that everything is fine before deleting it.

    You can do a full file backup of the site using an FTP application such as filezilla to store a local copy of the files on your PC/mac. I go one step further than this and use XAMPP as a local web server on my mac to run a cloned copy of each site I have created.

Topic Closed

This topic has been closed to new replies.

About this Topic