Home › Forums › WordPress Plugins › Hide My WP › Help excludind one file from php execution restriction
- This topic has 5 replies, 2 voices, and was last updated 11 years ago by
Hassan.
-
AuthorPosts
-
July 22, 2014 at 11:17 am #924
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.phpso 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 11 years ago by
aqt. Reason: additional info
July 24, 2014 at 4:06 pm #928You should always use real addresses (started with wp-content)
/wp-content/themes/real-main-theme-name/library/assets/css/login-addon.css.phpAbove 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.
July 24, 2014 at 4:28 pm #935Removing the initial / doesn’t work either. Disabling the Avoid direct access to PHP files works but it’s not what i want
July 27, 2014 at 11:11 am #952Try 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!July 31, 2014 at 12:05 am #986I 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
August 5, 2014 at 7:08 pm #999Yes, 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.
-
This topic was modified 11 years ago by
-
AuthorPosts
You must be logged in to reply to this topic.