shish/shimmie2

[notes] not working without niceurls

Closed this issue · 1 comments

[Copied from an email sent to me by a person whose github account got flagged by the algorithm]

I have enabled the notes plugin on my booru but anytime I try to create a note I get the following error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

about:
  title: "Nanbooru"
  theme: "danbooru2"
  url: "https://<redacted>/index.php?q="

versions:
  shimmie: "2.11.0-alpha"
  schema: 21
  php: "8.2.18"
  db: "mysql 10.11.6-MariaDB-cll-lve"
  os: "Linux <redacted> 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC 2023 x86_64"
  server: "LiteSpeed"

extensions:
  core: ["admin","alias_editor","bbcode","comment","download","et","ext_manager","four_oh_four","handle_pixel","help_pages","image","index","media","mime","post_lock","post_owner","post_source","post_tags","replace_file","setup","static_files","system","tag_list","upgrade","upload","user","user_config","view"]
  extra: ["approval","blocks","bulk_actions","favorites","featured","forum","handle_mp3","handle_video","holiday","home","image_view_counter","notes","numeric_score","pm","pools","random_image","regen_thumb","relationships","report_image","site_description","sitemap","source_history","tag_categories","tag_history","tag_tools"]
  handled_mimes: ["image/jpeg","image/gif","image/png","image/webp","audio/mpeg","video/x-ms-asf","video/x-msvideo","video/x-flv","video/x-matroska","video/mp4","video/ogg","video/quicktime","video/webm"]

stats:
  images: 1218
  comments: 20
  users: 20

media:
  memory_limit: "8.0MB"
  disk_use: "1.3TB"
  disk_total: "2.0TB"

thumbnails:
  engine: "convert"
  quality: 75
  width: 192
  height: 192
  scaling: 100
  mime: "image/jpeg"

Looks like the JS is sending a POST to /note/create_note/ when it should be /index.php?q=note/create_note