Title: Attachment doesn&#8217;t work
Last modified: April 11, 2023

---

# Attachment doesn’t work

 *  Resolved [mcjarod](https://wordpress.org/support/users/mcjarod/)
 * (@mcjarod)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/)
 * The attachment doesn’t work, after saving I check and the attachment is gone,
   I have WordPress 6,2
    -  This topic was modified 3 years, 2 months ago by [mcjarod](https://wordpress.org/support/users/mcjarod/).

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [vkurko](https://wordpress.org/support/users/avsoft/)
 * (@avsoft)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/#post-16644476)
 * Hello [@mcjarod](https://wordpress.org/support/users/mcjarod/)
 * I just tested on WordPress 6.2 and it works for me. If you have access to your
   server logs, please send the logs for the time interval corresponding to the 
   error to [support@getmoneymanager.com](https://wordpress.org/support/topic/attachment-doesnt-work/support@getmoneymanager.com?output_format=md).
   Also provide any other details that might help reproduce the issue.
 * 
   Vladimir
 *  Thread Starter [mcjarod](https://wordpress.org/support/users/mcjarod/)
 * (@mcjarod)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/#post-16644928)
 * Hi Vladimir, thanks for your prompt response, I have access to my server logs
   but it doesn’t show any errors, but I can attach a video of what’s going on.
    -  This reply was modified 3 years, 2 months ago by [mcjarod](https://wordpress.org/support/users/mcjarod/).
 *  Plugin Author [vkurko](https://wordpress.org/support/users/avsoft/)
 * (@avsoft)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/#post-16645034)
 * Thanks a lot for the video. Unfortunately, it doesn’t help much.
 * Can you send me information about the current structure of the `wp_money_manager_files`
   table in your database? For example, this can be done using the query `SHOW CREATE
   TABLE wp_money_manager_files`
 *  Plugin Author [vkurko](https://wordpress.org/support/users/avsoft/)
 * (@avsoft)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/#post-16673580)
 * If you still need help, please contact me at [support@getmoneymanager.com](https://wordpress.org/support/topic/attachment-doesnt-work/support@getmoneymanager.com?output_format=md).
 *  Thread Starter [mcjarod](https://wordpress.org/support/users/mcjarod/)
 * (@mcjarod)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/#post-16680198)
 * sorry this is the table
   [https://drive.google.com/file/d/1om05PXdqEAiy6gXuonSDWt2KxGLO48G_/preview](https://drive.google.com/file/d/1om05PXdqEAiy6gXuonSDWt2KxGLO48G_/preview)
 * it’s empty 🙁
    -  This reply was modified 3 years, 2 months ago by [mcjarod](https://wordpress.org/support/users/mcjarod/).
    -  This reply was modified 3 years, 2 months ago by [mcjarod](https://wordpress.org/support/users/mcjarod/).
    -  This reply was modified 3 years, 2 months ago by [mcjarod](https://wordpress.org/support/users/mcjarod/).
 *  Plugin Author [vkurko](https://wordpress.org/support/users/avsoft/)
 * (@avsoft)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/#post-16680688)
 * [@mcjarod](https://wordpress.org/support/users/mcjarod/) What version of Money
   Manager are you using? The table structure in the screenshot is outdated, it 
   was changed in version 1.15.0.
 *  Thread Starter [mcjarod](https://wordpress.org/support/users/mcjarod/)
 * (@mcjarod)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/#post-16683649)
 * I have the Versión 1.23.1 updated and tested and the problem continue
 *  Plugin Author [vkurko](https://wordpress.org/support/users/avsoft/)
 * (@avsoft)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/#post-16684360)
 * If the table structure has not changed, then for some reason the update was not
   successful. If you can provide access to your database, then I will try to fix
   it. Otherwise, I have no other solution than to reinstall the plugin, losing 
   the data already entered, unfortunately.
 *  Thread Starter [mcjarod](https://wordpress.org/support/users/mcjarod/)
 * (@mcjarod)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/#post-16684375)
 * is not possible just do an update, I think other could have the same problem.
   I was one of the first in test your application or may be simply tell me which
   change I should do.
    -  This reply was modified 3 years, 2 months ago by [mcjarod](https://wordpress.org/support/users/mcjarod/).
    -  This reply was modified 3 years, 2 months ago by [mcjarod](https://wordpress.org/support/users/mcjarod/).
 *  Plugin Author [vkurko](https://wordpress.org/support/users/avsoft/)
 * (@avsoft)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/#post-16684752)
 * I would release an update if I could reproduce the issue and identify the specific
   bug. Based on your data, unfortunately, it is not yet clear why your database
   has not been updated. I can give you a SQL query to create the desired `wp_money_manager_files`,
   but it is quite possible that something else in your database is also broken.
 * You need to drop the existing `wp_money_manager_files` table and create a new
   one with this query:
 *     ```wp-block-code
       create table wp_money_manager_files
       (
       id bigint unsigned auto_increment
       primary key,
       account_id bigint unsigned null,
       transaction_id bigint unsigned null,
       attachment_id bigint unsigned not null,
       filename varchar(255) not null,
       description text null,
       url varchar(255) not null,
       created_at timestamp null,
       updated_at timestamp null,
       constraint wp_money_manager_file_acc_id_foreign
       foreign key (account_id) references wp_money_manager_accounts (id)
       on delete cascade,
       constraint wp_money_manager_file_txn_id_foreign
       foreign key (transaction_id) references wp_money_manager_transactions (id)
       on delete cascade
       );
   
       create index wp_money_manager_file_att_id_index
       on wp_money_manager_files (attachment_id);
       ```
   
 *  Thread Starter [mcjarod](https://wordpress.org/support/users/mcjarod/)
 * (@mcjarod)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/#post-16684775)
 * done and solved thank you very much!!
 *  Plugin Author [vkurko](https://wordpress.org/support/users/avsoft/)
 * (@avsoft)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/#post-16684849)
 * Unexpectedly good news! 🙂
   If I were you, I would check the other tables as well.
   The correct structure for version 1.23.1 can be found at this [link](https://plugins.trac.wordpress.org/browser/money-manager/tags/1.23.1/class-install.php#L72)(
   this is a file with the plugin installation script). If you find any other inconsistencies
   in your database, please let me know.
 * If you need more help, feel free to contact me again.
 * Vladimir

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Attachment doesn’t work’ is closed to new replies.

 * ![](https://ps.w.org/money-manager/assets/icon-256x256.png?rev=2535951)
 * [Money Manager](https://wordpress.org/plugins/money-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/money-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/money-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/money-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/money-manager/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [vkurko](https://wordpress.org/support/users/avsoft/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/attachment-doesnt-work/#post-16684849)
 * Status: resolved