mitydigital / statamic-tinymce-cloud

A Statamic fieldtype for TinyMCE using Tiny Cloud for Statamic 3.3+ and Statamic 4.0
https://docs.mity.com.au/tinymce-cloud
MIT License
2 stars 1 forks source link

Configuration Error #6

Closed ottz0 closed 1 year ago

ottz0 commented 1 year ago

Bug description

Add a default configuration option and save. When trying to save this error appears.

Screenshot 2022-12-19 at 9 58 41 am

Steps to reproduce

Create a new default configuration option and save

Environment and versions

Statamic 3.3.60 Pro
Laravel 8.83.27
PHP 8.1.9

Additional details

No response

martyf commented 1 year ago

Can you update your base Laravel install to 9 by any chance?

The Str::squish function was added with v9.

If you're just running Statamic, there should be no issues with upgrading to Laravel 9. If you have other code running, you'll need to make sure that is compatible too.

I'll update the docs to make note of Laravel 9 - even more important now with Laravel 10 just around the corner.

ottz0 commented 1 year ago

Thanks... upgrading to Laravel 9 fixes this

martyf commented 1 year ago

Cool bananas - I've updated the docs to make note of this too.