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

WSDL API does not work in PHP 8.0 #1602

Closed
Caprico85 opened this issue May 6, 2021 · 1 comment
Closed

WSDL API does not work in PHP 8.0 #1602

Caprico85 opened this issue May 6, 2021 · 1 comment
Labels

Comments

@Caprico85
Copy link
Contributor

Preconditions (*)

  1. OpenMage 20.0.10
  2. PHP 8.0

Steps to reproduce (*)

  1. Open http://example.com/index.php/api/v2_soap/index/?wsdl in browser

Expected result (*)

  1. URL can be opened

Actual result (*)

The URL can't be opened. The error

Fatal error: Declaration of Mage_Api_Model_Wsdl_Config_Element::getChildren($source) must be compatible with SimpleXMLElement::getChildren() in [...]/app/code/core/Mage/Api/Model/Wsdl/Config/Element.php on line 179

is shown.

This works in PHP 7.4. It only fails since PHP 8.0. I'm not sure if this is caused because PHP 8.0 is more strict towards incompatible method signatures. Or if SimpleXMLElement has got a new method getChildren() in PHP 8.0.

@Flyingmana
Copy link
Contributor

Solved by #1613

Thank you a lot for finding this.

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

No branches or pull requests

2 participants