Hi, users are not able to create an accounts , after they click on "create an account" button it will give a 500 error, the store was working fine for a few months , it started doing this and i did a cache flush and notice the whole store and backend went down giving me module updates errors , i was able to bring the front and backend up by editing the modules ver. in the DB by hand . but still unable to create new accounts.
Hello @lowformat
can you check customer grid index is on save? if yes then change to manually and check it
if works then mak as a solution.
Hi , all my indexes are on save, i try your suggestion but it did not work.
Hi @lowformat
as you are getting 500 (Internal server error) - do one thing , go to your magento 2 root directory -> then app directory -> you will find bootstrap.php file
open this file and uncomment the line - #ini_set('display_errors', 1); by removing # and then check at frontend , it will print the exact error !
post that error so its help us to troubleshoot the issue !
i did as you say , and got this error
Fatal error: Uncaught Error: Class 'Magento\Framework\Data\Form\Filter\Trim' not found in /home/storenovobiotek/public_html/vendor/magento/module-customer/Model/Metadata/Form/AbstractData.php:215 Stack trace: #0 /home/storenovobiotek/public_html/vendor/magento/module-customer/Model/Metadata/Form/AbstractData.php(194): Magento\Customer\Model\Metadata\Form\AbstractData->_getFormFilter() #1 /home/storenovobiotek/public_html/vendor/magento/module-customer/Model/Metadata/Form/Text.php(48): Magento\Customer\Model\Metadata\Form\AbstractData->_applyInputFilter('Alexander') #2 /home/storenovobiotek/public_html/vendor/magento/module-customer/Model/Metadata/Form.php(242): Magento\Customer\Model\Metadata\Form\Text->extractValue(Object(Magento\Framework\App\Request\Http)) #3 /home/storenovobiotek/public_html/vendor/magento/module-customer/Model/CustomerExtractor.php(79): Magento\Customer\Model\Metadata\Form->extractData(Object(Magento\Framework\App\Request\Http)) #4 /home/storenovobiotek/public_html/vendor/magento/module-customer/Cont in /home/storenovobiotek/public_html/vendor/magento/module-customer/Model/Metadata/Form/AbstractData.php on line 215
Hello @lowformat,
Try cleaning the content of the following directories (preserving eventual .htaccess files):
Assuming your Magento 2 installation is in {{mageroot}}, set developer mode with command
$ php bin/Magento deploy:mode:set developer
Try searching in the database for references to the `Magento\Framework\Data\Form\Filter\Datetime`
Hope some of these will solve your issue
--
If my answer is useful, please Accept as Solution & give Kudos
Hello, might be I am late...but I was having the same issue and was able to fix it.
So, you can have a look.
Create a file 'Trim.php' at below path:
'vendor/magento/framework/Data/Form/Filter/Trim.php'
Add below code to it:
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * Form Input/Output Strip HTML tags Filter * * @author Magento Core Team <core@magentocommerce.com> */ namespace Magento\Framework\Data\Form\Filter; class Trim implements \Magento\Framework\Data\Form\Filter\FilterInterface { /** * Returns the result of filtering $value * * @param string $value * @return string */ public function inputFilter($value) { return trim($value); } /** * Returns the result of filtering $value * * @param string $value * @return string */ public function outputFilter($value) { return $value; } }
Refresh and go ahead..
Saved my day..
@PriyeshDoshi wrote:Hello, might be I am late...but I was having the same issue and was able to fix it.
So, you can have a look.
Create a file 'Trim.php' at below path:
'vendor/magento/framework/Data/Form/Filter/Trim.php'
Add below code to it:<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * Form Input/Output Strip HTML tags Filter * * @author Magento Core Team <core@magentocommerce.com> */ namespace Magento\Framework\Data\Form\Filter; class Trim implements \Magento\Framework\Data\Form\Filter\FilterInterface { /** * Returns the result of filtering $value * * @param string $value * @return string */ public function inputFilter($value) { return trim($value); } /** * Returns the result of filtering $value * * @param string $value * @return string */ public function outputFilter($value) { return $value; } }Refresh and go ahead..