Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array and string offset access syntax with curly braces is no longer supported in PHP 7.4+ #61

Open
andrewl64 opened this issue May 3, 2021 · 0 comments

Comments

@andrewl64
Copy link

WordPress v5.7.1 | Unyson v2.7.24 | PHP v8.0.5


From PHP 7.4+ (technically it was to be deprecated in PHP 5.1), array and string offset access syntax with curly braces has been deprecated. However, the Unyson backups extension seems to still use curly braces in class-fw-ext-backups-task-type-db-export.php, class-fw-ext-backups-task-type-db-restore.php, class-fw-ext-backups-task-type-files-export.php and class-fw-ext-backups-task-type-files-restore.php.

This seems to result in an "ajax errors" warning causing the backup to fail with the following errors returned when trying to Create Full Backup/Create Content Backup:

PHP message: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/example/public_html/wp-content/plugins/unyson/framework/extensions/backups/includes/module/tasks/type/class-fw-ext-backups-task-type-db-export.php on line XXX" while reading response header from upstream....

PHP message: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/example/public_html/wp-content/plugins/unyson/framework/extensions/backups/includes/module/tasks/type/class-fw-ext-backups-task-type-db-restore.php on line XXX" while reading response header from upstream....

PHP message: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/example/public_html/wp-content/plugins/unyson/framework/extensions/backups/includes/module/tasks/type/class-fw-ext-backups-task-type-files-export.php on line XXX" while reading response header from upstream....

PHP message: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/example/public_html/wp-content/plugins/unyson/framework/extensions/backups/includes/module/tasks/type/class-fw-ext-backups-task-type-files-restore.php on line XXX" while reading response header from upstream....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant