1 (edited by sponch 2023-04-10 16:29:03)

Topic: error when uploading images

Hey,
just tried to upload images into a simpleviewer (showcase) gallery. unfortunatlyi get a yellow warning triangle with the following text "Creation of dynamic property ThemSet:::$config is deprecated in themeset.php, line 60
Even tried clean install.

Showkase pro: 1.76 
PHP: 8.0 (also tested 8.1 and 8.2)

Example Picture attached

Any ideas? Thanks
Sponch

Post's attachments

1.jpg
1.jpg 391.42 kb, 1 downloads since 2023-04-10 

You don't have the permssions to download the attachments of this post.

Re: error when uploading images

That seems strange...
Dynamic properties were deprecated in PHP 8.2 (as noted here) so you should not be receiving this error message under PHP 8.0 or PHP 8.1.
Could you maybe double-check that the problem happens under PHP 8.0 and PHP 8.1?

The developers are aware of the problem and it should be resolved in the next release (although I do not know when this might be).
In the meantime, the workaround really ought to be to use either PHP 8.0 or PHP 8.1 (before dynamic properties were deprecated) or, indeed, any version of PHP from PHP 5.2.0 up to PHP 8.1.17 so please make sure that your web site is definitely using PHP 8.0 or PHP 8.1 rather than PHP 8.2 and let me know how you get on.
Thank you.

Re: error when uploading images

I just had this problem too. After reading it the answer here I went and changed my PHP from 8.2 back down to 8.1 and that fixed it for now. I do hope they are working on this problem and fix it for version 8.2 this year though. My free hosting support for 8.1 expires in 12/2024.

Kim

Re: error when uploading images

@Kim

Please apply the patch I created in this post: https://showkase.net/forum/viewtopic.php?pid=2368#p2368

Further details on how to apply the patch can be found here: https://showkase.net/forum/viewtopic.php?pid=2376#p2376

This should resolve your issue and ensure that your Showkase installation is fully compatible with PHP 8.2.