Thanks for the advice - can you give me more detailed instruction. I'm not very advanced for Magento!
I tried to remove the file, which worked better as it went back to the site, but said "An unspecified error occurred. Please contact us for assistance.".
My CustomerLogin.php file is as follows:
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Wishlist\Observer; use Magento\Framework\Event\Observer; use Magento\Framework\Event\ObserverInterface; use Magento\Wishlist\Helper\Data; /** * Class CustomerLogin * @package Magento\Wishlist\Observer */ class CustomerLogin implements ObserverInterface { /** * @var \Magento\Wishlist\Helper\Data */ protected $wishlistData; /** * @param Data $wishlistData */ public function __construct(Data $wishlistData) { $this->wishlistData = $wishlistData; } /** * @param Observer $observer * @return void */ public function execute(Observer $observer) { $this->wishlistData->calculate(); } }
Hi
I request to check by comment or remove this line (after change clear cache) and then let me know if it resolved or not. Also try to register new customer and login with newly created customer.
$this->wishlistData->calculate();
After check please undo all changes as we should not make changes in core files.
Let me know the result.
Removing the line works - but still an issue with new user. I think the problem is related to this wish list error message? There must be a problem with the wishlist module.
I've just attempted to do 'php bin/magento setup:upgrade' and it returned this:
Notice: Undefined index: mgng_wishlist in /home/theyarns/public_html/new19/vendor/magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php on line 152