Home > CMS Tutorial > DEDECMS > What should I do if the homepage generated by DreamWeaver dedecms5.7 prompts a 404 error?

What should I do if the homepage generated by DreamWeaver dedecms5.7 prompts a 404 error?

藏色散人
Release: 2019-12-10 10:08:20
Original
2346 people have browsed it

What should I do if the homepage generated by DreamWeaver dedecms5.7 prompts a 404 error?

What should I do if dedecms5.7 generates a homepage prompt of 404 error?

When dedecms background generated the homepage html file today, it prompted a 404.html error. Directly accessing the website homepage will automatically jump to 404.html, and at the same time, it prompted an error that the file does not exist. It turned out to be dedecms. Question

A major bug was discovered when using the dedecms5.7 website building system.

Problem situation:

When generating the homepage html file in the background, a 404.html error is prompted. Direct access to the website homepage will automatically jump to 404.html, and an error that the file does not exist is prompted. .

Solution:

Modified file path:/www/dede/include/taglib/flinktype.lib.php

Find this piece of code:

$dedecms = false;
 $dedecms->id = 999;
 $dedecms->typename = '织梦链';
 if($type == 'dedecms') $row[] = $dedecms;
Copy after login

Change the red part to any character.

For example: if($type == 'jb51net') $row[] = $dedecms;

The whole is as follows:

The code is as follows

$dedecms = false;
$dedecms->id = 999;
$dedecms->typename = '织梦链';
if($type == 'jb51net') $row[] = $dedecms;
Copy after login

The problem can be solved by saving it. Later, someone posted a chat record on the official forum. It is said that the problem occurred because DreamWeaver officially added the so-called "DreamWeaver Chain" advertising code to the newly released program.

The above is the detailed content of What should I do if the homepage generated by DreamWeaver dedecms5.7 prompts a 404 error?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template