Hello!
I have a rather strange issue.
Images from the KCFinder are throwing a 403 in two different scenarios.
I’m running the latest version of PHPlist with PHP7.4 on Ubuntu 24.04 with Virtualmin hosting 6 virtual servers.
This all started after I updated the CKEditor plugin in the PHPList dashboard.
Scenario 1:
When adding an image to a campaign, I can upload the image or browse the server with no problem.
However, when I choose an image for the campaign, I get a red X and the image is not added.
The images are publicly visible in any browser via the file path.
https://azbackroads.com/images/image/20200830_210854.jpg
However, as you can see below, the image will embed here with or without the www.
prefix.
https://azbackroads.com/images/image/20200830_210854.jpg
https://www.azbackroads.com/images/image/20200830_210854.jpg
Scenario 2:
My custom subscribe page only shows images when typing the www.
prefix in the URL like so https://www.azbackroads.com/lists/?p=subscribe&id=2
Without the prefix, https://azbackroads.com/lists/?p=subscribe&id=2
, the images give a 403 error.
Here is one of the browser errors for the subscribe page:
If you visit the subscribe page with the www.
prefix in your browser first, the images will then appear on the subscribe page without the prefix. Strange.
What I have done.
- I have checked the file permissions and everything seems good.
- I have checked
htaccess
file and everything looks good. - I have edited the config file for KCfinder to not check for htaccess and nothing changed. So I switched it back.
I assume this involves redirecting the /lists
directory to the www.
prefix.
My DNS redirect is set up to forward my domain to the www.
prefix so I’m not sure why this is happening.
Please help!
Thanks in advance @duncanc