Support

Akeeba Backup for WordPress

#30252 Use of undefined constant CURLOPT_ACCEPT_ENCODING

Posted in ‘Akeeba Backup for WordPress’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

WordPress version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by damnsharp on Tuesday, 18 September 2018 05:11 CDT

damnsharp
Hi great team,
On one site I get an error on the plug-ins page when I activate Akeeba.
All themes/plugins are up-to-date

Error: "Notice: Use of undefined constant CURLOPT_ACCEPT_ENCODING - assumed 'CURLOPT_ACCEPT_ENCODING' in /home/albus006/domains/stadseboerenoss.nl/public_html/wp-content/plugins/akeebabackupwp/app/Awf/Download/Adapter/Curl.php on line 89"
(and line 91)

Do you have an idea?
I can send login details.

tampe125
Akeeba Staff
Hello,

thank you very much for your report.
It seems that your server is missing the constant CURLOPT_ACCEPT_ENCODING , I have just deployed a workaround for that.
Please download and install the latest dev release and try again, that should fix your issue.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

damnsharp
Yes Davide that works! Thanks.

Should I contact the hosting company about this issue?

tampe125
Akeeba Staff
You could, but that's pretty hard that the host would fix it. However you could give it a try and ask the host to investigate why the missing constant.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

damnsharp
strangely enough it is on a server where I have several sites (reseller package) but other sites don't have this problem

tampe125
Akeeba Staff
To be honest, I'm not 100% sure of the cause of this issue.
cURL feature is an external library, that has bindings inside the PHP code. This means that cURL and PHP versions could mismatch (ie cURL supports some feature of which PHP is unaware of and viceversa).
I suspect your PHP version on that specific site has an older library of cURL, where such constant is not defined.

In my opinion, is way faster and easier to workaround this issue rather than trying to fix the original cause, since there could be thousands reasons.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

damnsharp
I understand Davide, thanks.

Last question, what about updates now I have installed a dev version?

tampe125
Akeeba Staff
There are no problems.
Akeeba Backup will always warn you to update to a "stable release", since you're in dev.
You simply have to wait for the next stable version to come out and install it.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

damnsharp
Fantastic, I will close the ticket.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!