It turns out that the fckeditor upload function in the ecshop background information release that has always been used can no longer be used after changing the machine. I thought the file was damaged, but it was not possible to upload it on one side.
What is the xml error? A large JavaScript alert warning box pops up, and the content is 500 errors on the server side
Searching online, it was also said that it was a configuration problem or a topic problem. It should not be considered as a matter of the problem, so I directly requested it.
filemanager/connectors/php/
There is an error of 500 on the server, the html file can be accessed, and txt can be used.
Later, I started to check from the root directory and found that the php file in the fckeditor directory cannot be accessed.
Change fckThe editor directory's attribute is 755, problem solved.
Question 2
Many people on the Internet mentioned that the later release of FCKeditor2.3 requires the addition of theme="" in the fckeditoreditorfilemanagerconnectorsspx directory, but after my test, this still doesn't work. I carefully read the errors in the prompts. It turns out that it is not that complicated at all. In fact, it is because your upload folder is not set correctly. First, you need to confirm that your folder has write permissions, and then pay attention to the write path settings. ~/ indicates the root directory of the current site and/ the root directory of the computer where the file is represented. It is recommended to select the first setting according to your file structure.
It turns out that the theme caused the trouble:
Because ASP.NET 2.0 has added Theme function, if you use styleSheetTheme or theme in your project, you need to modify it more.
Or go to the directory where FCKeditor is located, open and two aspx files respectively, and add Theme="" or StyleSheetTheme="" to the page tag to modify whatever you are using in the project. After modification, the following is:
<%@ Page language="c#" Inherits="FredCK." AutoEventWireup="false" Theme="" %>
or
<%@ Page language="c#" Inherits="FredCK." AutoEventWireup="false" StylesheetTheme="" %>
This solves the internal error of 500.
Foreign websites
After Download You Change This Lines In
protected string UserFilesDirectory
{
get
{
if ( sUserFilesDirectory == null )
{
// Get the local (server) directory path translation.
sUserFilesDirectory = (("{0}{1}","~","/UserFiles/"));
}
return sUserFilesDirectory ;
}
}
Now Buid Project And Change The Refrence To FredCK. (Refrence Again)
After Building This Changes And Adding Project Go To and Change like This Lines
var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | php
Question 4:
Recently I wrote an article management system, referring to some experience on the Internet. I feel like I'm starting to learn web programming again, the gap is so big. I think around 2000, I learned html, perl, php, asp, JS, VBS, and later I also learned jsp, etc. The database used access, mssql, mysql, and later learned oracle. Now that I pick it up again, it always seems familiar, but it is not the same thing after all.
Now I start learning aspx and find that if I want to learn a language well, it is easy to say, but in fact, it is not easy to really master it. Without a solid foundation, it will always feel difficult to be able to handle it.
The article management system uses fckeditor to upload files, and it is still good to compile and run on the local machine, but it cannot run normally on the win2003 server. Prompt FCKeditor: XML Request error:internal server error (500) . Because I set it up as an independent domain controller, I searched for information for a long time and did it according to all requirements, and it took four or five days, but it still couldn't. Later, there was no way to install it as an independent server. After trial, it might not be cleared at that time. Then I joined the domain as required by the unit, and tried again the next day, but it didn't work anymore. I was helpless.
There was really no way, so I had to start from scratch. Copy the one back, and the test result turned out to be the referenced FredCK. There was something wrong with it, I really didn't expect it. An error occurred when prompting (). Found the source code of FredCK. and found that one of them is:
// The "_mkdir" function is used by the "CreateDirectory" method.
[DllImport("", SetLastError=true)]
private static extern int _mkdir(string path) ;
From this I thought that this inconsistency in the system may have caused an error in the program call. After checking, I found that the version is indeed different. The server is from win2003 sp1. Is it a change in the access rules after joining the domain? I haven't found the reason.
I carefully read the source code, replaced it with (), and copied FredCK to the bin directory of the article management system after compilation, and ran normally, and it was also normal in win2003 sp1.
The source code also states that if you use() directly, you will get an exception prompt. However, it was developed using vs2003 at that time, and there was no exception prompt in vs2005, so it can be used normally.
Since fckeditor involves a lot of languages, you can only modify it like this first and just use it.
Modified reference source code:
using System ;
using ;
using ;
using ;
namespace FredCK.FCKeditorV2
{
public sealed class Util
{
private Util()
{}
public static DirectoryInfo CreateDirectory( string path )
{
(path);
return new DirectoryInfo(path); }
}
}
What is the xml error? A large JavaScript alert warning box pops up, and the content is 500 errors on the server side
Searching online, it was also said that it was a configuration problem or a topic problem. It should not be considered as a matter of the problem, so I directly requested it.
Copy the codeThe code is as follows:
filemanager/connectors/php/
There is an error of 500 on the server, the html file can be accessed, and txt can be used.
Later, I started to check from the root directory and found that the php file in the fckeditor directory cannot be accessed.
Change fckThe editor directory's attribute is 755, problem solved.
Question 2
Many people on the Internet mentioned that the later release of FCKeditor2.3 requires the addition of theme="" in the fckeditoreditorfilemanagerconnectorsspx directory, but after my test, this still doesn't work. I carefully read the errors in the prompts. It turns out that it is not that complicated at all. In fact, it is because your upload folder is not set correctly. First, you need to confirm that your folder has write permissions, and then pay attention to the write path settings. ~/ indicates the root directory of the current site and/ the root directory of the computer where the file is represented. It is recommended to select the first setting according to your file structure.
It turns out that the theme caused the trouble:
Because ASP.NET 2.0 has added Theme function, if you use styleSheetTheme or theme in your project, you need to modify it more.
Or go to the directory where FCKeditor is located, open and two aspx files respectively, and add Theme="" or StyleSheetTheme="" to the page tag to modify whatever you are using in the project. After modification, the following is:
Copy the codeThe code is as follows:
<%@ Page language="c#" Inherits="FredCK." AutoEventWireup="false" Theme="" %>
or
Copy the codeThe code is as follows:
<%@ Page language="c#" Inherits="FredCK." AutoEventWireup="false" StylesheetTheme="" %>
This solves the internal error of 500.
Foreign websites
After Download You Change This Lines In
Copy the codeThe code is as follows:
protected string UserFilesDirectory
{
get
{
if ( sUserFilesDirectory == null )
{
// Get the local (server) directory path translation.
sUserFilesDirectory = (("{0}{1}","~","/UserFiles/"));
}
return sUserFilesDirectory ;
}
}
Now Buid Project And Change The Refrence To FredCK. (Refrence Again)
Copy the codeThe code is as follows:
After Building This Changes And Adding Project Go To and Change like This Lines
var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | php
Question 4:
Recently I wrote an article management system, referring to some experience on the Internet. I feel like I'm starting to learn web programming again, the gap is so big. I think around 2000, I learned html, perl, php, asp, JS, VBS, and later I also learned jsp, etc. The database used access, mssql, mysql, and later learned oracle. Now that I pick it up again, it always seems familiar, but it is not the same thing after all.
Now I start learning aspx and find that if I want to learn a language well, it is easy to say, but in fact, it is not easy to really master it. Without a solid foundation, it will always feel difficult to be able to handle it.
The article management system uses fckeditor to upload files, and it is still good to compile and run on the local machine, but it cannot run normally on the win2003 server. Prompt FCKeditor: XML Request error:internal server error (500) . Because I set it up as an independent domain controller, I searched for information for a long time and did it according to all requirements, and it took four or five days, but it still couldn't. Later, there was no way to install it as an independent server. After trial, it might not be cleared at that time. Then I joined the domain as required by the unit, and tried again the next day, but it didn't work anymore. I was helpless.
There was really no way, so I had to start from scratch. Copy the one back, and the test result turned out to be the referenced FredCK. There was something wrong with it, I really didn't expect it. An error occurred when prompting (). Found the source code of FredCK. and found that one of them is:
// The "_mkdir" function is used by the "CreateDirectory" method.
[DllImport("", SetLastError=true)]
private static extern int _mkdir(string path) ;
From this I thought that this inconsistency in the system may have caused an error in the program call. After checking, I found that the version is indeed different. The server is from win2003 sp1. Is it a change in the access rules after joining the domain? I haven't found the reason.
I carefully read the source code, replaced it with (), and copied FredCK to the bin directory of the article management system after compilation, and ran normally, and it was also normal in win2003 sp1.
The source code also states that if you use() directly, you will get an exception prompt. However, it was developed using vs2003 at that time, and there was no exception prompt in vs2005, so it can be used normally.
Since fckeditor involves a lot of languages, you can only modify it like this first and just use it.
Modified reference source code:
Copy the codeThe code is as follows:
using System ;
using ;
using ;
using ;
namespace FredCK.FCKeditorV2
{
public sealed class Util
{
private Util()
{}
public static DirectoryInfo CreateDirectory( string path )
{
(path);
return new DirectoryInfo(path); }
}
}