fixing error Call to undefined function simplexmlloadstring
<p>usually the error "Call to undefined function simplexmlloadstring" happens when the php xml library is missing from your server.</p>
<p>You can install the xml php library with the following command, replacing the version of php-fpm with the version you are running. </p>
<pre class="default s-code-block"><code class="hljs language-csharp">sudo apt install php7<span class="hljs-number">.<span style="color: #e03e2d;"><strong>0</strong></span></span>-xml</code></pre>
<p>On this server im running 7.4 at the time of writing this, so need to do:</p>
<p><code>sudo apt install php7<span class="hljs-number">.4</span>-xml</code></p>
<p>Seems that all my API's were broken, as this library was missing, great.. </p>
<p><img src="https://i.imgur.com/URrl3FQ.png" /></p>
<p>After installing make sure you restart your web server. </p>
<p class="p1"><code><span class="s1">sudo service nginx restart</span></code></p>
<p class="p1"> </p>