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) »
  • Cannot get ckeditor or drupal default editor to work after moving
Pages: [1]

Author Topic: Cannot get ckeditor or drupal default editor to work after moving  (Read 3023 times)

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Cannot get ckeditor or drupal default editor to work after moving
September 11, 2012, 09:21:43 am
I cannot get either the ckeditor or drupal default editor work (specifically image uploading function) after I moved my drupal 7.15+civicrm 4.1 website to the production server. The problem I am having are:
1. If I use ckeditor to upload the image, I get "cannot access or create thumbnails folder" error message when I click the "browser the server" button. And I got this error report in drupal:
Quote
Warning: include(/usr/local/apache2/htdocs/site_drupal/sites/default/files/civicrm/templates_c/en_US//%%91/918/91849C55%%p%3E%0A.php): failed to open stream: No such file or directory in Smarty::fetch() (line 1263 of /usr/local/apache2/htdocs/site_drupal/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php).
. I then go to the sites/default/files/civicrm/templates_c/en_US and found that the ownership of this folder "//%%91" is the server not me. and the chmod is 0751. I do not know why this folder is created in that way.

2. If I switch to drupal default editor, I am able to browse server and insert the image. But when I go to save the changes, I got this error:
Quote
Sorry. A non-recoverable error has occurred.
There is a validation error with your HTML input. Your activity is a bit suspicious, hence aborting
Return to home page.

I have worked on this issue for a few days now, but could not figure out how to solve it. Can anybody please advise me? Thanks very much!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cannot get ckeditor or drupal default editor to work after moving
September 11, 2012, 12:49:49 pm
Did you try deleting everything in sites/default/files/civicrm/templates_c ?
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.

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Cannot get ckeditor or drupal default editor to work after moving
September 11, 2012, 02:12:05 pm
Yes, I did. And I just did it again, including the ConfigAndLog folder. But this did not solve the problem. The interesting thing is after I delete the content under template_c directory, the ownership of the content created after the deletion under this directory is 500 (I guess it belongs to server?), not me (505). It seems to me there is a file permission problem somewhere, but I could not find out where to fix this.

The file permission has been an issue since the successful installation of this civicrm 4.15. I had to change a lot of file permissions to 777 in order to get the civicrm work correctly. Most issues have been resolved in that way except this one.

And I also get an error report in the drupal log every time I flush the caches in drupal. And I wonder if those errors are related to the issue in civicrm as well. Did I mess the site up by changing the permissions? Should I reinstall the civicrm? Any help would be greatly appreciated!!!
Quote
Warning: include(): Failed opening '/usr/local/apache2/htdocs/site_drupal/sites/default/files/civicrm/templates_c/en_US//%%E4/E44/E44922CB%%p%3E%0A.php' for inclusion

Warning: filemtime(): stat failed for /usr/local/apache2/htdocs/site_drupal/sites/default/files/civicrm/templates_c/en_US//%%3C/3CB/3CB3BD2E%%p%3E%0A.php in Smarty->_is_compiled() (line 1390 of /usr/local/apache2/htdocs/site_drupal/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php).

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'ctools-stylizer:slideshow_style_plain:31fe865488eaa9f8f191f04854' for key 'PRIMARY': INSERT INTO {ctools_css_cache} (cid, filename, css, filter)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cannot get ckeditor or drupal default editor to work after moving
September 12, 2012, 03:54:37 am
I'm not sure. I would think that reinstalling CiviCRM would be a good debugging step. If you can install into another database, then you can switch back to your real one if you can get the install to work.
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.

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Cannot get ckeditor or drupal default editor to work after moving
September 12, 2012, 06:40:15 am
Thank you for your responses! I will try to reinstall if I still cannot solve this today.

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Cannot get ckeditor or drupal default editor to work after moving
October 04, 2012, 10:13:21 am
Hi Hershel, I am back again to ask you this question (or anybody else who can help). I could not get the ck editor work still. It seems that there is a file permission problem with sites/default/files/civicrm/templates_c directory, but I don't know how to fix it -- I have to let the server admin know what exactly needs to be fixed since our site is hosted within an institute and they do not really want to spend much time to support us due to the different technology our organization is using. Anyway, it would be greatly appreciated if you could advise me what I should ask them to do.

Here is the problem:
I had templates_c and en_US folders permissions set as 777, and changed their ownership to me (505), but all folders generated under en_US directory are having a permission of 0751 and the ownership is the server (500).

In the drupal error report, I got some errors like this:
Quote
Warning: include(): Failed opening '/usr/local/apache2/htdocs/drupal/sites/default/files/civicrm/templates_c/en_US//%%3C/3CB/3CB3BD2E%%p%3E%0A.php' for inclusion (include_path='.:/usr/local/apache2/htdocs/drupal/sites/all/modules/civicrm:/usr/local/apache2/htdocs/drupal/sites/all/modules/civicrm/packages:.:/usr/local/lib/php') in Smarty::fetch() (line 1263 of /usr/local/apache2/htdocs/drupal/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php).

include(/usr/local/apache2/htdocs/drupal/sites/default/files/civicrm/templates_c/en_US/%%3C/3CB/3CB3BD2E%%p%3E%0A.php): failed to open stream: No such file or directory in Smarty::fetch() (line 1263 of /usr/local/apache2/htdocs/drupal/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php).

Thanks for your help in advance!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cannot get ckeditor or drupal default editor to work after moving
October 08, 2012, 01:02:28 pm
Why did you change them from 777?
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.

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Cannot get ckeditor or drupal default editor to work after moving
October 08, 2012, 02:32:51 pm
I was trying different options in order to get it work. It did not work either when the folder was with the default permission and ownership. I actually had to change all directories and sub-directories' permission to 777 after I moved the site to current server in order to get most functionality of the site work. Otherwise it would give me a "file permission not correct" error. Everything on the testing site with the same modules, configurations, and content works just fine.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Cannot get ckeditor or drupal default editor to work after moving

This forum was archived on 2017-11-26.