Invalid Token when uploading image v. 8.21
PermalinkNow I get a message: Invalid Token: Please reload page and try again.
Reloading the page has no effect. I have signed out and back in again, cleared the cache, tried different images, and different pages. The images are all jpgs, properly named, and well under 1 MB in size. But still with no success. Anybody ideas what might be causing this? I have not done any custom coding on the site and can't think of anything I did that might be causing this.
Thanks in advance for any help.

If this isn't a caching problem, alternative session management probably won't help. However, given no other ideas, it might be worth a try. Instructions for developers are here:
https://documentation.concrete5.org/tutorials/enable-database-based-...
Make sure you keep a copy of the original file in case Bad Things happen.
"To enable database based sessions in concrete5.7+ you simply need to add a configuration value to /application/config/concrete.php"
All well and good, but there is no concrete.php in the /application/config/ folder. Would it be this one? /application/config/generated_overrides/concrete.php.
(The one that says "Do not edit this file directly....)
You need to create your own blank concrete.php file and add your custom code..
Try changing to the default elemental theme and see if the problems go away..
And now, I am babbling. Thanks again for your help!
return array( 'session' => array( 'handler' => 'database' ) );
Warning: array_replace_recursive(): Argument #2 is not an array in /home/*****/public_html/concrete/vendor/illuminate/config/Illuminate/Config/FileLoader.php on line 102
return array( 'session' => array( 'handler' => 'database' ) );
Warning: array_replace_recursive(): Argument #2 is not an array in /home/*****/public_html/concrete/vendor/illuminate/config/Illuminate/Config/FileLoader.php on line 102
The cache directory must be published under the webroot (or you can set the concrete.cache.directory_relative configuration option)
<?php
Thanks for everyone's help.
<IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year"
This seems to cause weird problems in the backend of C5 such as caching attribute and error values etc. removing this seems to have resolved the invalid token error for us