How to fix WHMCS error Call to undefined method WHMCS\Http\Client\HttpClient

WHMCS Error:

Error: Call to undefined method WHMCS\Http\Client\HttpClient::requestAsync() in

Rename vendor/ and modules/ folders

root@server [/home/user/public_html/hosting]# mv vendor/ vendor_old
root@server [/home/user/public_html/hosting]# mv modules/ modules_old

Upload fresh appropriate WHMCS version files into temp folder, for example: whmcstemp/

Copy vendor/ and modules/ folders from whmcstemp into your WHMCS installation folder:

root@server [/home/user/public_html/hosting]# cp -rp ../whmcstemp/vendor/
Read the rest

How to deal with “ea-php72” is not an EA4 SCL PHP error

Go to your WHM –> Home –> Software –> MultiPHP Manager

You should be able to resolve this by changing the domains to use an available version of PHP, or by installing the missing PHP versions.

You need to either install missed PHP version or set it to inherit

Command line solution:

Find main domain of account in issue and run:

whmapi1 php_set_vhost_versions version=inherit vhost=domainname.com
Read the rest

How to fix exim Could not complete sender verify

Check if you can reach a remote server

dig a gmail.com

If this timeouts then try over one of dns resolver directly

[~]# dig @8.8.8.8 a gmail.com

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.2 <<>> @8.8.8.8 a gmail.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached

Timeout means DNS resolver is dead

[~]# cat /etc/resolv.conf
Read the rest

How to change WordPress site URL and home URL using wp-cli tool

To check site url:

wp option get siteurl

To update your website’s URL:

wp option update home 'https://alltime.pp.ua'
wp option update siteurl 'https://alltime.pp.ua'

This will update to MySQL records “home” and “siteurl

To run in-deep updates read the following article:

https://alltime.pp.ua/blog/how-to-change-wordpress-main-url-to-new-one/Read the rest

How to convert png/jpeg to webp and fix delegate error if any

Here is possible error:

admin@server1 [~/public_html/]# convert image.png -quality 50 image2.webp
convert: delegate failed `’cwebp’ -quiet %Q ‘%i’ -o ‘%o” @ error/delegate.c/InvokeDelegate/1928.

Supposed ImageMagick already installed then install cwebp

yum install libwebp libwebp-tools -y

Then try to convert your image again

convert image.png
Read the rest

How to know if perl module is installed and its version

Run in your command line:

perldoc -l LWP::UserAgent

/usr/local/share/perl5/LWP/UserAgent.pm

perl -e 'foreach (@INC) { print `find $_ -type f -name "*.pm"`; }' |grep UserAgent

/usr/local/share/perl5/LWP/UserAgent.pm
/usr/share/perl5/CPAN/LWP/UserAgent.pm
./.cpanm/work/1589816008.10374/CPAN-2.27/blib/lib/CPAN/LWP/UserAgent.pm
./.cpanm/work/1589816008.10374/CPAN-2.27/lib/CPAN/LWP/UserAgent.pm

cpan -i LWP::UserAgent

Reading ‘/home/.cpan/Metadata’
Database was generated on Fri, 10 Apr 2020 20:29:02 GMT
CPAN: Module::CoreList loaded ok (v2.76_02)
LWP::UserAgent is up to date (6.46).

Read the rest