Provide zblog template_zblog them_wordpress template download and customization

Zblog Upgrade 1.7 Error "Invalid argument supplied for foreach" or "unserialize(): Error at offset" Solution

Tianxing Studio 2021-04-11 17:25 Zblogphp Tutorial two thousand one hundred and four 0 Comments


zblog The official version 1.7 was released on April 10, 2021( https://blog.zblogcn.com/2021/04/10/122/ )Unexpectedly, many users reported various errors after the first upgrade, and the forum howled:

 Solution to "Invalid argument supplied for foreach" or "unserialize(): Error at offset" error in zblog upgrade 1.7 zblog database zblogBUG zblog1.7 zblogphp tutorial page 1

Most of the error reporting prompts are "Invalid argument supplied for foreach" and "unserialize(): Error at offset". This article will share the causes and solutions of this bug.

BUG reason:

In version 1.7 of zblog, the config table of the system has been modified. This table stores the core contents of the program, such as domain name , language version website Name, etc. Because there are too many contents to be called in one field, it is not convenient. In version 1.7 of zblog, this field is forcibly separated. In order to be compatible with old users, the data of old users must be processed.

The problem lies in the data processing of this old user. A problem with a function that serializes data causes this bug.

BUG solution:

Users who report the above two errors in Upgrade 1.7 can download the latest“ zblog1.7 2915 ”In the resource package, find the "zb_system/function/lib/config. php" file and replace the file on your website to solve the problem.

This website also uploaded a“ config.php ”Files, direct Click Download Replace it.


Can't find a tutorial that can solve your problem?

You can try to search or ask questions directly online. We also provide charging technical support. If you need it, you can contact us online.

Online questions Online Service

welcome you Comment: Cancel Reply

 Please fill in the verification code
  • Latest articles
  • Hot article ranking
  • Most Comments
Label aggregation
  • Sign in
  • Registered account Forgot your password?
  • register
  • Already have an account? Direct login Forgot your password?
  • Social account login