Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

webtools.php displays a blank page

I am very new to both PHP and Phalcon.

I have just setup a win 7 x64 VM with a manual install of Apache2.4, php7.0, MySQL5.7 and Phalcon 3.0.4. Everything does seem to work properly. I can create a project ' test ' with webtools enabled and I can browse to the default site page that says you are now flying with phalcon. The problem is I cannot open the webtools page when I browse to:


I get a blank page. The devtools.log has the following error:

php: [ERROR] Uncaught exception: Resource's content for '' cannot be read in C:\Apache24\htdocs\test\cache\PhalconWebToolsViewslayoutswebtools.php on line 18

I have checked my config.php and have set the baseUri to

'baseUri' => '/test/',

I have checked the permissions on the test folder to ensure that all groups have full access to the directory.

This is my webtools.php:

use Phalcon\Bootstrap;

include 'webtools.config.php'; include PTOOLSPATH . '/bootstrap/autoload.php';

$bootstrap = new Bootstrap([ 'ptoolspath' => PTOOLSPATH, 'ptoolsip' => PTOOLSIP, 'basepath' => BASE_PATH, ]);

if (APPLICATIONENV === ENVTESTING) { return $bootstrap->run(); } else { echo $bootstrap->run(); }

This is my webtools.config.php

defined('PTOOLSIP') || define('PTOOLSIP', '192.168.'); defined('BASEPATH') || define('BASEPATH', dirname(dirname(FILE))); defined('APPPATH') || define('APPPATH', BASEPATH . DIRECTORYSEPARATOR . 'app');
defined('ENVPRODUCTION') || define('ENVPRODUCTION', 'production'); defined('ENVSTAGING') || define('ENVSTAGING', 'staging'); defined('ENVDEVELOPMENT') || define('ENVDEVELOPMENT', 'development'); defined('ENVTESTING') || define('ENVTESTING', 'testing'); defined('APPLICATIONENV') || define('APPLICATIONENV', getenv('APPLICATIONENV') ?: ENVDEVELOPMENT);

defined('PTOOLSPATH') || define('PTOOLSPATH', 'C:\php-phalcon');



be sure to get a working internet connection. Asset manager can't build the javascript bundle because ihe can't access to

See here the code:


Thanks for the reply, but I am quite certain my internet connection is working. I am currently typing this from the very same VM I am doing the development on.


try to comment the line (line #113) where html5shiv.min.js is loaded in the file i've pointe in the previous post.

Thanks. Commenting out those lines loaded an unformatted page. Downloading and storing these files locally and changing these lines to add them from a local directory worked the same way as well. These same lines exist in the errorcontroller.php as well. I had to edit that file as well.

I managed to resolve the unformatted webtools page using the your suggestion here: