bigemployee / Big-Sticky-Notes

Big Sticky Notes is web application tutorial built on of Zend Framework 2.
BSD 3-Clause "New" or "Revised" License
60 stars 47 forks source link

getting blank page and errors #2

Open flik opened 8 years ago

flik commented 8 years ago

getting these errors after clone and run with: php -S localhost:8080 -t public/

thrown in /var/www/html/Big-Sticky-Notes/init_autoloader.php on line 48 [Tue Aug 23 13:00:26 2016] 127.0.0.1:36433 [500]: / - Uncaught exception 'RuntimeException' with message 'Unable to load ZF2. Run php composer.phar install or define a ZF2_PATH environment variable.' in /var/www/html/Big-Sticky-Notes/init_autoloader.php:48 Stack trace:

0 /var/www/html/Big-Sticky-Notes/public/index.php(9): require()

1 {main}

thrown in /var/www/html/Big-Sticky-Notes/init_autoloader.php on line 48

chros73 commented 8 years ago

Have you run these after cloning?

php composer.phar self-update
php composer.phar install

But maybe it won't work in this way: the problem is that it will get the latest version of ZF.

What I did is this:

wget https://github.com/zendframework/ZendSkeletonApplication/archive/release-2.2.7.zip
// unzip it into your project dir
$ php composer.phar self-update
$ php composer.phar install

After that get this project manually and copy the necessary files from it into your project dir or you can go through the blog. It's working this way.

@ArianKhosravi: thanks for the tutorial!

flik commented 8 years ago

Ok. thanks. I will check again.