We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Fatal error in webtools.php

Hi guys,

today i enabled webtools for the first time, on an existing project. When accessing webtools.php i get this error:

bash Fatal error: Class 'Phalcon\Script' not found in /usr/share/pear/Phalcon/Web/Tools.php on line 215

I also followed the instruction from this post: https://forum.phalcon.io/discussion/25/fatal-error-class-phalcon-script-not-found#C149

I can enable/disable webtools via console, without any errors but i can't access the webtools.php

What is the best way to fix my problem?

Thank you guys!



58.4k

Hi ciruz You tries cd ~ git clone https://github.com/phalcon/phalcon-devtools.git cd phalcon-devtools and ln -s ~/phalcon-devtools/phalcon.php /usr/bin/phalcon chmod ugo+x /usr/bin/phalcon



58.4k

You create project new via phalcon project 123 --enable-webtools, and compersion file in directories, I test in project vokuro success



1.2k

Thank you it works now for a new project with your tipps. He created the webtool files correct, only with a wrong phalcon devtool path, for now i just changed the path in the config.