Hyper Open Edge Cloud

How To Get Started To Debug ERP5

Information on where to get started to debug ERP5
  • Last Update:2016-04-27
  • Version:001
  • Language:en

This document will help you get started with debugging ERP5. It will show entry points on how to find errors and provide answers on common bugs you may frequently run into. If this is the first time you are working with ERP5 as a developer, this how to will help.

Table of Contents

Error. What now?

When developing ERP5 you will often run into errors and end up on a screen like this one:

ERP5 | Open Source ERP - Screenshot ERP5 Site Error

To find out what happened, you will need to look at the stack trace. Make sure you have developer access, then click Show Error Log Entry which will take you:

  [your_instance_url]/erp5/error_log/manage_main

The exception log will list all recent exceptions. Find yours and click on it.

ERP5 | Open Source ERP - Screenshot ERP5 Exception Log

Check the stack trace. It will tell you what script threw the error and why. Most of the times this is enough to find and remove your error.

ERP5 | Open Source ERP - Screenshot ERP5 Exception

I cannot see my documents

First make sure you this is not due to some settings on a listbox you are viewing and that there are no blocked portal activities.

If you can rule out both, your records not showing up might be caused by your ERP5 user not having necessary permissions. Normally every user should have an assigmnent declared on the person_module/[your_person_id]'s Assginment tab. Assignments allow to declare security and viewing permissions. To debug, try creating an empty assignment, start this assignment and check whether the problem persists.

ERP5 | Open Source ERP - Screenshot ERP5 Person Module Assignments

Should this not work try calling the following script on the respective person through the url.

  updateLocalRolesOnSecurityGroups

Please also have a look at How to distinguish ERP5, Zope and Developer users in case you are having trouble accessing certain parts of ERP5 or the zope interface.

Related Articles