Nette sandbox NServiceCreationException problem

Notice: This thread is very old.
Derserg
Member | 3
+
0
-

Hi!
I've just downloaded Nette and trying to test sandbox app.
checker.php gives OK result.
But, when i'm trying to load sandbox i'm receiving:

*NServiceCreationException
Service 'authenticator': Object of class stdClass could not be converted to string
Call stack ▼
1.    ...\libs\Nette\Config\Compiler.php:127 source ►  NConfigCompiler:: parseServices (arguments ►)
2.    ...\libs\Nette\Config\Compiler.php:96 source ►  NConfigCompiler-> processServices ()
3.    ...\libs\Nette\Config\Configurator.php:235 source ►  NConfigCompiler-> compile (arguments ►)
4.    ...\libs\Nette\Config\Configurator.php:182 source ►  NConfigurator-> buildContainer (arguments ►)
5.    ...\app\bootstrap.php:29 source ►  NConfigurator-> createContainer ()
6.    19:
      20: // Enable RobotLoader - this will load all classes automatically
      21: $configurator->setTempDirectory(dirname(__FILE__) . '/../temp');
      22: $configurator->createRobotLoader()
      23:     ->addDirectory(APP_DIR)
      24:     ->addDirectory(LIBS_DIR)
      25:     ->register();
      26:
      27: // Create Dependency Injection container from config.neon file
      28: $configurator->addConfig(dirname(__FILE__) . '/config/config.neon');
      29: $container = $configurator->createContainer();
     30:
     31: // Setup router 32: $container->router[] = new NRoute('index.php', 'Homepage:default', NRoute::ONE_WAY);
     33: $container->router[] = new NRoute('<presenter>/<action>[/<id>]', 'Homepage:default');
7.    ...\www\index.php:16 source ►  require (arguments ►) *

What does it mean and how can i solve this problem?
Thanks!

Majkl578
Moderator | 1364
+
0
-

Can you save the whole output as a HTML page (ctrl+s in the browser should be enough) and upload it somewhere so we can look at it?
Didn't you modify your config file or any other file in some way?

Last edited by Majkl578 (2012-03-06 22:32)

pilec
Member | 1016
+
0
-

Hello, I tried Nette Framework from this download section for php 5.2 and everything works perfectly (copy content of sandbox tool to my www root). Which version do you use? You can echo your Nette version by:

echo NFramework::VERSION;
Derserg
Member | 3
+
0
-

Web server Apache/2.0.55 (Win32) PHP/5.2.1

http://zalil.ru/32832392

pilec
Member | 1016
+
0
-

Can you upload your config.neon somewhere?

Derserg
Member | 3
+
0
-

This is sandbox's config.neon: http://zalil.ru/32833903

David Grudl
Nette Core | 8218
+
0
-

fixed