back to phpList.org

Uploaded image not showing in emal


#1

I installed the CKEditor, and with it was installed kcfinder. When I upload an image to the phpList machine, I can place it into an email that in CKEditor. When I send the email, it does not generate the proper link for the image… Here is the source of the sent email, with two images, on where I used the link for the image… http://harradine.mx3a.com/plugins/CKEditorPlugin/kcfinder/upload/image/00.jpg, and one that I specified using the kcfinder ‘browse server’… /plugins/CKEditorPlugin/kcfinder/upload/image/00.jpg

<body><p><a href=3D"/plugins/CKEditorPlugin/kcfinder/upload/image/=
00.jpg"><img alt=3D"" src=3D"http://harradine.mx3a.com/plugins/CKEditorPlug=
in/kcfinder/upload/image/00.jpg" style=3D"width: 640px; height: 360px;" /><=
/a><img alt=3D"" src=3D"/plugins/CKEditorPlugin/kcfinder/upload/image/00.jp=
g" style=3D"width: 640px; height: 360px;" /></p>
<br />-=0A<div style=3D"clear: both; font-family: arial, verdana, sans-seri=
f; font-size: 8px; font-variant: small-caps; font-weight: normal; padding: =
2px; padding-left:10px;padding-top:20px;">powered by <a href=3D"http://harr=
adine.mx3a.com/news/lt.php?tid=3DKh0OAVsGVwVcAU9QBwRcGAADBgUeClUHVB1UAgddAQ=
pTVwpQW1ZIVQcEVgUJAFAYB1EGDx4GAFVTHQ1eAwZOBgYHCwZdVVFVVAdaSgFSXQUHUAUCHgtTU=
AYdAVADBk4KUVQLH1sCDAAHU1oEVAdSBw"  target=3D"_blank" title=3D"powered by p=
hpList version 3.3.1, &copy; phpList ltd">phpList</a></div><img src=3D"http=
://harradine.mx3a.com/news/ut.php?u=3Dea77d06920f431d12ddab213c9a8dead&amp;=
m=3D1172" width=3D"1" height=3D"1" border=3D"0" alt=3D"" /></body>

The problems seems to be that kcfinder is not specifying the full url for the image… is there a setting that controls this?


#2

There appears to be a few odd things here.

You don’t need to install CKEditor plugin, it is already installed with phplist 3.3.1.

/plugins/CKEditorPlugin/kcfinder/upload/

This isn’t the right place for the upload directory.

Dan, are you sure that phplist is installed correctly?


#3

Thanks @duncanc, Yes, the phpList is installed in a ‘default’ way, and I setup the plugins directory in the …/…/plugins location. (which separates the plugins from the install, so that when I update, the plugins don’t go away. Maybe one issue is that this was upgraded from 3.2.5, which I updated to include the CKEditor, then upgraded. to 3.3.1 Now it’s not clear which settings affect what.

Any suggestions off hand why that uploaded image url would NOT have the proper link?


#4

@danwaterloo What is the value of PLUGIN_ROOTDIR and the value of UPLOADIMAGES_DIR in the config file?

Are you sure that you have installed the latest release of the plugin?


#5

define("PLUGIN_ROOTDIR","../../plugins");

and

define('UPLOADIMAGES_DIR', 'plugins/CKEditorPlugin/kcfinder/upload/image');

it turns out that I didn’t have the UPLOADIMAGES_DIR defined… once I did that, the images started showing up. Thanks for your help… it looks like I reused the old configuration file… I should know better by now.