Hi guys,
I recently moved a project running 2.5.5 PL from my localhost to a shared hosting. Not the smoothest but at least I got most of the essentials running. Now when I was trying to install a 3rd party package earlier, I encountered this:
Console running...
Attempting to install package with signature: analytics-1.0.0-rc1
Package found...now preparing to install.
Target directory is either not a directory or writable: /home4/<mydir>/public_html/core/ packages/
Could not transfer package analytics-1.0.0-rc1.transport.zip to /home4/<mydir>/public_html/core/ packages/.
Could not install package with signature: analytics-1.0.0-rc1
I tried installing, reinstalling, and removing, and they don't work. Downloading extras is not a problem but trying to install them gives me the above errors. I tried this with a number of other packages already. I also notice that there's a space between the '/' and the word 'package' above - so I'm thinking this might be the cause of the problem. Does anyone know where I can look for this extra space?
UPDATE: There was one step I didn't apply in the migration process and that was changing the core path in the workspace. The original value was {core_path} so I thought this was a variable that was already set somewhere. I changed this to:
/home4/<mydir>/public_html/core/
And the package manager had no problems accessing the directory. In any case, I can see that {core_path} already provided the right value, it's just that it added a space. Is this a bug? Anyone know what main modx or PHP variable core_path is deriving its value from so I can see if there's anything I set that maybe had the space?
[ed. note: diatomin last edited this post 11 years, 4 months ago.]