Script Reports and Server Scripts Not Executing in ERPNext v15

Script Reports and Server Scripts do not execute at all — not even basic frappe.msgprint() or frappe.throw(). No logs, no output, no errors. It’s as if the execute() function is silently skipped

Things I’ve Already Verified:

  • server_script_enabled = 1 in both common_site_config.json and site_config.json
  • Developer mode is ON (developer_mode = 1)
  • App is listed in apps.txt and installed
  • Script Report created via both GUI and bench new-report
  • Report is saved, not prepared, and marked as Script Report
  • Tried frappe.msgprint(), frappe.throw(), frappe.log_error() — none of them run
  • Even tried with open("/tmp/log.txt", "w") as f: f.write("hello") — nothing is written
  • Ran bench clear-cache, clear-website-cache, migrate, restart, build
  • Tried accessing the report in Incognito and different browsers
  • No entries are made to error.log

Hi,

Please check this:

refactor!: Disable server scripts by default by ankush · Pull Request #22141 · frappe/frappe · GitHub

Regards,

Divyesh Mangroliya