cancel
Showing results for 
Search instead for 
Did you mean: 

invoice not sent customer user (but for Guest user its sending)

SOLVED

invoice not sent customer user (but for Guest user its sending)

Hello,

im using magento 2.3.4

i get a problem that the emails not sending to customers user.

all the order-invoice-shipment.

while all are send successfully to Guest user.

 

im getting below error:

{"messages":{"error":[{"code":500,"message":"Fatal Error: 'Uncaught Error: Call to undefined method Magento\\Catalog\\Model\\Product\\Type\\Simple::getConfigurableAttributeCollection() in \/home\/turkey123\/public_html\/vendor\/magento\/module-configurable-product\/Helper\/Product\/Options\/Loader.php:52\nStack trace:\n#0 \/home\/turkey123\/public_html\/vendor\/magento\/module-configurable-product\/Model\/Product\/ReadHandler.php(48): Magento\\ConfigurableProduct\\Helper\\Product\\Options\\Loader->load(Object(Magento\\Catalog\\Model\\Product\\Interceptor))\n#1 \/home\/turkey123\/public_html\/vendor\/magento\/framework\/EntityManager\/Operation\/Read\/ReadExtensions.php(48): Magento\\ConfigurableProduct\\Model\\Product\\ReadHandler->execute(Object(Magento\\Catalog\\Model\\Product\\Interceptor), Array)\n#2 \/home\/turkey123\/public_html\/vendor\/magento\/framework\/EntityManager\/Operation\/Read.php(112): Magento\\Framework\\EntityManager\\Operation\\Read\\ReadExtensions->execute(Object(Magento\\Catalog\\Model\\Product\\Interceptor), Array)\n#3 \/home\/turkey123\/public_html\/vendor\/magento\/framework\/EntityManager\/EntityManager.php(70): Magento\\' in '\/home\/turkey123\/public_html\/vendor\/magento\/module-configurable-product\/Helper\/Product\/Options\/Loader.php' on line 52","trace":"Trace is not available."}]}}

 

anyone could help.

 

thanks and regards,

Gabriel

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: invoice not sent customer user (but for Guest user its sending)

Hi @gabriel_helle 

There might be some issue with the deployment. You can regenerate generated folder using compile command.

Try the following command once:

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento

You can use sudo as well.


Then try following commands once n sequence to re generations.

 

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush


If still you got the same error then run

composer update

and run the above commands again in sequence.

I hope it will help you!

View solution in original post

1 REPLY 1

Re: invoice not sent customer user (but for Guest user its sending)

Hi @gabriel_helle 

There might be some issue with the deployment. You can regenerate generated folder using compile command.

Try the following command once:

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento

You can use sudo as well.


Then try following commands once n sequence to re generations.

 

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush


If still you got the same error then run

composer update

and run the above commands again in sequence.

I hope it will help you!