I’m using Ubuntu 18.04,Zend framework 3, and integrated Xdebugger with Visual studio. Now when I start debugger in visual studio and reload phpmyadmin web page on my localhost localhost/phpmyadmin
in browser, it shows me this error
Even though I did not put any breakpoint but everytime it still stops at the location shown in screenshot above.
Xdebug.ini
xdebug.show_error_trace = 0
xdebug.show_exception_trace = 0
zend_extension=/usr/lib/php/20170718/xdebug.so
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.remote_log = /tmp/xdebug_remote.log
xdebug.remote_mode = req
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
xdebug.remote_connect_back=1
Any help is appreciated.
5
Answers
PHPMyadmin – SQL parser unable to locate SQLfile context.
Take a look at below links, this may help you to solve this issue.
—Here you can see cause of an issue—
https://github.com/phpmyadmin/phpmyadmin/issues/13728#issuecomment-338804494
—Here you will find the code change to Improve SQL context loading —
https://github.com/phpmyadmin/sql-parser/commit/9b56a083c53fd17d06d542ec21aac9a31093d3dc
Thanks,
Nil’s
Just copy this code below and save as
ContextMariaDb100408.php
in the directory/opt/lampp/phpmyadmin/vendor/phpmyadmin/sql-parser/src/Contexts/
.I had the same problem but with MariaDb100408 version and I solved it editing the file /opt/lampp/phpmyadmin/vendor/phpmyadmin/sql-parser/src/Context.php adding this at the begining
This is not a good solution, but it works for me
I had same problem. It solved by restarting mysql and apache services.
I had the same problem but came to realize that when closing Xdebug in visual studio solves the problem. It seems like visual studio is debugging under the hood.