Jump to content

PHP Fatal Error: Uncaught TypeError upgrading from 4.1.3 to 5.1.1

Recommended Posts

When I start the update by navigating to the /adserver_new directory I get a blank page with error 500 and this is produced in the error_log file:

[02-Feb-2021 21:38:06 UTC] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to RV\Container::__construct() must be of the type array, boolean given, called in /home/username/public_html/adserver_new/init.php on line 65 and defined in /home/username/public_html/adserver_new/lib/RV/Container.php:38
Stack trace:
#0 /home/username/public_html/adserver_new/init.php(65): RV\Container->__construct(false)
#1 /home/username/public_html/adserver_new/init.php(143): init()
#2 /home/username/public_html/adserver_new/index.php(21): require_once('/home/username/p...')
#3 {main}
  thrown in /home/username/public_html/adserver_new/lib/RV/Container.php on line 38

Link to post
Share on other sites
  • 2 weeks later...

I had the same. Error was thrown by reading the configuration file. It was not able to read or parse some values, or someting like this. I'd simply put some values (e.g. database password) in quotation marks and it worked.


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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...