*

servatics

  • **
  • 22 posts
404 item/edit/id, item/delete/id
« on: June 26, 2025, 04:54:12 AM »
Hi all, can you please tell me why the page /item/edit/id, item/delete/id may not work? It gives 404 error, but the usual link works /index.php?page=item&action=item_edit&id=2003. I tried resaving permalinks in the admin, and re-upload oc-includes, and disable plugins one by one - did not help.  Where is the file that is responsible for processing the link /item/edit/id, item/delete/id. All the other links are working. Thank you! Version 8.3.0
« Last Edit: June 26, 2025, 05:02:31 AM by servatics »

*

servatics

  • **
  • 22 posts
Re: 404 item/edit/id, item/delete/id
« Reply #1 on: June 26, 2025, 05:32:36 AM »
Solved the problem, I had previously made all the url work without a slash at the end, that is, not item/edit/2003/, but just item/edit/2003. And in the link rules there is rewrite_rules and the code

Code: [Select]
$rewrite->addRule(
 '^'.osc_get_preference('rewrite_item_edit').'/([0-9]+)/(.*?)/?$',
 'index.php?page=item&action=item_edit&id=$1&secret=$2'
);


where the slash at the end is mandatory, so it gave 404. If someone needs it.
« Last Edit: June 26, 2025, 01:58:28 PM by MB Themes »

*

MB Themes

Re: 404 item/edit/id, item/delete/id
« Reply #2 on: June 26, 2025, 01:59:46 PM »
Thanks for feedback ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots