Magento 2.3.3 Sales / Orders / View is missing vital information - magento2

When upgrading to Magento 2.3.3 from 2.3.2, the Sales / Orders / View, does no longer show:
Order & account Information
Adress Information,
It looks like it has something to do with a module called Medma\Disableregistration\, it was not compatible with 2.3.3, so I uninstalled it, but for some reason it still shows up.
Now when trying to look at Sales / Order / View, it get this info:
1 exception(s):
Exception #0 (ReflectionException): Class Medma\Disableregistration\Model\Config\Source\Options does not exist
Exception #0 (ReflectionException): Class Medma\Disableregistration\Model\Config\Source\Options does not exist
#1 Magento\Framework\Code\Reader\ClassReader->getConstructor('Medma\Disablereg...') called at [vendor/magento/framework/ObjectManager/Definition/Runtime.php:49]
2 Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Medma\Disablereg...') called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:48]
3 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Medma\Disablereg...', array()) called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56]
4 Magento\Framework\ObjectManager\ObjectManager->create('Medma\Disablereg...', array()) called at [vendor/magento/framework/Validator/UniversalFactory.php:36]
5 Magento\Framework\Validator\UniversalFactory->create('Medma\Disablereg...') called at [vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php:642]
6 Magento\Eav\Model\Entity\Attribute\AbstractAttribute->getSource() called at [vendor/magento/module-customer/Model/AttributeMetadataConverter.php:68]
7
But the Medma\Disableregistration does not show up anywhere, when I search for it, not in app/code, and it is also removed from the Database as far as I have been able to see.

Related

Flash Messages TYPO3 6 to 7 update

I used the following syntax in an TYPO3 6 exbase extension before migrating to 7:
$this->flashMessageContainer->flush();
$this->flashMessageContainer->getAllMessagesAndFlush();
$this->flashMessageContainer->add(Tx_Extbase_Utility_Localization::translate('undefined error', $this->extensionName));
In my new code I would use:
$this->addFlashMessage(\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('undefined error', $this->extensionName));
But I always get this error:
Fatal error: Call to a member function getFlashMessageQueue() on a
non-object in /srv/www/typo3_src-7.6.32/typo3/sysext/extbase/Classes/Mvc/Controller/AbstractController.php on line 190
Any ideas about this behaviour?
Thanks and best regards,
Chris
(Disclaimer: TYPO3 v7.6 reached end-of-life and is not maintained anymore)
In order to understand what's going on, let's have a look into the source code (referring to the error message you posted, checking AbstractController.php)
$this->controllerContext->getFlashMessageQueue()->enqueue($flashMessage);
https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_7-6/typo3/sysext/extbase/Classes/Mvc/Controller/AbstractController.php#L190
$this->controllerContext = $this->buildControllerContext();
https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_7-6/typo3/sysext/extbase/Classes/Mvc/Controller/AbstractController.php#L238
Thus, my assumption(!) is, that you override public function processRequest(...) in your application specific controller without invoking parent::processRequest(...) leading to the situation that $this->controllerContext is not initialized.

JASIG Central Authentication Service 4, custom authentication and custom exception

i upgrading CAS from 3.5.2 to 4.
In version 3.5.2, i create a CustomAuthentication class extends AbstractJdbcUsernamePasswordAuthenticationHandler to do my custom authentication and throw exception based i needs
example:
throw new BadCredentialsAuthenticationException("error.accountNotExist");
so in message.properties i just add error.accountNotExist=Account not exist.
then the front end will return the string above.
how ever in CAS version 4, AbstractJdbcUsernamePasswordAuthenticationHandler has changed. not support BadCredentialsAuthenticationException anymore. So how to do it in cas version 4 in order to return any custom string that i want?
since no 1 answer, and i try find out by my own.
steps to add custom exceptions
1 create new exceptions class extends LoginException
2 in messages.properties add corresponding message for new added exceptions
3 in login-webflow.xml --> handleAuthenticationFailure action-state add <transition on="<yourCustomExcception>" to="generateLoginTicket"/>
4 create a CustomAuthenticationExceptionHandler.java, copy original source code, and add new exception into DEFAULT_ERROR_LIST
5 in cas-servlet.xml replace authenticationExceptionHandler to your CustomAuthenticationExceptionHandler

