Skip Navigation

[Resolved] 2.7.1: `plugins/wp-views` cannot be symlinked

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years ago.

Assisted by: Luo Yang.

Author
Posts
#1174817

I am trying to:
symlink `plugins/wp-views` via a deployment system hidden link

Goal:
`plugins $ ln -s ~/deploy/plugins/wp-views/current wp-views`

...where:
`current` is also a symlink to a timestamped directory like `~/deploy/plugins/wp-views/releases/20181230.141522-leho`

Link to a page where the issue can be seen:
gutenberg editor screen

I expected to see:
`TOOLSET_COMMON_PATH` and `WPV_*` constants resolve correctly

Instead, I got:
JS assets fails to load 404, because `__FILE__`-based constants resolution can't deal with symlinks. Result `hidden link.../wp-content/plugins/20181230.141522-leho/.../some-asset.min.js` cannot be operated with.

You should avoid resolving absolute paths, if you want to stay relevant with the widest possible developer audience.

Related issues:
Probably https://toolset.com/forums/topic/javascript-urls-wrong-if-theme-dir-is-a-symlink-and-types-is-embedded/

#1175063

Hi,

There isn't such a built-in feature to use symlinked with Views plugin, I suggest you add a feature request for it:
https://toolset.com/forums/forum/professional-support/#feature-request

Currently, you will need to follow our document to install Views plugin:
https://toolset.com/faq/how-to-install-and-register-toolset/

#1176871

> There isn't such a built-in feature to use symlinked with Views plugin, I suggest you add a feature request for it:

It would be nice if support staff would take care of such busywork, but I filed the feature request myself now.

#1177405

Our workflow requires to fill the "feature-request" form, sorry if there is any inconvenience .