Image selection in category configuration does not work properly
Posted: 08 May 2019, 18:34
Hi,
If you want to assign or change an image to your category, there is a problem when you try to change the folder.
Go to components -> phoca download -> categories -> <select a category> -> general options -> image
Click on 'Select image'. The path you can see is: 'http-root/images/phocadownload'. Everything is right until here.
Now click on the 'level up arrow'.
Next you will see that the path has changed to: 'http-root/phocadownload'. This is not correct.
The expected path should be: 'http-root/images'.
In addition to that you'll get Joomla errors if you create subfolders of 'http-root/images/phocadownload/icons',
lets say: 'http-root/images/phocadownload/icons/my/cars'.
If you click 'Up' this results in: 'http-root/phocadownload/icons/my' which is not a valid path.
Joomla comes up with the following error messages:
Warning
JFolder: :files: Path is not a folder. Path: ...\phocadownload\icons\my
JFolder: :folder: Path is not a folder. Path: ...\phocadownload\icons\my
Other info:
'http-root/images' is the Joomla images default path.
'http-root/phocadownload' is the Phoca Download default path.
As a workaround I tried to set the Phoca Download (relative) path to: 'images/phocadownload' instead of 'phocadownload'
but this results in other problems.
Regards Mike
If you want to assign or change an image to your category, there is a problem when you try to change the folder.
Go to components -> phoca download -> categories -> <select a category> -> general options -> image
Click on 'Select image'. The path you can see is: 'http-root/images/phocadownload'. Everything is right until here.
Now click on the 'level up arrow'.
Next you will see that the path has changed to: 'http-root/phocadownload'. This is not correct.
The expected path should be: 'http-root/images'.
In addition to that you'll get Joomla errors if you create subfolders of 'http-root/images/phocadownload/icons',
lets say: 'http-root/images/phocadownload/icons/my/cars'.
If you click 'Up' this results in: 'http-root/phocadownload/icons/my' which is not a valid path.
Joomla comes up with the following error messages:
Warning
JFolder: :files: Path is not a folder. Path: ...\phocadownload\icons\my
JFolder: :folder: Path is not a folder. Path: ...\phocadownload\icons\my
Other info:
'http-root/images' is the Joomla images default path.
'http-root/phocadownload' is the Phoca Download default path.
As a workaround I tried to set the Phoca Download (relative) path to: 'images/phocadownload' instead of 'phocadownload'
but this results in other problems.
Regards Mike