fck editor image upload failing in my server. images are not uploading. but it is working in my localhost.....plz tell me what to do?

Recommended Answers

All 23 Replies

ok are you getting any errors, are you changing any thing on the script that you are uploading on to your server

no...as it is uploaded. and one thing i obsorbed it is working in my '.com' site but not working in '.in' site.

can you show us some coding and is there any errors?

i have fck folder and it is including in my page. if you have it for check i will send you. but it is working in my localhost. can i send?

<? 
ob_start();
session_start();
 include("FCKeditor/fckeditor.php");
 ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<?php			
					$oFCKeditor = new FCKeditor('description'); 
					$oFCKeditor->BasePath = 'FCKeditor/';
					$oFCKeditor->Value = stripslashes($description);
					$oFCKeditor->Width  = '550' ;
					$oFCKeditor->Height = '400' ;
					$oFCKeditor->Create() ;
			   ?>
</body>
</html>

i understanding it is not working but i have to know what are the errors that you are getting. and i just uploaded it on to my wamp (localhost) and it works fine

but it is not working in my server. in my '.com' working but '.in' not working. why?

is there any other editors like fck? i downloaded cke editor but there is not coming image upload button when ever you upload image in server. you have any idea? i will send attachments now. integrate once and check image upload . in demo version there is upload button but in our script it is not displaying upload button.

1) There may be different settings on your .com to your .in. You may need to read the CKEditor documentations and make sure that all the settings/ supports are on your site.

2) Are you getting any specific errors on your .in. When you run it on your .in what are you seeing on the screen. (Is it just a blank screen?)

hmm...displaying fck editor all functions are working fine. but when ever image uploads in to server there is not uploading . not displaying any error. and displaying as it is fck.

1) There may be different settings on your .com to your .in.

what is that settings?

hmmm one of the best other editors i know is nicedit(link), you can give that a try. You can also try tinymce

i will try nicedit. tinymce already used. in tiny editor also i am not getting upload button when i am uploading in the server. so i will try nicedit.

what is that settings?

settings such as the right php settings, is your php version up to-date

also check and make sure all your files permission are set to 0777

getting this error

Deprecated: Function eregi() is deprecated in /var/www/nicedit.com/upload/imageshack.class.php on line 75

code is here. when i upload an image getting this error. check once

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<div id="sample">
 
      <script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script> <script type="text/javascript">
  
      //<![CDATA[
 
      bkLib.onDomLoaded(function() {
   
      new nicEditor().panelInstance('area1');
   
      new nicEditor({fullPanel : true}).panelInstance('area2');
 
      new nicEditor({iconsPath : '../nicEditorIcons.gif'}).panelInstance('area3');
  
      new nicEditor({buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html','image']}).panelInstance('area4');
 
      new nicEditor({maxHeight : 100}).panelInstance('area5');

      });

      //]]>
  
      </script>
 
      <h4>
  
      Default (No Config Specified)
  
      </h4>
 
      <p>

      new nicEditor().panelInstance('area1');
 
      </p>
 
      <textarea cols="50" id="area1">

      </textarea>
 
      <h4>
 
      All Available Buttons {fullPanel : true}
  
      </h4>

      <p>
 
      new nicEditor({fullPanel : true}).panelInstance('area2');
 
      </p>
 
      <textarea cols="60" id="area2">
 
      Some Initial Content was in this textarea
  
      </textarea>
 
      <h4>

      Change Path to Icon File {iconsPath : 'path/to/nicEditorIcons.gif'}
 
      </h4>
  
      <p>
 
      new nicEditor({iconsPath : 'nicEditorIcons.gif'}).panelInstance('area3');
 
      </p>
 
      <textarea cols="50" id="area3">
  
      </textarea>
 
      <h4>

      Customize the Panel Buttons/Select List
 
      </h4>
  
      <p>
 
      {buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript']}
  
      </p>

      <textarea cols="50" id="area4">
 
      HTML content default in textarea

      </textarea>

      <h4>

      Set a maximum expansion size (maxHeight)
 
      </h4>
 
      <p>
  
      {maxHeight : 100}
 
      </p>
 
      <textarea style="height: 100px;" cols="50" id="area5">
 
      HTML content default in textarea
 
      </textarea>
 
      </div>
</body>
</html>

are you using wamp as your local host?

ok one way i know how to fix a "Deprecated" error on wamp is do downgrade php and restart all services

1) Click on the wamp tray icon -> PHP -> Version -> Get more
It will open your browser to the wamp site and you can see the list of different versions of php.
2) download the PHP 5.2.9-2 installer

3) Shut down WAMP and install 5.2.9-2 exe
make sure that wamp is completely shut down (Not put offline) before you install the php.

4) Restart WAMP and all it services.

5) back on the wamp tray icon -> PHP -> Version and then tagged 5.2.9-2 then click again on the wamp tray icon click on Restart All Services and it should be fixed.

also check and make sure all your files permission are set to 0777

if you dont mind i have a small doubt. where can i change write permissions in fck folder.

fully blank mind. even one editor is not supporting correctly.
tell me plz in ckeditor when image upload in popup box upload button not appearing. how to do for appear?

ok are you getting any errors, are you changing any thing on the script that you are uploading on to your server

hello....

in fck image upload when ever i press create a new folder in server then alerting this message.

You have no permissions to create the folder

except this nothing error.

to change the permission of a file on windows

right click -> properties -> security -> you should be able to see edit permission.
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.