WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] theme automatically deleting index.php (8 posts)

  1. Kapil Gupta
    Member
    Posted 1 year ago #

    Hi,

    Apologies if this concern was already raised because I didn't find it (somehow).

    Till few days back I was running my WP site happily. Recently I installed/activated a new theme and noticed that after theme activation my index.php automatically went blank

    I restored index.php from WP source code but as soon as I refresh my site, it automatically again went blank.

    If I restore index.php and move back to my old theme, index.php remain intact (keep code) and site works fine.

    I tried uninstall - install of new theme multiple times but it didn't worked.

    I understand that I downloaded new theme from not so reliable source. Is there any way by which I can find the notorious code which is creating this trouble for me? or put a permanent fix?

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    We don't support "not so reliable" themes at all here - sorry. And you'd be well advised to stay far away from it too.

    This may be helpful:

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

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    Not unless you're good with PHP & HTML as well as interpreting error messages in an error log. Ditch the theme and chose one from http://wordpress.org/extend/themes/

    I would also strongly recommend that you read this article.

  4. Kapil Gupta
    Member
    Posted 1 year ago #

    when I said "not so reliable" it doesn't mean that I am using nulled/pirated themes.

    The theme was not downloaded from WP directory, but picked from one of the friend (for testing) who just started creating WP themes. The theme is currently under beta (sort of).

    I just wanted to know if it's a common problem because of any common bug in code. When I said notorious code I meant any piece of code which me might picked from when while developing and unknowingly brought any hacked.

    If members still feel that I should not seek any support from this forum, then I will delete this topic happily.

    P.S. Read it again, I am looking for help related to WP and not related to theme

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    it doesn't mean that I am using nulled/pirated themes.

    Not did we imply that. Have you looked at the article we referenced?

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Asking the friend would be the logical place to go. It that theme is causing that to happen, that's a theme problem -- not core WP.

  7. Kapil Gupta
    Member
    Posted 1 year ago #

    Thanks :)

  8. Andrew
    Forum Moderator
    Posted 1 year ago #

    If there are issues with your custom-made theme, we won't be much help because we haven't access to that theme.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.