Home  >  Q&A  >  body text

Error when running index.php

Teacher Zhu, unzip your courseware file to the project directory and an error will occur when running index.php. The database name has been changed to myblog. Please check what the problem is, thank you!

Notice: Undefined variable: catList in E:\MyStudy\Php\myblog\public\inc\header_inc.php on line 55

Warning: Invalid argument supplied for foreach() in E: \MyStudy\Php\myblog\public\inc\header_inc.php on line 55

Fatal error: Uncaught Error: Call to undefined function auto_load_tpl() in E:\MyStudy\Php\myblog\index.php: 5 Stack trace: #0 {main} thrown in E:\MyStudy\Php\myblog\index.php on line 5


iUnicorniUnicorn2046 days ago1489

reply all(4)I'll reply

  • 天蓬老师

    天蓬老师2019-04-08 10:39:11

    Check the number of lines in the corresponding code according to the prompts. For undefined variables, check whether some documents need to be loaded first

    reply
    0
  • 独行者

    独行者2019-04-07 11:30:39

    An undefined function was called, check the code yourself

    reply
    0
  • iUnicorn

    To directly decompress the courseware, change the database name "blog" to "myblog" and leave the other codes unchanged.

    iUnicorn · 2019-04-07 11:37:48
  • Cancelreply