Whitespace before SOAP declaration

We recently got a weird bug, and I’m wondering if anyone has encountered it.

When Magento generates the WSDL (v2) it started adding an extra whitespace before the declaration.

This seems to pretty much break the internet 🙂 .

I’ve grep’ed the entire code base and there are no whitespaces before XML decelerations anywhere.

Also, to add a topping, no errors are generated anywhere…

Thank you

Magento Asked by boruch on December 29, 2020

3 Answers

3 Answers

Remove any characters (spaces, tabs etc..) before <?php at beginning of *.php files.

Answered by Tomir Schmite Jr. on December 29, 2020

It's almost certainly a blank line at the start of a file.

Answered by hammygoonan on December 29, 2020

Try using this script to find the extra whitespace:

You'll obviously need ssh for this and you should backup your files before running this or any script that edits your files

Answered by JasonS on December 29, 2020

Add your own answers!

Related Questions

Show date attribute in layered navigation

1  Asked on December 26, 2021 by rajan-faldu


How to solve the Service Temporarily Unavailable?

1  Asked on December 26, 2021 by mel-lewis


How to add custom URLs to sitemap in Magento 2?

4  Asked on December 26, 2021 by latha-reddy


Restore cancelled order in magento 2

1  Asked on December 26, 2021 by asad-mazhar


Who Bought This Also Bought in Magento 2

0  Asked on December 26, 2021 by steve-jones


Execute Plugin Class from specific module in Magento2

1  Asked on December 24, 2021 by manjunath


Remove unused CSS rules in Chrome Audit

1  Asked on December 22, 2021 by iyappan-perumal


Ask a Question

Get help from others!

© 2022 All rights reserved.