Jump to content
ariko

BO not loading - Error 500

Recommended Posts

Hello, 

BO is generating error 500. Version is 1.7.3.0 php is 7.0. The issue happened after hitting save button on a module's translation page. After that BO generating error 500 but FO is working. Here is the error: 

Quote

1/1RuntimeException in PhpDumper.php line 1403:

Cannot dump definition because of invalid class name (NULL)

in PhpDumper.php line 1403

at PhpDumper->dumpLiteralClass('NULL') in PhpDumper.php line 790

at PhpDumper->addNewInstance('_defaults', object(Definition), 'return ', '$this->services['_defaults'] = ') in PhpDumper.php line 394

at PhpDumper->addServiceInstance('_defaults', object(Definition)) in PhpDumper.php line 639

at PhpDumper->addService('_defaults', object(Definition)) in PhpDumper.php line 666

at PhpDumper->addServices() in PhpDumper.php line 145

at PhpDumper->dump(array('class' => 'appDevDebugProjectContainer', 'base_class' => 'Container', 'namespace' => '', 'debug' => true, 'file' => '/var/www/clients/client1/web1/web/app/cache/dev/appDevDebugProjectContainer.php')) in bootstrap.php.cache line 2846

at Kernel->dumpContainer(object(ConfigCache), object(ContainerBuilder), 'appDevDebugProjectContainer', 'Container') in bootstrap.php.cache line 2759

at Kernel->initializeContainer() in bootstrap.php.cache line 2533

at Kernel->boot() in bootstrap.php.cache line 2564

at Kernel->handle(object(Request), '1', false) in index.php line 86

Any advice and help will be appreciated. Thank you. 

 

Share this post


Link to post
Share on other sites
1 minute ago, tuk66 said:

Disable Debug mode and it should work.

Unfortunately it's not working. When debug mode is disabled I got HTTP ERROR 500 (blank page)

Apache error log contains the same log as above. 

Share this post


Link to post
Share on other sites

I would only suggest to upgrade. It can be a bug in this rather old version.

Share this post


Link to post
Share on other sites
2 minutes ago, tuk66 said:

I would only suggest to upgrade. It can be a bug in this rather old version.

It seems like this is the only option left ...

Thanks!

Share this post


Link to post
Share on other sites

The second option is to find the root of this problem. Unfortunately, that error message doesn't show it. In these cases, I usually debug it right on the server.

Share this post


Link to post
Share on other sites
2 minutes ago, tuk66 said:

The second option is to find the root of this problem. Unfortunately, that error message doesn't show it. In these cases, I usually debug it right on the server.

Can you give me a hind what you mean by "right on the server" error log contain even less info than the one in my first post 

Here is the error_log message:

Quote

AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Symfony\\Component\\DependencyInjection\\Exception\\RuntimeException: Cannot dump de
finition because of invalid class name (NULL) in /var/www/clients/client1/web1/web/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:1403\nStack trace:\n#0 /var/www/clients/client1/web1/web/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php(790): Symfony\\Component\\DependencyInjection\\Dumper\\PhpDumper->dumpLiteralClass('NULL')\n#1 /var/www/clients/client1/web1/web/vendor/symfony/symfony/src/Symfon
y/Component/DependencyInjection/Dumper/PhpDumper.php(394): Symfony\\Component\\DependencyInjection\\Dumper\\PhpDumper->addNewInstance('_defaults', Object(Symfony\\Component\\DependencyInjection\\Definition), 'return ', '$this->services..
.')\n#2 /var/www/clients/client1/web1/web/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php(639): Symfony\\Component\\DependencyInjection\\Dumper\\PhpDumper->addServiceInst...\n'

 

Share this post


Link to post
Share on other sites

Almost no server allows you to enable XDebug on the server (I know one). But you can patch the files to write down logs. There is no exact rule how to do it. Usually, I start somewhere and continue in other files according to interim results.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More