-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symbolic link causes invalid plugin/theme slug specified error. #22
Comments
It won't work for Re themes does it not work for |
Hi @gitlost, thank you for going out of your way and actually install a copy of my plugin. I really appreciate it. You are correct in that those two themes don't work, but I think I figured out what the problem is. I was using a symbolic link for my themes folder and my twitterfeed plugin. If I don't use symbolic links everything works fine. The thing that threw me off was that that the themes and plugins get picked up by |
Oh that's interesting - I see it's failing in Scaffold_Command::check_target_directory after doing a I think that's a bug! I don't think it should do that check if it's a symbolic link (ie treat it similar to the way it treats |
I think looking at the history of this that Symfony has a nice and simple canonicalize path function I'll open a PR to add it to |
I'm getting these errors when I'm trying to scaffold tests with:
wp scaffold plugin-tests name-of-plugin
orwp scaffold theme-tests name-of-theme
. Strangely enough it doesn't happen with all plugins/themes.This is the output I get when I run
wp plugin list
:When I try to scaffold tests for
akismet
it works. When I do the same forhello
by runningwp scaffold plugin-tests hello
it fails:Error: Invalid plugin slug specified
. In the list abovehello
andtwitterfeed
fail, the other three work.wp scaffold theme-tests name-of-theme
also fails withError: Invalid theme slug specified
, but it's more consistent because I can't seem to get it to work for any of the themes I have installed.What is your system?
lsb_release -a
uname -a
Which version of PHP are you using?
which -a php
php -v
Which version of WordPress are you using?
Can you share the results of which wp ?
which -a wp
stat $(which wp)
Are you running any packages? If one is causing a problem, you can use
--skip-packages
to skip loading themThe text was updated successfully, but these errors were encountered: