BoldGrid / boldgrid-backup

The Total Upkeep plugin.
GNU General Public License v2.0
11 stars 9 forks source link

Potential Transfer Issue with PHP 8.2 #566

Open SitesByYogi opened 1 year ago

SitesByYogi commented 1 year ago

In reference to this contact: https://www.boldgrid.com/support/question/im-receiving-an-error-when-transferring-site-with-total-upkeep/#post-102217

User attempted an unsuccessful transfer using total upkeep and received the following message in the restoration logs of the destination site:

[2023-08-20 00:47:50 UTC] Last error: Array
(
[type] => 8192
[message] => Creation of dynamic property Boldgrid_Backup_Admin_Core::$premium is deprecated
[file] => /home1/mpd/public_html/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-core.php
[line] => 902
)

[2023-08-20 00:47:50 UTC] PHP Version: 8.2.8
[2023-08-20 00:47:50 UTC] WordPress Version: 6.3
[2023-08-20 00:47:50 UTC] Total Upkeep version: 1.15.7
[2023-08-20 00:47:50 UTC] getpgid support: Available
[2023-08-20 00:47:50 UTC] ——————————————————————————–
[2023-08-20 00:47:50 UTC] Beginning ajax_url_import…
[

We tested a Total Upkeep migration with PHP 7.4 at the “Source” site and PHP 8.2 at the “Destination” site using the Magic Link method and although we did receive a similar warning the backup did allow us to restore on the destination site.

Our warning:

[2023-08-22 15:11:25 UTC] Last error: Array
(
    [type] => 8192
    [message] => Creation of dynamic property Boldgrid\Library\Library\Plugin\Plugin::$getUpdateData is deprecated
    [file] => /home/wpnfinite/public_html/wp-content/plugins/boldgrid-backup/vendor/boldgrid/library/src/Library/Plugin/Plugin.php
    [line] => 150
)

I think there is a possible bug here with 8.2 which is still in BETA.

A solid workaround could be scaling the “Destination” site back to at least PHP 8.0 then reattempt the transfer.