Error restoring from backup

Declaration of FreePBX\modules\Backup\Handlers\Restore\Legacy::process($use
inmemory) should be compatible with FreePBX\modules\Backup\Handlers\Restore
\Common::process()

This is the second time this week this has shown up. Have you checked to see if there’s a ticket in on this issue yet?

Hi @kensikora,
Pls try to update your PBX exist Backup module to edge version.

fwconsole ma --edge downloadinstall backup
fwconsole chown
fwconsole r --verbose

Thanks.

Shahin

I updated using the commands above on the new PBX and get the same error.

Hi @kensikora

If you update Backup Module to EDGE version, fixed folders/files permissions and still you can see same error message i think you should open Support Ticket at Sangoma. How to @cynjut suggested you before.

Thanks.

Shahin

Hi all,

i also have the same issue and wanted to ask if @cynjut got his error resolved?

Thanks for an Info!

It wasn’t my error, I’d just noticed that it had come up a couple of times and wanted to know if someone had submitted a ticket.

The answer that we did get was to do the following:

I can see https://issues.freepbx.org/browse/FREEPBX-21959 reported today with a similar issue and I asked the user to try with the latest edge release i.e. v15.0.10.38.

Please update Jira issue, if the v15.0.10.38 release also has the same issue present?

please use the below command to check your installed backup module to confirm you are using the latest edge.

fwconsole ma list|grep backup

thanks

1 Like

I’ve got a solution of this problem! It caused by php 7.x!
So, you can install a switch between php 5.6 and 7.x

you will need to install common tools on Debian
apt install software-properties-common
apt update
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring libapache2-mod-php5.6 libapache2-mod-php7.0
– and you’ll need xml module for php 5.6
apt-get install php5.6-xml

First you’ll need to swith to php 5.6 for Restore a backup…

Switching between 5.6 & 7.0

on_php7.0.sh
#!/bin/bash
a2dismod php5.6 && a2enmod php7.0
sudo ln -sfn /usr/bin/php7.0 /etc/alternatives/php
update-alternatives --set php /usr/bin/php7.0
systemctl restart apache2

on_php5.6.sh – switch to php 5.6
#!/bin/bash
a2dismod php7.0 && a2enmod php5.6
ln -sfn /usr/bin/php7.0 /etc/alternatives/php
update-alternatives --set php /usr/bin/php5.6
systemctl restart apache2

After you can switch it back to 7.0…
Best Regards!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.