Error when customer opening Project from Portal

This is error shown to the customer when the customer click the project name from the portal.

Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 32, in render data = render_page_by_language(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 101, in render_page_by_language return render_page(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 117, in render_page return build(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 124, in build return build_page(path) File "/home/frappe/frappe-bench/apps/frappe/frappe/website/", line 140, in build_page html = frappe.render_template(context.source, context) File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/", line 50, in render_template return get_jenv().from_string(template).render(context) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "<template>", line 1, in top-level template code File "/home/frappe/frappe-bench/apps/frappe/frappe/./templates/web.html", line 1, in top-level template code {% extends base_template_path %} File "/home/frappe/frappe-bench/apps/frappe/frappe/./templates/base.html", line 69, in top-level template code {% block content %}{% endblock %} File "/home/frappe/frappe-bench/apps/frappe/frappe/./templates/web.html", line 46, in block "content" {%- block page_content -%}{%- endblock -%} File "<template>", line 37, in block "page_content" File "/home/frappe/frappe-bench/apps/erpnext/erpnext/./templates/includes/projects/project_tasks.html", line 9, in top-level template code {{ __("modified") }} {{ frappe.utils.pretty_date(task.modified) }} UndefinedError: '__' is undefined

Hi @shashankcapoor

Thanks for reporting an error
We have identified and fixed the issue, soon we’ll release it

Thanks for quick reply. Also can you let me know how can I patch the bug after its released.

Hi @shashankcapoor

Currently PR([Fix] User not able to view projects from the portal by rohitwaghchaure · Pull Request #9173 · frappe/erpnext · GitHub) is under review, after merged we’ll released the fix of an issue.

I checked the issue and found that there is another file with the same typo. After fixing it, the issue was resolved.


Attaching the diff of the files, please update this code as well to rectify this issue completely.

`diff --git a/erpnext/templates/includes/projects/project_timesheets.html b/erpnext/templates/includes/projects/project_timesheets.html
index 3a9aecd…f1412c9 100755
— a/erpnext/templates/includes/projects/project_timesheets.html
+++ b/erpnext/templates/includes/projects/project_timesheets.html
@@ -5,7 +5,7 @@

<span class=“indicator {{ “blue” if“Submitted” else “red” if“Draft” else “darkgrey” }}” title=“{{ }}” > {{ }}

  •                           {{ __("From") }} {{ frappe.format_date(timesheet.from_time) }} {{ __("to") }} {{ frappe.format_date(timesheet.to_time) }}
  •                           {{ _("From") }} {{ frappe.format_date(timesheet.from_time) }} {{ _("to") }} {{ frappe.format_date(timesheet.to_time) }}


Thanks for reporting the issue, We have fixed the issue via [hotfix] replaced __ call with _ in project_timesheets.html by mbauskar · Pull Request #9198 · frappe/erpnext · GitHub.