Class 'SoapClient' not found in.. wordpress - php

I get this error:
Fatal error: Class 'SoapClient' not found in /hoe/roits/wp.com/wp-content/plugins/Aggmges/classitle.php on line 51
Worpress doesnt seem to have the latest php installed as I understand. What can I do to install the newest php or make it so that the SoapClient will work in worpress?

http://php.net/manual/en/soap.installation.php
Install the php soap module if you don't have it, and make sure enabled in php.ini

Related

Fatal error: Call to undefined method PEAR::XML_Parser() in /[DIR]/php5.6.10/lib/php/PEAR.php on line 219

After doing a lot of Google search and also going trough SO questions.
I did not find solution to this problem.
I have installed MAMP with multiple versions.
Currently working on PHP-5.6.10.
I am facing this issue:
Fatal error: Call to undefined method PEAR::XML_Parser() in /[DIR]/php5.6.10/lib/php/PEAR.php on line 219
Can anybody please look into it?
I got it solved.
How?
It was a version problem.
Go to http://pear.php.net/package/XML_Parser/download
Click on Download, you will get the appropriate package name.
Install package with that version.
EDIT:
Uninstalled and reinstalled the module
XML_Parser
Commands:
pear uninstall XML_Parser-1.3.7
pear install XML_Parser-1.3.1

Installing PECL in Cpanel (Fatal Error Class 'HttpRequest' not found )

I need to call an API using PECL from my Server. I installed PEAR and PECL from the PHP PEAR Packages in Cpanel. .I attached the screenshot. But when I run my code $request = new HttpRequest(); it returns an error Fatal error: Class 'HttpRequest' not found in /home/wonr/public_html/sms_api.php on line 3
It is shared hosting.Is this causing because of the path error? Or do I need to do any additional setup on the Server?
I cannot find additional information on this.
Thank you.

mcrypt installed and enabled but magento checkout throwing undefined function mcrypt_module_open()

I have a Magento 1.9 site installed and all necessary php extensions. The site works, but when I get to checkout/onepage I get the error:
Fatal error: Call to undefined function mcrypt_module_open() in /path/lib/Varien/Crypt/Mcrypt.php on line 63
I understand this typically means that mcrypt is not installed, but looking at the contents of phpinfo(); reveal that it is installed and enabled
portion of phpinfo
I am running on php 5.3.29 using apache on a mac. I used homebrew to install php53 and php53-mcrypt. I am curious to know why the mcrypt_module_open() function cannot be found if I have mcrypt enabled.

Call to undefined function simplexml_load_string()

Call to undefined function simplexml_load_string()
I am getting this error on all the sites located on our server. Everything was working correctly until today and all of sudden this error poped up.
I have checked Simplexml and it is already installed on the server. Here is the error:
Fatal error: Call to undefined function simplexml_load_string() in
.../lib/Varien/Simplexml/Config.php on line 510
Had the same problem today. I tried to check whether extension is loaded and I was getting true (from command line) Then I found that I was using multiple php versions and the site in question was using php5.4 which for some reason was failing for simplexml
Since I am in a cPanel/WHM environment I ran
yum install ea-php54-php-simplexml
which fixed the issue. This is for EasyApache4. Perhaps you can just update simplexml sepending on your flavour of linux.
Installing latest extension resolved the issue.
yum install ea-php56-php-simplexml

Magento2 backend fatal error after backup recovery

After a backup recovery on my magento2 website I get this error:
Backend fatal error: PHP Fatal error: Uncaught Error: Class
'DOMDocument' not found in
/home/arredeom/public_html/vendor/magento/framework/Config/Dom.php:364\nStack
trace:\n#0
/home/arredeom/public_html/vendor/magento/framework/Config/Dom.php(109):
Magento\Framework\Config\Dom->_initDom('__construct('_createConfigMerger('Magento\\Framewo...',
'_readFiles(Object(Magento\Framework\Config\FileIterator))\n#4
/home/arredeom/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(269):
Magento\Framework\Config in
/home/arredeom/public_html/vendor/magento/framework/Config/Dom.php on
line 364\n
I've checked on cpanel config and on PHP Selector | extensions it says: Current PHP version: 7.0 and Dom is enabled (flag is on)
is there any way to fix it? thanks
PHP told you
Class 'DOMDocument' not found ...
The DomDocument class is a fundamental part of PHP's XML handling. If the DomDocument class is not present, that means whomever updated your backend server didn't include this fundamental part of PHP. This is common in some Linux package management features that slice up core PHP functionality so users can install only what they need.
The way to fix this is to install PHP's XML/DOM functionality. The way you do that will depend on which linux distribution you're using.
You need php-xml :
sudo apt-get install php-xml

Categories