Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method Vendor/meta/module-sales/Helper/OrderHelper.php:90 #64

Open
davirs opened this issue May 2, 2024 · 3 comments

Comments

@davirs
Copy link

davirs commented May 2, 2024

Preconditions (*)

magento 2.4.6-p3
php 8.2
meta 1.3.0

Steps to reproduce (*)

Install the meta 1.3.0 extension.
I haven't configured the extension yet, it's just installed.

Expected result (*)

Work with default Magento without breaking anything or throwing exceptions

Actual result (*)

I can't access any orders in the Magento order panel. An exception occurs:
#43 {main} {"exception":"[object] (Error(code: 0): Call to undefined method Magento\\Sales\\Api\\Data\\OrderExtension::getFacebookOrderId() at /cache/vendor/meta/module-sales/Helper/OrderHelper.php:90)"} []

image

@sol-loup
Copy link
Contributor

sol-loup commented May 9, 2024

Hey Davirs --

<extension_attributes for="Magento\Sales\Api\Data\OrderInterface">
defines this field as part of our extension attributes, and should work for sellers as long as the correct

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:clean
php bin/magento cache:flush

functions were called. Can you confirm you performed correct codegen post install

@davirs
Copy link
Author

davirs commented May 9, 2024

@sol-loup Thanks!

In my case, the server uses separate pods for each type of resource.
I discovered that after doing the entire compilation process there was a specific server command to create a new pod and change between the previous and new version of the code.

After that the module worked.

@sol-loup
Copy link
Contributor

sol-loup commented May 9, 2024

No problem -- do you mind closing this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants