Error Uploading to AWS - ConfigurationProvider.php

I'm uploading an image to AWS.
Now, I'm getting this error.

Seems like the use of "self" in callable is deprecated in newest PHP.

File: dmxConnectLib/aws/Aws/S3/RegionalEndpoint/ConfigurationProvider.php
Line: 83

I tried running a full update in Wappler a few times, but when I examine the file it's still from 2020 and doesn't work yet.

Am I missing something? Is there an update for this?

Switch to use Composer in your PHP project, you can then install the latest AWS SDK.

This has been really difficult.

I tried to enable Composer in Wappler. But I got errors.

So, I read this thread (PHP Composer could not detect version) by @Heather_Mann

I followed this in CMD:
scoop uninstall php
scoop install php
scoop install openssl
scoop uninstall php composer
scoop install php composer

But, now, Wappler keeps uninstalling PHP 8.4.1 automatically.

How do I tell Wappler to use PHP 8.4.1?
When I run scoop PHP update, the next time I do a system check in Wappler it uninstalls it and installs PHP 8.1.

Is there a reason you want to have the PHP 8.4.1 installed? We currently have set the scoop version of PHP to 8.1 since that version is sure to work with all our modules and the latest version can have issues since it was not yet fully tested.

1 Like

Does Wappler currently support that version, i seem to recall some major issues when using 8.3 onwards due to library depreciation. Not seen any announcements in updates about compatibility being implemented

I didn't realize that.
I was updating my sites to 8.4.
I'll keep things at 8.0 or 8.1 for now.

We're currently working on updating all our PHP components for PHP 8.4 support.

2 Likes

Fixed in Wappler 7.2.0

1 Like