MHSWA's picture

Hello

 

is it possible to remove the PHPlist Appliance - Powered by TurnKey Linux on the bottom of each webpage for phplist?

Forum: 
Jeremy Davis's picture

Please have a look at the first post in this thread. The thread is quite old and long, but still gets a fair bit of traffic, so I dug out the answer and edited the top post to include it.

If that doesn't solve it for you (although I'm pretty sure that it should), please post back and I'll have a closer look at the build code for you.

MHSWA's picture

When i set it to uploadimages/image i dont get the error flash but when i try and upload in ck i get this HTTP error occurred during file upload (404: File not found).

yet i can brows to that directory on the web

Jeremy Davis's picture

Is this somehow related to the footer (and/or removal of it)? Or a completely separate issue?

Regardless, could you please try to spell out exactly how I might be able to recreate this issue? I.e. step by step to make my example server get the same error? If I can recreate it, I can almost certainly fix it! :)

matthew grisewood's picture

Sorry it was separate    Okay so deploy the appliance Enable the plugins directory (either in the root of web server or admin/plugins) make sure the location is set in the config Enable the ckeditor check the Image_Dir in config.php you will need to make imageuploads in the root directory and make a sub dir of image Go to the phplist plugins check configure and set the variables   Then go to make campaign and click on the image upload icon and try and upload an image and click sumbit to server you should get a 404 error
Jeremy Davis's picture

No problem at all. Thanks for reporting the issue and providing details of how to reproduce. I'll get onto that ASAP and post back.

Jeremy Davis's picture

Thanks to your info and a little research to make sure I wasn't missing anything, I can certainly reproduce this issue.

After a bit of trial and error, I have worked out the issue and how to fix it. I've opened a bug on our issue tracker and detailed the fix in the "workaround" section there.

As noted over there, the issue is that the default path to "kcfinder" is incorrect in the CKEditor plugins config. The path it is trying to use is '/var/www/phplist/admin/plugins/CKEditorPlugin/kcfinder' (which is the absolute path in the filesystem). Instead it should be a relative path to the admin webroot. I.e. 'plugins/CKEditorPlugin/kcfinder'.

A PHP image library also should be installed:

apt update
apt install php-gd
service apache2 restart

I have also found a couple of other things that we should improve for the next release (when we fix this bug) and detailed them in the issue.

Hopefully that gets you up and running. Thanks again for reporting. It gives us the opportunity to make the next release better! :)

If you find any further issues and/or have any other feedback for us, please do not hesitate to open a new thread (or even post back here on this one).

You can set phpList to remove the image in the config/config.php file, in which case a text link is substituted. After all, you're getting the use of it for free, why not give phpList the kudos of having written it by including a line of code?

Add new comment