Tagged: external directory, symlink
- This topic has 4 replies, 2 voices, and was last updated 6 years, 6 months ago by ddenev.
Author | Posts |
---|---|
ddenev
March 3, 2018 at 11:19 pm
|
Hi, I have to ask my question from an image – https://www.dropbox.com/s/pzp6nyaudwfc4gx/microthemer_symlinks_question.jpg?dl=0 since if I write it here I always get this error when I submit it: Sorry about that but I struggled more than an hour to try to submit it 🙂 Here is the link from the question: https://bugs.php.net/bug.php?id=46260 |
Sebastian
March 5, 2018 at 12:06 pm
|
Hey, Thanks for alerting me to the forum submission issue. It seems like our firewall wrongly interpreted your post as an attempt to inject code. To be honest, I’m reluctant to change the code for establishing the /wp-content directory path for your use case because the current code has evolved over many years to provide maximum compatibility with various server environments and WP configurations. And I agree with this behaviour being flagged as a PHP bug. Do you know if it has it been fixed on newer version of PHP e.g. PHP7? Cheers, |
ddenev
March 5, 2018 at 12:40 pm
|
Hi, Unfortunately, there is no sign that the PHP bug is going to be fixed anytime soon. I understand you being cautious about changing the code. You know better what problems you stumbled upon during the years. Keep in mind though that I have other plugins setup in the same way with symlinks and they do not have this problem they write to wp-content just fine (e.g. Duplicator, WP Rocket, Updraft). These plugins are also heavily used by the community and they do well in this setup 🙂 There are several workaround ideas, please consider them 🙂 :
How does this sound? 🙂 Best regards, |
Sebastian
March 5, 2018 at 1:31 pm
|
You have yourself a deal Drago. I’ll do a check for symlinking, and use ABSPATH if it returns true 🙂 |
ddenev
March 5, 2018 at 1:33 pm
|
You are a real gem, Sebastian, you should know this! 🙂 Thanks a bunch! |