Of course. "Dede request error" (织梦请求错误) is a common error message seen in the DedeCMS (织梦内容管理系统) backend. It's a generic error, which means it can be caused by many different issues, ranging from simple configuration problems to more complex server-side issues.

Here is a comprehensive guide to help you understand, diagnose, and fix this error.
Understanding the Error
The error message "Dede request error" typically appears when the DedeCMS backend (the admin panel) tries to perform an action (like saving an article, updating a configuration, or managing files) but the server refuses the request for some reason. It's essentially a "catch-all" error from DedeCMS.
Common Causes and Solutions
Let's go through the most common causes, from easiest to hardest to fix.
PHP max_execution_time or memory_limit Exceeded
This is the most common cause. If you are trying to upload a large file, import many articles at once, or process a large amount of data, the PHP script might run for too long or use too much memory, causing the server to kill the process and return an error.

How to Fix:
- Check your PHP Limits: In your DedeCMS backend, go to System > System Settings > PHP Environment Information. Look at the values for
max_execution_timeandmemory_limit. - Increase the Limits:
- Recommended Values:
max_execution_time:300(5 minutes) or higher.memory_limit:256Mor higher.
- How to Change:
- Via
php.ini(Recommended): Find yourphp.inifile (you can find its path in the PHP Environment Info page in DedeCMS). Edit the file and change the values:max_execution_time = 300 memory_limit = 256M
Save the file and restart your web server (Apache/Nginx).
- Via
.htaccess(If you don't have access tophp.ini): Add the following lines to the root.htaccessfile of your website:php_value max_execution_time 300 php_value memory_limit 256M
- Via
admin/php.ini: Some hosts allow you to create aphp.inifile in your/dede/(admin) directory. This is the best approach as it only affects the backend. Create a file namedphp.iniin the/dede/folder with the content:max_execution_time = 300 memory_limit = 256M
- Via
- Recommended Values:
File and Folder Permissions (Incorrect CHMOD)
DedeCMS needs to write to several directories to function correctly, such as /data/, /uploads/, /templets/, etc. If these folders have incorrect permissions, any action that requires writing will fail.
How to Fix:

- Set Correct Permissions: Using an FTP client (like FileZilla) or your hosting control panel's file manager, set the following folders and their contents to
755(for directories) and644(for files)./data//uploads//templets//include//special//html/(if you use static page generation)
- Important: The
/data/directory is critical. Ensure it is writable (755is usually sufficient). You can also try setting it to777temporarily as a test, but remember to change it back to755after fixing the error for security reasons.
Server Security Software (ModSecurity, WAF, etc)
Your web host might have a Web Application Firewall (WAF) or ModSecurity enabled. These security tools can block specific requests that they deem suspicious, even if they are legitimate DedeCMS actions.
How to Fix:
- Check your server's error logs: This is the most important step. Look for a
403 Forbiddenor406 Not Acceptableerror around the time you got the "Dede request error". The error log will often tell you why the request was blocked (e.g., "SQL Injection attempt detected"). - Whitelist DedeCMS: If you find the cause in the logs, you can try to whitelist your DedeCMS installation in the security software's configuration panel. If you don't have access, you will need to contact your hosting provider support.
- Temporarily Disable Security Software (Use with Caution!): As a test, you can try temporarily disabling ModSecurity for your site to see if the error goes away. Do not leave it disabled permanently.
Session or Cookie Issues
Sometimes, the session data can become corrupted, or the session directory is not writable, causing the login to fail or actions to be rejected.
How to Fix:
- Clear Browser Cache and Cookies: Log out of your DedeCMS admin panel, clear your browser's cache and cookies, and then log back in.
- Check Session Directory: Ensure the session directory (usually
/tmp/in your server's root) is writable by the web server user. You can check this in the System > PHP Environment Information page in DedeCMS.
safe_mode is Enabled (Older Servers)
If you are on a very old hosting server, safe_mode might be enabled in php.ini. This setting is deprecated and causes many problems with applications like DedeCMS that need to execute files from different directories.
How to Fix:
- Contact your hosting provider and ask them to disable
safe_modefor your account. If they cannot or will not, it's a strong sign that you need to upgrade your hosting plan.
Server Overload or High Traffic
If your server is under heavy load (CPU or memory usage is at 100%), it may not be able to process your request in time, leading to a timeout and the error.
How to Fix:
- Check Server Resources: Use your hosting control panel (cPanel, Plesk, etc.) to check your server's current load, CPU, and memory usage.
- Optimize Your Site: If the server is overloaded, you may need to optimize your DedeCMS site (e.g., by disabling unnecessary plugins, cleaning up the database, or using caching).
DedeCMS File Corruption
It's possible that a core DedeCMS file has become corrupted.
How to Fix:
- Re-upload Core Files: Download a fresh copy of the exact same version of DedeCMS from the official website. Using FTP, re-upload all the files from the fresh copy to your server, overwriting the existing ones. Be careful not to overwrite your
/data/,/uploads/, or/templets/directories unless you have a backup.
A Step-by-Step Troubleshooting Plan
If you're not sure where to start, follow this logical flow:
- Check Server Logs First: Before doing anything else, look at your server's error log. This is the single most effective way to diagnose the problem.
- Increase PHP Limits: Go to
System > System Settings > PHP Environment Info. Ifmax_execution_timeormemory_limitis low, increase them using thephp.inifile in the/dede/directory. - Verify Permissions: Check the permissions of
/data/,/uploads/, and other key directories. Set them to755for directories and644for files. - Clear Browser Data: Log out, clear your cache and cookies, and log back in.
- Test with Security Disabled: If you have access, temporarily disable ModSecurity or your WAF to see if it's the cause.
- Re-upload Core Files: As a last resort, re-upload the core DedeCMS files.
By systematically working through these steps, you should be able to identify and resolve the "Dede request error."
