Can't sync anki to anki web. getting weird message

Hi. I recently bought the anki app for my ipad and iphone but I realized I can’t see my images attached to sketchy card decks. I’ve tried a lot of the troubleshooting advice on here and reddit to no avail. Recently after trying to sync I’ve been getting the following message:
Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=False sv=?
Add-ons, last update check: 2022-01-09 20:21:35

Caught exception:
Traceback (most recent call last):
File “aqt\webview.py”, line 41, in cmd
File “aqt\webview.py”, line 142, in _onCmd
File “aqt\webview.py”, line 595, in _onBridgeCmd
File “aqt\toolbar.py”, line 168, in _linkHandler
File “aqt\toolbar.py”, line 192, in _syncLinkHandler
File “aqt\main.py”, line 951, in on_sync_button_clicked
File “aqt\main.py”, line 971, in _sync_collection_and_media
File “aqt\sync.py”, line 118, in sync_collection
File “anki\collection.py”, line 216, in save
AttributeError: ‘NoneType’ object has no attribute ‘modified_in_python’

Can anyone help?

That message seems to imply something went wrong prior to that message being displayed. When you start Anki, is there a different error message shown first? You may need to use the console to see it.

https://docs.ankiweb.net/platform/windows/startup-issues.html#debugging