简体   繁体   中英

Index.php called twice in one request

I have a bug or something. I noticed it because my routing is called multiple times. After I removed many lines I ended up with only the index.php. The index.php now only has $var=1; in it, but it also triggers Xdebug multiple times.

Does someone has an idea how to fix it or why it occurs?

This is my Xdebug settings if that's the problem:

xdebug.remote_enable=true
xdebug.profiler_output_dir="C:\xampp2\tmp"
xdebug.idekey="PHPSTORM"
xdebug.remote_autostart = on
xdebug.profiler_output_name = "cachegrind.out.%u.%H_%R"

As LazyOne pointed out it was because the missing Favicon. Thank You. Fix was to add:

  <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM