I was on the final stages of bringing my site from local to live and I got a fatal error when trying to set it up. I wasn’t too sure where I should ask but I thought I would try with the theme first. Seeing this error made me wonder if it was also related to a PHP mismatch as my hosting’s php version is different to the one I am currently using.
This is the exact error
Fatal error on WordPress login tests!
SCRIPT FILE TEST: /home/uarbnvd4dt71/public_html/test.imagesense.ca//wp-login.php
E_COMPILE_ERROR Declaration of Automattic\WooCommerce\Vendor\League\Container\Container::get($id, bool $new = false) must be compatible with Automattic\WooCommerce\Vendor\Psr\Container\ContainerInterface::get(string $id)
FILE: /home/uarbnvd4dt71/public_html/test.imagesense.ca/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php[15]
--- TRACE ---
CLASS___: Duplicator\Installer\Utils\Tests\WP\TestsErrorHandler::shutdownFILE: [-1]
-----
For solutions to these issues see the online FAQs
https://duplicator.com/knowledge-base/