CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Can't upload images for mailing in CKEditor
Pages: [1]

Author Topic: Can't upload images for mailing in CKEditor  (Read 1251 times)

tv2011

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5
Can't upload images for mailing in CKEditor
March 19, 2014, 06:36:02 am
When I try to upload an image via CKEditor for a mailing, I get a permissions error. The details are:

Code: [Select]
Mar 18 11:56:05  [info] $Fatal Error Details = Array
(
    [message] => You must be logged in with proper permissions to edit, add, or delete uploaded images.
    [code] =>
)


Mar 18 11:56:05  [info] $backTrace = #0 /srv/domain.tld/public/htdocs/profiles/civicrm_starterkit/modules/civicrm/CRM/Core/Error.php(322): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /srv/domain.tld/public/htdocs/profiles/civicrm_starterkit/modules/civicrm/packages/kcfinder/integration/civicrm.php(68): CRM_Core_Error::fatal("You must be logged in with proper permissions to edit, add, or delete uploade...")
#2 /srv/domain.tld/public/htdocs/profiles/civicrm_starterkit/modules/civicrm/packages/kcfinder/integration/civicrm.php(137): checkAuthentication()
#3 /srv/domain.tld/public/htdocs/profiles/civicrm_starterkit/modules/civicrm/packages/kcfinder/core/autoload.php(43): require("/srv/domain.tld/public/htdocs/profiles/civicrm_starterkit/mo...")
#4 /srv/domain.tld/public/htdocs/profiles/civicrm_starterkit/modules/civicrm/packages/kcfinder/upload.php(15): require("/srv/domain.tld/public/htdocs/profiles/civicrm_starterkit/mo...")
#5 {main}

Any ideas what's causing this? I've set the relevant directories to have 777 permissions.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Can't upload images for mailing in CKEditor
March 19, 2014, 06:38:38 am
Are you accessing your site with the exact same URL as is listed in your civicrm.settings.php file? Check if the leading www is different, as this can cause this error.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

tv2011

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5
Re: Can't upload images for mailing in CKEditor
March 19, 2014, 06:49:17 am
Checking civicrm.settings.php, I see this:

Code: [Select]
define( 'CIVICRM_UF_BASEURL'      , 'http://domain.tld/' );

Which looks correct.

The site is running in a VirtualHost in Apache - could that cause a problem?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Can't upload images for mailing in CKEditor
March 19, 2014, 07:13:57 am
Are you certain your Drupal user indeed has the required permissions?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

tv2011

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5
Re: Can't upload images for mailing in CKEditor
March 19, 2014, 07:20:30 am
Well, I'm logged in as admin. That should give me everything I need, right?

tv2011

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5
Re: Can't upload images for mailing in CKEditor
March 19, 2014, 02:23:36 pm
One weird thing is that I'm able to upload html files for mailings fine, and upload CSV files for contact import, so this seems to be restricted to CKEditor.

tv2011

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5
Re: Can't upload images for mailing in CKEditor
March 19, 2014, 03:20:41 pm
Actually, this seems to be a problem with KCFinder - this post seems to be closest to my problem: http://forum.civicrm.org/index.php?topic=30066.0

Currently I'm wondering whether this is related to me using the CiviCRM Starter Kit profile. I may soon have a post up asking about the best way to migrate from the Starter Kit to a standard Drupal/CiviCRM installation!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Can't upload images for mailing in CKEditor
March 20, 2014, 03:07:54 am
Quote from: tv2011 on March 19, 2014, 03:20:41 pm
Currently I'm wondering whether this is related to me using the CiviCRM Starter Kit profile.

Hard to say, but there have been other cases of issues with this profile.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

tv2011

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5
Re: Can't upload images for mailing in CKEditor
March 22, 2014, 03:24:53 pm
Just updating this - migrating from the Starter Kit to a plain Drupal module solved this.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Can't upload images for mailing in CKEditor

This forum was archived on 2017-11-26.