I am difficulty with integrating CKFinder with CKEditor. You can view my attempt editing the CKFinder PHP sample file at:
http://www.okaquariumgiftshops.com/CKFinder/_samples/php/ckeditor.php
CKEditor is setup and working perfectly within the Zen-Cart application - that wasn't so frustrating as trying to get CKFinder setup and working!!
Following is the error message that I receive:
CKFinder - Sample - CKEditor Integration
--------------------------------------------------------------------------------
CKFinder can be easily integrated with CKEditor. Try it now, by clicking the "Image" or "Link" icons and then the "Browse Server" button.
Error: CKEditor not found. This sample assumes that CKEditor (not included with CKFinder) is installed in the "ckeditor" sibling folder of the CKFinder installation folder. If you have it installed in a different place, just edit this file, changing the wrong paths in the include (line 57) and the "basePath" values (line 70).
Warning: include_once(/shop/editors/ckeditor/ckeditor.php) [function.include-once]: failed to open stream: No such file or directory in /home/content/68/7738968/html/CKFinder/_samples/php/ckeditor.php on line 57
Warning: include_once() [function.include]: Failed opening '/shop/editors/ckeditor/ckeditor.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/68/7738968/html/CKFinder/_samples/php/ckeditor.php on line 57
Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/content/68/7738968/html/CKFinder/_samples/php/ckeditor.php on line 58
Warning: require_once(http://www.okaquariumgiftshops.com/ckfi ... finder.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/content/68/7738968/html/CKFinder/_samples/php/ckeditor.php on line 58
Fatal error: require_once() [function.require]: Failed opening required 'http://www.okaquariumgiftshops.com/ckfinder/ckfinder.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/68/7738968/html/CKFinder/_samples/php/ckeditor.php on line 58
I tested the paths using the html sample file and the script found the files. I cannot seem to figure out why the PHP version would not also work.
Thank you!
Jerry
BTW - following is my modified PHP sample file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file or part of its contents. The contents of
* this file is part of the Source Code of CKFinder.
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CKFinder - Sample - CKEditor</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex, nofollow" />
<link href="../sample.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>
CKFinder - Sample - CKEditor Integration
</h1>
<hr />
<p>
CKFinder can be easily integrated with <a href="http://ckeditor.com">CKEditor</a>. Try it now, by clicking
the "Image" or "Link" icons and then the "<strong>Browse Server</strong>" button.</p>
<?php
// Helper function for this sample file.
function printNotFound( $ver )
{
static $warned;
if (!empty($warned))
return;
echo '<p><br><strong><span class="error">Error</span>: '.$ver.' not found</strong>. ' .
'This sample assumes that '.$ver.' (not included with CKFinder) is installed in ' .
'the "ckeditor" sibling folder of the CKFinder installation folder. If you have it installed in ' .
'a different place, just edit this file, changing the wrong paths in the include ' .
'(line 57) and the "basePath" values (line 70).</p>' ;
$warned = true;
}
// This is a check for the CKEditor PHP integration file. If not found, the paths must be checked.
// Usually you'll not include it in your site and use correct path in line 57 and basePath in line 70 instead.
// Remove this code after correcting the include_once statement.
if ( !@file_exists( 'http://www.okaquariumgiftshops.com/shop/editors/ckeditor/ckeditor.php' ) )
{
if ( @file_exists('http://www.okaquariumgiftshops.com/shop/editors/ckeditor/ckeditor.js') || @file_exists('http://www.okaquariumgiftshops.com/shop/editors/ckeditor/ckeditor_source.js') )
printNotFound('CKEditor 3.1+');
else
printNotFound('CKEditor');
}
include_once 'http://www.okaquariumgiftshops.com/shop/editors/ckeditor/ckeditor.php' ;
require_once '../../ckfinder.php' ;
// This is a check for the CKEditor class. If not defined, the paths in lines 57 and 70 must be checked.
if (!class_exists('CKEditor'))
{
printNotFound('CKEditor');
}
else
{
$initialValue = '<p>Just click the <b>Image</b> or <b>Link</b> button, and then <b>"Browse Server"</b>.</p>' ;
$ckeditor = new CKEditor( ) ;
$ckeditor->basePath = 'http://www.okaquariumgiftshops.com/shop/editors/ckeditor/' ;
// Just call CKFinder::SetupCKEditor before calling editor(), replace() or replaceAll()
// in CKEditor. The second parameter (optional), is the path for the
// CKFinder installation (default = "/ckfinder/").
CKFinder::SetupCKEditor( $ckeditor, '../../' ) ;
$ckeditor->editor('CKEditor1', $initialValue);
}
?>
</body>
</html>
Tue, 06/28/2011 - 20:18
#1
Re: CKFinder Integration with CKEditor for Zen-Cart
Re: CKFinder Integration with CKEditor for Zen-Cart
@JerryAPowes - we cannot help every single person to integrate CKFinder with their application or learn how to code in PHP.
If you are having troubles with understanding PHP warnings like:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
hello
I'm having a problem with installing the CKEditor v3.6.5 on my zencart 1.5.1 , my zencart contain two languages , English and Dutch and when I activate the CKEditor text editor it doesn't work for me as it should it shows only for English and it's grey (not editable) please check the attachment ! please help !
Attachments: