A
A
Alexander Romanov2014-09-23 13:56:53
symfony
Alexander Romanov, 2014-09-23 13:56:53

Why doesn't the symfony project start?

I downloaded the Symfony project from the repository, installed it, created all the tables in the database, but when I run app_dev.php I get the following error:

Catchable fatal error: Argument 1 passed to ***\PostManager::findByBlog() must implement interface ***\BlogInterface, null given, called in my_path\IndexController.php on line 58 and defined in my_path\BlogBundle\Service\PostManager.php on line 81

And when you run app.php:
Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to use ApcClassLoader as APC is not enabled.' in my_path\app\bootstrap.php.cache:2654 Stack trace: #0 my_path\web\app.php(14): Symfony\Component\ClassLoader\ApcClassLoader->__construct('pnd_prod_', Object(Composer\Autoload\ClassLoader)) #1 {main} thrown in my_path\app\bootstrap.php.cache on line 2654

There was 1 more question, how to install APC on Windows. Doctrine refuses to work without it

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-09-23
Protko @Fesor

https://translate.google.com/
causes are indicated in the error messages.

A
Alexander Romanov, 2014-09-23
@maet

@Fesor Thanks, but eng. lang. I know, but I didn't really work with Symfony. Maybe you need to do something else, except how to create a database, tables and download the required dependencies?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question