*

oscman

  • ****
  • 227 posts
[bug] remove attachment 404 error
« on: March 15, 2017, 03:31:21 AM »
When you click on delete attachment from messages you get a 404 error page

Marked as best answer by oscman on March 15, 2017, 09:27:55 PM
*

MB Themes

Re: [bug] remove attachment 404 error
« Reply #1 on: March 15, 2017, 08:07:39 AM »
@oscman
Nice catch, there is problem with definition of route in plugin.
Go to index.php of messenger plugin and find:
Code: [Select]
osc_add_route('im-delete-attachment', 'im-delete-attachment/([0-9]+)/([0-9]+)/([0-9]+)/(.+)', 'im-delete-attachment/{thread-id}/{del-att-message-id}/{del-file-name}/{secret}', osc_plugin_folder(__FILE__).'user/messages.php', true);

Replace with:
Code: [Select]
osc_add_route('im-delete-attachment', 'im-delete-attachment/([0-9]+)/([0-9]+)/(.+)/(.+)', 'im-delete-attachment/{thread-id}/{del-att-message-id}/{del-file-name}/{secret}', osc_plugin_folder(__FILE__).'user/messages.php', true);


(third parameter allowed only numeric values, however name of file is string)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
Re: [bug] remove attachment 404 error
« Reply #2 on: March 15, 2017, 09:28:05 PM »
Thanks