Upload images for campaigns error 500 .htaccess CKeditor KCFinder

Hello everyone,

I’m trying to get images uploaded when creating a new campaign and it’s been difficult to get them. I have phplist v3.3.4

I get an error 500 message regarding the .htaccess file

I have phplist installed in mailing.domain.com in /home/user/

This is my file structure inside mailing.domain.com:

My config.php has define('UPLOADIMAGES_DIR', 'uploadimages');

My CKeditor config:
URL of ckeditor.js

//cdn.ckeditor.com/4.5.7/full/ckeditor.js

Path to CKeditor custom configuration file

``

Width in px of CKeditor Area

600

Height in px of CKeditor Area

600

Allow templates to be edited as full HTML pages

Yes

Allow messages to be edited as full HTML pages

No

Path to KCFinder

/admin/plugins/CKEditorPlugin/kcfinder

File system path to the upload image directory. Usually leave this empty.

``

Name of the image subdirectory of the file upload directory

image

Name of the files subdirectory of the file upload directory

files

Name of the flash subdirectory of the file upload directory

flash

My kcfinder config:

<?php

/** This file is part of KCFinder project
  *
  *      @desc Base configuration file
  *   @package KCFinder
  *   @version 3.12
  *    @author Pavel Tzonkov <sunhater@sunhater.com>
  * @copyright 2010-2014 KCFinder Project
  *   @license http://opensource.org/licenses/GPL-3.0 GPLv3
  *   @license http://opensource.org/licenses/LGPL-3.0 LGPLv3
  *      @link http://kcfinder.sunhater.com
  */

/* IMPORTANT!!! Do not comment or remove uncommented settings in this file
   even if you are using session configuration.
   See http://kcfinder.sunhater.com/install for setting descriptions */

$_CONFIG = array(


// GENERAL SETTINGS

    'disabled' => true,
    'uploadURL' => "upload",
    'uploadDir' => "uploadimages",
    'theme' => "default",

    'types' => array(

    // (F)CKEditor types
        'files'   =>  "",
        'flash'   =>  "swf",
        'images'  =>  "*img",

    // TinyMCE types
        'file'    =>  "",
        'media'   =>  "swf flv avi mpg mpeg qt mov wmv asf rm",
        'image'   =>  "*img",
    ),


// IMAGE SETTINGS

    'imageDriversPriority' => "imagick gmagick gd",
    'jpegQuality' => 90,
    'thumbsDir' => ".thumbs",

    'maxImageWidth' => 0,
    'maxImageHeight' => 0,

    'thumbWidth' => 100,
    'thumbHeight' => 100,

    'watermark' => "",


// DISABLE / ENABLE SETTINGS

    'denyZipDownload' => false,
    'denyUpdateCheck' => false,
    'denyExtensionRename' => false,


// PERMISSION SETTINGS

    'dirPerms' => 0755,
    'filePerms' => 0644,

    'access' => array(

        'files' => array(
            'upload' => true,
            'delete' => true,
            'copy'   => true,
            'move'   => true,
            'rename' => true
        ),

        'dirs' => array(
            'create' => true,
            'delete' => true,
            'rename' => true
        )
    ),

    'deniedExts' => "exe com msi bat cgi pl php phps phtml php3 php4 php5 php6 py pyc pyo pcgi pcgi3 pcgi4 pcgi5 pchi6",


// MISC SETTINGS

    'filenameChangeChars' => array(/*
        ' ' => "_",
        ':' => "."
    */),

    'dirnameChangeChars' => array(/*
        ' ' => "_",
        ':' => "."
    */),

    'mime_magic' => "",

    'cookieDomain' => "",
    'cookiePath' => "",
    'cookiePrefix' => 'KCFINDER_',


// THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION SETTINGS

    '_normalizeFilenames' => false,
    '_check4htaccess' => false,
    //'_tinyMCEPath' => "/tiny_mce",

    '_sessionVar' => "KCFINDER",
    //'_sessionLifetime' => 30,
    //'_sessionDir' => "/full/directory/path",
    //'_sessionDomain' => ".mysite.com",
    //'_sessionPath' => "/my/path",

    //'_cssMinCmd' => "java -jar /path/to/yuicompressor.jar --type css {file}",
    //'_jsMinCmd' => "java -jar /path/to/yuicompressor.jar --type js {file}",

);

?>

My uploadimages directory structure:

uploadimages
--> image
--> files
--> flash

What should I do in order to get the images loaded?

This is the url from the popup browser window which return error 500:
http://mailing.domain.com/admin/plugins/CKEditorPlugin/kcfinder/browse.php?opener=ckeditor&type=image&CKEditor=message&CKEditorFuncNum=1&langCode=en

Thanks

@titanve

I get an error 500 message regarding the .htaccess file

what do you mean by this? You don’t request a .htaccess file directly, it is read by the web server.

Hello,

I get that error when I click the button Browse Server
image

What can I check in order to see where the problem is?

My /mailing.domain.com/public_html/lists/admin/plugins/CKEditorPlugin/kcfinder/conf directory has these 3 files:
.htaccess
config.php
upload.htaccess

Thanks

@duncanc
Please see answers above

This is the error message i get:

These are the cookies the kcfinder shows:

_ga GA1.2.1431263378.1523575330
browsetrail ?page=send&id=7&tk=4457da40773da67bc39a065c523dcf33
PHPSESSID 82d751f2a379f7d6c4f3b6772b985b68

The reference to .htaccess is just a general warning, but you can try removing the file from the admin/plugins/CKEditorPlugin/kcfinder directory to see whether that makes any difference. That htaccess file uses similar directives to the .htaccess file in the /lists directory, so I don’t think that there is anything invalid in it.

But the web server error log should report the cause of the 500 error.

This is the content of the .htaccess file in /kcfinder folder:

<FilesMatch "\.php$">

# Apache < 2.3
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Allow from all
        Satisfy All
    </IfModule>

# Apache ≥ 2.3
    <IfModule mod_authz_core.c>
        Require all granted
    </IfModule>
</FilesMatch>

I suggested that you remove that file to see whether it has any effect, and to review the web server error log.

Have you done either of those? I suggest that you raise the problem with your server hosting company.

1 Like

Yeah, I deleted the .htaccess and still the same

Ok I’m going to contact hostgator support

Thanks