Home Forums WordPress Plugins Hide My WP Help excludind one file from php execution restriction

This topic is: resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #924
    aqt
    Pro
    Post count: 41

    Hello!

    When I try to login into my wordpress admin, my theme (I use a child theme also) tries to execute
    /wp-content/themes/real-main-theme-name/library/assets/css/login-addon.css.php (physical path)

    and i get a 404 error at /template_main/library/assets/css/login-addon.css.php tested with firebug

    Excluding the file /template_main/library/assets/css/login-addon.css.php
    below “Hide PHP Files” doesn’t work. Do you know how should I set the path to correctly exclude this file from the restrictions?

    I also tried checking ” Add theme files to above list. Use this if you experience incompatibility with your theme.” but doesn’t work for this file. However I successfully excluded another file using the path
    /wp-content/themes/real-main-theme-name/assets/css/visual-editor.css.php

    so i tried to exclude the file I want through
    /wp-content/themes/real-main-theme-name/library/assets/css/login-addon.css.php
    but with no luck. Any ideas? Do you need any further info?

    • This topic was modified 10 years, 5 months ago by aqt. Reason: additional info
    #928
    Hassan
    Post count: 955

    You should always use real addresses (started with wp-content)
    /wp-content/themes/real-main-theme-name/library/assets/css/login-addon.css.php

    Above address is correct so you shouldn’t have problem. Anyway, remove starting ‘/’ and try again. If it doesn’t help it may be caused by other settings or plugins, try disabling Avoid direct access to PHP files and let me know the result.

    #935
    aqt
    Pro
    Post count: 41

    Removing the initial / doesn’t work either. Disabling the Avoid direct access to PHP files works but it’s not what i want

    #952
    Hassan
    Post count: 955

    Try this to enable entire directory:
    wp-content/themes/real-main-theme-name/

    PS:
    Is there any space or special chracters (like – _) in theme name? If yes, remove it and try again!

    #986
    aqt
    Pro
    Post count: 41

    I tried this with no luck
    wp-content/themes/real-main-theme-name/

    I removed any _- from the theme name so i tried

    wp-content/themes/realmainthemename/library/assets/css/login-addon.css.php,
    wp-content/themes/realmainthemename/

    again nothing. The child theme name inside the style.css has two capital letters, i don’t know if that counts anywhere

    #999
    Hassan
    Post count: 955

    Yes, try change them to lower case and let me know the result.

    If it even doesn’t help please add your login details as a private reply and I’ll fix it ASAP.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.