Upgrade from 8.4.5 to 8.5.1 now I cannot replace files

Permalink
Made a couple site changes. First I updated my site from Concrete 8.4.5 to 8.5.1 and all went well. Then I updated the PHP used from PHP7.0 to PHP7.3.

Now I get this erro when trying to replace a file:
Concrete\Core\Error\UserMessageException: Unable to find the specified folder. in /home/mdius/public_html/updates/concrete5-8.5.1/concrete/controllers/backend/file.php:585 Stack trace: #0
/home/mdius/public_html/updates/concrete5-8.5.1/concrete/controllers/backend/file.php(505): Concrete\Controller\Backend\File->getDestinationFolder() #1
/home/mdius/public_html/updates/concrete5-8.5.1/concrete/controllers/backend/file.php(197): Concrete\Controller\Backend\File->handleUpload('file') #2
[internal function]: Concrete\Controller\Backend\File->upload() #3
/home/mdius/public_html/updates/concrete5-8.5.1/concrete/src/Controller/AbstractController.php(294): call_user_func_array(Array, Array) #4
/home/mdius/public_html/updates/concrete5-8.5.1/concrete/src/Routing/ControllerRouteAction.php(61): Concrete\Core\Controller\AbstractController->runAction('upload', Array) #5
/home/mdius/public_html/updates/concrete5-8.5.1/concrete/src/Http/RouteDispatcher.php(37): Concrete\Core\Routing\ControllerRouteAction->execute(Object(Concrete\Core\Http\Request), Object(Concrete\Core\Routing\Route), Array) #6
/home/mdius/public_html/updates/concrete5-8.5.1/concrete/src/Http/Middleware/DispatcherDelegate.php(39): Concrete\Core\Http\RouteDispatcher->dispatch(Object(Concrete\Core\Http\Request)) #7
/home/mdius/public_html/updates/concrete5-8.5.1/concrete/src/Http/Middleware/MiddlewareStack.php(86): Concrete\Core\Http\Middleware\DispatcherDelegate->next(Object(Concrete\Core\Http\Request)) #8
/home/mdius/public_html/updates/concrete5-8.5.1/concrete/src/Http/DefaultDispatcher.php(126): Concrete\Core\Http\Middleware\MiddlewareStack->process(Object(Concrete\Core\Http\Request)) #9
/home/mdius/public_html/updates/concrete5-8.5.1/concrete/src/Http/DefaultDispatcher.php(58): Concrete\Core\Http\DefaultDispatcher->handleDispatch(Object(Concrete\Core\Http\Request)) #10
/home/mdius/public_html/updates/concrete5-8.5.1/concrete/src/Http/Middleware/DispatcherDelegate.php(39): Concrete\Core\Http\DefaultDispatcher->dispatch(Object(Concrete\Core\Http\Request)) #11
/home/mdius/public_html/updates/concrete5-8.5.1/concrete/src/Http/Middleware/ThumbnailMiddleware.php(76): Concrete\Core\Http\Middleware\DispatcherDelegate->next(Object(Concrete\Core\Http\Request)) #12
/home/mdius/public_html/updates/concrete5-8.5.1/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\ThumbnailMiddleware->process(Object(Concrete\Core\Http\Request), Object(Concrete\Core\Http\Middleware\DispatcherDelegate)) #13
/home/mdius/public_html/updates/concrete5-8.5.1/concrete/src/Http/Middleware/FrameOptionsMiddleware.php(39): Concrete\Core\Http\Middleware\MiddlewareDelegate->next(Object(Concrete\Core\Http\Request)) #14


I can add new files with no issues, just cannot replace.

mdius
 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Can you try selecting several of the old files in the file manager, right click and choose Rescan.
Then clear the cache and see if that makes any difference.
mdius replied on at Permalink Reply
mdius
Tried this, it did not work.
mdius replied on at Permalink Reply
mdius
I just installed the Rescan All Files Add-On, it didn't work either. Also, I have 4 sites with Concrete 5 that I updated to 8.5.1 and 3 of the 4 have this issue.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Are you seeing any errors in the browser console?
mdius replied on at Permalink Reply 1 Attachment
mdius
Only this attachment.

If you can copy and paste it is what I pasted in the code box.

If I change back to PHP 7.0 it makes no difference.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Was your previous concrete5 using filesets at all?
mdius replied on at Permalink Reply
mdius
Yes
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Are those filesets still in place with the files in them?
mdius replied on at Permalink Reply
mdius
Yes
mdius replied on at Permalink Reply
mdius
I just uploaded a new image, which worked. Then I tried to replace the new image I just uploaded. This also worked.

So it is my older images that I cannot replace.

I have re-scanned the individual files I tried to replace and I also used the Rescan All Files Automated Job. I have cleared my cache a few times (including clear the thumbnails).

Nothing is working.

(Edit)
I can upload the files to my /files/incoming folder and replace them that way. Not the way I want cause I need to replace about 50 images, but for now, I will.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
This could be down to your environment since one of your sites is working properly.
If you can provide zipped up copies of your database and file system and attach them to a private message, I will load your copies to my development server and attempt to debug this.

Otherwise, I am at a loss as to what to suggest next.
mdius replied on at Permalink Reply
mdius
Did you see my edit to this message? I did it just before you replied.

I will zip of my site and let you take a crack at it. I thank you for the willingness to help.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Yes I have seen the edit now.
That is interesting, how big are the images you are trying to upload?
Can you attach a screenshot of your environment, or even copy and paste as text?
mdius replied on at Permalink Reply
mdius
Less than 200K. It seems August 1st and newer are fine. That might be when I upgraded from Concrete 5.7 to 5.8.

Yes, newer files Like 8-1-19 and newer can be replaced, older cannot. Even on the site that worked. The older files still do not replace. So, all 4 sites do the same thing.
mdius replied on at Permalink Reply
mdius
I sent you a copy of the site. I sent the smaller site I have. Also, I use cpanel for my site, if that makes any difference.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Yes, I have the file and will start testing tomorrow morning.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Try this:
Highlight a bunch of your old files in the file manager, then right click the highlighted area and choose 'Move to Folder' then in the dialog box tick 'File Manager' and Save.
Then try to replace one of them ... it works for me.
mdius replied on at Permalink Reply
mdius
Ok, I been doing the upload to incoming cause it worked, but now I get a sitewide error, if I refresh a few times it goes away.

$type = new CustomThumbnail($width, $height, $thumbnail['path'], $crop);
                $fv = $file->getVersion($thumbnail['fileVersionID']);
                if ($fv->getTypeObject()->supportsThumbnails()) {
                    $fv->generateThumbnail($type);
                    $fv->releaseImagineImage();
                }
            } elseif ($type = Version::getByHandle($thumbnail['thumbnailTypeHandle'])) {
                // This is a predefined thumbnail type, lets just call the version->rescan
                $fv = $file->getVersion($thumbnail['fileVersionID']);
Right here is highlited -> if ($fv->getTypeObject()->supportsThumbnails()) {
                    $fv->generateThumbnail($type);
                    $fv->releaseImagineImage();
                }
            }
        } catch (FileExistsException $e) {
mdius replied on at Permalink Reply
mdius
Yes that way does work, so I just have to do this to all the files I want to replace. I will, over time, do this to all. But the main site have over 1000 files.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
deleted
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Oh and turn off all caches and clear the cache before you start
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
I have sent you a custom SQL and instructions by PM.
This will move all your files into the File Manager folder.
Make sure you do the database export BEFORE running the SQL.
Use at your own risk.