1. Unable to obtain error information, a blank
A blank cannot be debugged,
So the first thing to do,
Can output error information.
Open include/common.inc.php
Find the following code
//error_reporting(E_ALL); error_reporting(E_ALL || ~E_NOTICE);
Change it to
error_reporting(E_ALL); //error_reporting(E_ALL || ~E_NOTICE);
The main function is to open the error prompt.
2. 'continue' not in the 'loop' or 'switch' context error
You may encounter this error after refreshing
Fatal error: ‘continue’ not in the ‘loop’ or ‘switch’ context in ….include/common.func.php on line 49
The above indicates that there is an error in line 49 of the include/common.func.php file.
Delete continue;
and change it to return;
3. The function mysql_query() is undefined
Mysql_* series functions can no longer be used in php7,
the following error will occur
Fatal error: Uncaught Error: Call to undefined function mysql_query() in ….include/dedesql.class.php:152
php7 requires the use of mysqli or pdo to
communicate with the database, which is
safer and more efficient.
Solution
Open the file data/config.cache.inc.php
$cfg_mysql_type = ‘mysql’;
Change to
$cfg_mysql_type = ‘mysqli’;
4. Left side of the background The menu is blank and does not display. Solution
Method 1
Set the data directory permissions to 777 or 755. Note that it is the entire data directory. Just refresh after setting.
Method 2
Enter data/tplcache, make a backup copy, then delete everything except index.html, then set the data/tplcache directory to 777, and refresh it.
The above is the detailed content of Solve some common problems of dedecms under php7. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Atom editor mac version download
The most popular open source editor

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 Chinese version
Chinese version, very easy to use
