Fckeditor XML Request error:internal Server error (500) Solution Summary _ Web page Editor

Source: Internet
Author: User
Originally has been able to use the Ecshop background information released inside the FCKeditor upload function, changed a machine can not be used. Thought is the file damage, upload side not.
What XML error, also pops up a large JavaScript alert warning box, content is server-side error 500 content
Online search, and said that is the configuration problem, subject matter, think about should not, direct request

Copy Code code as follows:

filemanager/connectors/php/connector.php


Out of the server 500 error, HTML file access, TXT also line.
Later, starting from the root directory, found that the FCKeditor directory inside the PHP file can not access the beginning.

Changed the FCK. the properties of the editor directory are 755, problem solving.

question two

A lot of people on the Internet mentioned that later release of the FCKeditor2.3 version, to set the Fckeditoreditorfilemanagerconnectorsaspx directory under the Connector.aspx, and upload.aspx to join the Theme= "", but I test, so still not, carefully look at the hint of the error, the original is not so complex, in fact, your upload folder is not set, the first to confirm that your folder has Write permission, And then web.config inside to pay attention to write path settings, ~/represents the root directory of the current site,/performance of the file located in the root of the computer, recommended according to your file structure, select the first setting.

It is the theme of the trouble:

Because asp.net2.0 has added theme functionality, if you use StyleSheetTheme or theme for web.config in your project, then you need to change it a little bit.
or to the directory where FCKeditor is located, Open the editorfilemanageruploadaspxupload.aspx and editorfilemanagerbrowserdefaultconnectorsaspxconnector.aspx two ASPX files, and add them to the page label, respectively. Theme= "" or stylesheettheme= "" To see what you are using in the project to modify what. Modified as follows:

Copy Code code as follows:

<%@ Page language= "C #" inherits= "FredCK.FCKeditorV2.Uploader" autoeventwireup= "false" Theme= ""%>

Or
Copy Code code as follows:

<%@ Page language= "C #" inherits= "FredCK.FCKeditorV2.Uploader" autoeventwireup= "false" Stylesheettheme= ""%>


This solves the internal error of 500.

Foreign Websites

After Download your change this Lines in FileWorkerBase.cs

Copy Code code as follows:

Protected string Userfilesdirectory
{
Get
{
if (suserfilesdirectory = null)
{
Get the local (server) directory path translation. This. Userfilespath
Suserfilesdirectory = Server.MapPath (string. Format ("{0}{1}", "~", "/userfiles/"));
}
return suserfilesdirectory;
}
}

Now BUiD Project and change the Refrence to FredCK.FCKeditorV2.dll (Refrence Again)
Copy Code code as follows:

After the building this Changes and adding the Project go to the fckconfig.js and change as this Lines
var _filebrowserlanguage = ' aspx '; ASP | aspx | CFM | Lasso | Perl | php | Py
var _quickuploadlanguage = ' aspx '; ASP | aspx | CFM | Lasso | Php

question four:
Recently wrote an article management system, referring to some experience on the network. Feel like starting to learn Web programming again, the gap is really too big. Like 2000 before and after, has studied HTML, Perl, PHP, ASP, JS, VBS, and later also learned JSP, database used access, MSSQL, MySQL, and then learned Oracle. It's always a bit familiar to pick up now, but it's not the same thing.
Now began to learn aspx, found that if you want to learn a language, easy to say, in fact, want to really grasp, it is not easy. If there is no solid foundation, always feel difficult to be handy.

Article management system used in the FCKeditor upload file, in the native compile run or good, but to the Win2003 server on the normal operation. Tip fckeditor:xml Request error:internal Server error (500). Because it is set up as an independent domain controller, looking for half a day of information, according to all the requirements to do, a good four or five days, or not. Later, there was no way to install a stand-alone server, a trial, it may not be clear at that time. Then according to the requirements of the unit to join the domain, the next day to try, and die, really helpless.
There is no way, but to start from scratch. The test.html copy back, the test results are quoted FredCK.FCKeditorV2.dll out of the problem, really did not think. Hint Util.createdirectory () An error occurred. Find the Util.cs in FredCK.FCKeditorV2.dll's source code, and find that one of them is:
The ' _mkdir ' function is used by the ' createdirectory ' method.
[DllImport ("Msvcrt.dll", Setlasterror=true)]
private static extern int _mkdir (string path);
From this thought may be the system of this Msvcrt.dll inconsistency caused the program call error, see the version is really different, the server is Win2003 SP1, is not joined the domain after the change of access rules, has not found what is the reason.
Carefully read the source code, which involves the removal of the Msvcrt.dll, replace it with Directory.CreateDirectory (), After compiling the FredCK.FCKeditorV2.dll copy to the article Management System bin directory, normal operation, Win2003 SP1 also normal.
The source code also shows that if the direct use of System.IO.Directory.CreateDirectory () will appear abnormal prompts, but it was developed using vs2003, and vs2005 did not appear abnormal prompts, can be used normally.
Because FCKeditor involves more languages, can only be modified in this way, together with the bar.
Modified Util.cs Reference Source code:
Copy Code code as follows:

using System;
using System.Runtime.InteropServices;
using System.IO;
using System.Collections;

Namespace Fredck.fckeditorv2
{
Public sealed class Util
{
Private Util ()
{}

public static DirectoryInfo createdirectory (string path)
{
Directory.CreateDirectory (path);
return new DirectoryInfo (path);}
}
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.