Error After Updating Frappe, ERPNext and HRMS

I’m experiencing login issues with one of my Frappe sites after updating frappe, erpnext, and hrms apps. On site one, logged-out users (including myself) can’t access the login page - we’re getting JavaScript errors in the browser console showing “None is not defined” and “frappe.boot is undefined” errors. The strange part is that users who are already logged in can use the desk normally without issues, and my other site (site two) on the same server works perfectly fine. The main errors appear related to the boot process not initializing properly for non-authenticated users, preventing the login page from loading correctly. Has anyone encountered similar issues after updating these apps, and what might be the fix?

Hi,

It may help to describe the operating environment, how the upgrade was performed and if this was the first time an upgrade was tried or if updates were successful in the past.

Hello Simon,

Thank you for your response. I’m running on Ubuntu 22.04 LTS. This issue is particularly puzzling as I’ve performed numerous successful updates in the past following my standard procedure without any problems. My typical update workflow is:

  1. Pull the latest changes for frappe, erpnext, and hrms apps (all from version-15 branch)
  2. Run bench --site site-name migrate
  3. Complete with bench update

The current issue occurred immediately following this same process. What’s most unusual is that it only affects the login page for non-authenticated users on one specific site, while already-logged-in users continue to access the system normally.

I’ve also tried the following command but the issue persists

  • bench --site site-name clear-cache
  • bench build

Maybe try bench restart?

Can the Administrator login to a new session?

I’ve restarted bench several times, but I’m still getting these errors in my browser console which is preventing me from logging in.

Please share the output of bench version.

This is likely due to an issue in how frappe.boot was parsed on earlier versions.
You can temporarily resolve this by setting a currency in System Settings.

Yes i noteced that it’s something related to currency being set to None.
Here’s my bench version:

erpnext 15.57.0
frappe 15.63.0
hrms 15.43.0
payments 0.0.1
webshop 0.0.1