PHP version upgrade to 7.x after some of WordPress's modifications and WordPress tips, _php Tutorial

Source: Internet
Author: User
Tags install wordpress import database vps server wordpress update

PHP version upgrade to 7.x after some of WordPress's changes and WordPress skills,


I do not know the hands of the cheap, the VPS server PHP upgrade to 7.0, although 7.x and previous compatibility is very high, but removed a lot of outdated usage, and some old applications are still in use. To the personal WordPress site errors, corrections recorded as follows. All is plugin, WordPress official program, is no problem.

Mysql_escape_string () function changed to Addslashes ()

Wp-thread-comment plug-in wp-content/plugins/wordpress-thread-comment/wp-thread-comment.php have multiple places

Mysql_* series functions are removed in PHP7, so it is recommended to search all the files for mysql_query, Mysql_escape_, Mysql_real_eacape and other functions, such as: Grep-r mysql_query/path/ To/your/site

Change the split () function to explode ()

Auto-save-image plug-in wp-content/plugins/auto-save-image/auto-save-image.php 122 lines

Syntax compatible

Configure SMTP Plug-in wp-content/plugins/configure-smtp/configure-smtp.php 171 rows, adding default values for function definitions

Public Function options_page_description ($localized _heading_text = ") {

Ps:wordpress Tip: Manual restore to old version/update to latest edition

WordPress backstage can generally be directly upgraded, but there are some situations that could not automatically upgrade, so, the initiative to simply say a WordPress manual restore to the old version and WordPress manual update to the latest method, in fact, the operation is the same, Can be said to be manually updated to any version.

WordPress revert to old version

WordPress Update is more frequent, but some themes and plug-ins update does not keep up with speed, so when you update WordPress, you may find and now use the theme or plugin conflict, this time, you may consider to restore WordPress to the old version.

WordPress Restore to the old version, you can install the old version of the new, but, in this way, your original plugin or theme of some of the settings options will expire, so, the initiative recommended, manual operation to restore the old version.

1. Download the corresponding old version of WordPress

Download the language version you are currently using (that is, if you use the official Chinese version, download the old version of the official Chinese, if it is the original English version)

2. Replace the WordPress program files

(1) Unzip the old version of the download, and then delete the extracted Wp-content folder, using FTP to upload other files to overwrite the original file.

Note: The host Space Wp-content folder has themes and plugins and other files, the root of the wp-config.php inside is the wordpress configuration file, remember not to overwrite these files!!

(2) Visit http://Your URL/wp-admin/, wait a moment will appear a page, prompting you need to update the database, click Update, you can revert to the old version of WordPress.

WordPress Manual update to the latest version

WordPress Update to the latest version of the operation and the above is the same, the difference is that you download the version is the latest edition can be. With manual operation, you can change to any version (of course, if the version gap is too large and the database structure is different, it may not be successful)

Articles you may be interested in:

    • PHP Important Security Upgrade instructions recommended upgrade PHP 5.2. Version 17
    • Upgrade PHP version in WAMP Integrated environment (Implementation method)
    • Build the latest WordPress method on the SAE
    • Use LNMP to install WordPress tutorial in VPS
    • What thinkphp version 3.2 has upgraded
    • How to deal with Chinese garbled characters during installation of WordPress
    • Guardian God PHP Suite PHP Version upgrade method (php5.5.24)
    • "Unable to move uploaded files to" error solution in WordPress
    • How to upgrade the php5.3 version to php5.4 or php5.5
    • The WordPress Import Database appears "Unknown collation: ' Utf8mb4_unicode_ci" error resolution
    • Ways to upgrade PHP versions under Windows Server

http://www.bkjia.com/PHPjc/1084522.html www.bkjia.com true http://www.bkjia.com/PHPjc/1084522.html techarticle PHP Version upgrade to 7.x after some of the WordPress changes and WordPress skills, do not know the hands of cheap, the VPS server PHP upgrade to 7.0, although 7.x compatibility with the previous is very high, but move ...

  • 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.