DateTimeZone warning in symfony2 forms

I'm getting strange error in my symfony2 based application. On every page which uses forms I get
E_WARNING: DateTimeZone::__construct(): Unknown or bad timezone (1024)
FYI, I'm invoking
date_default_timezone_set("Europe/Warsaw");
in AppKernel::init(). Any idea how to get rid of this warning? Thanks in advance.
Edit
This is my stack trace from NewRelic
…or/symfony/symfony/src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php (542)
…or/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/DateType.php (274)
…or/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/DateType.php (88)
…/shared/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php (167)
…/shared/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php (164)
…/shared/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php (126)
…zy.pl/shared/vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php (87)
…zy.pl/shared/vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php (114)
…zy.pl/shared/vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php (342)
…zy.pl/shared/vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php (230)
…zy.pl/shared/vendor/symfony/symfony/src/Symfony/Component/Form/in Symfony\Component\Form\FormBuilder::getForm called at /var/www/tumamoczy.pl/shared/vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php FormFactory.php (47)
…endor/friendsofsymfony/user-bundle/FOS/UserBundle/Form/Factory/FormFactory.php (33)
…endsofsymfony/user-bundle/FOS/UserBundle/Controller/RegistrationController.php (48)
in FOS\UserBundle\Controller\RegistrationController::registerAction called at ? (?)
…alled at /var/www/tumamoczy.pl/releases/20130602213844/app/bootstrap.php.cache (1003)
…alled at /var/www/tumamoczy.pl/releases/20130602213844/app/bootstrap.php.cache (977)
…alled at /var/www/tumamoczy.pl/releases/20130602213844/app/bootstrap.php.cache (1103)
…alled at /var/www/tumamoczy.pl/releases/20130602213844/app/bootstrap.php.cache (413)
…el::handle called at /var/www/tumamoczy.pl/releases/20130602213844/web/app.php (21)
It looks that warning appears in StubIntlDateFormatter.php, am I right? So is it a Symfony2 problem? Is it even solvable?

Enterprise Library 5.0 Exception Handler: How to remove sections from error message

I wrote up a custom MongoDB Listener with Entlib 5.0 as my Exception Handler in my web app. It works great except for the fact that it creates a document entry for every "line" below, including the empty lines:
----------------------------------------
Timestamp: 4/17/2012 4:13:50 PM
Message: HandlingInstanceID: c3c5f58a-89b3-4b64-b05d-3f72f998bab4
An exception of type 'System.NullReferenceException' occurred and was caught.
-----------------------------------------------------------------------------
04/17/2012 16:13:50
Type : System.NullReferenceException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Object reference not set to an instance of an object.
Source : MyCo.Webservices.TheCoolService
Data : System.Collections.ListDictionaryInternal
TargetSite : System.String TestExceptionHandling()
Stack Trace : at Logging.TestExceptionHandling() in C:\tfs\Development\Source\MyCo.Webservices.TheCoolService\Logging\Logging.cs:line 55
----------------------------------------
What I'd like to do is throw most of this information into one document so as to not have 10 different documents for the same error. Even writing my own Exception formattter (http://msdn.microsoft.com/en-us/library/ff664587(v=pandp.50).aspx) I still can't seem to get around the multiple calls to the customlistener.Write() method, each of which creates a new document in my mongodb collection.
My Entlib experience is limited, but I don't see how to get around it unless I write the whole ExceptionFormatter from scratch. Anybody have any ideas how to get around this?
Found my problem. Turns out that I was missing the TraceData() method implementation on my listener. Once I told it what to do there, it handled the error message like a single WriteLine() call.

How to customize the login page of vBulletin 4

I am using vBulletin version 4.1.4. I want to re-design the login page (it is separated with current vBulletin skin), I have tried using these instructions http://www.vbgeeko.com/archives/217 but it shows an error:
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]\includes\functions.php on line 4114
( ! ) Parse error: syntax error, unexpected T_STRING in D:\wamp\www\vBulletin Forum v4.1.4\upload\clogin.php(42) : eval()'d code on line 1
Call Stack
# Time Memory Function Location
1 0.0007 374496 {main}( ) ..\clogin.php:0
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: clogin in [path]\includes\functions.php on line 4114
So how can I make a custom login page of vBulletin 4?