Crème CRM
ValueError: invalid literal for int() with base 10: 'creme_config-userproperty8' - Version imprimable

+- Crème CRM (https://www.cremecrm.com/forum)
+-- Forum : Utilisateurs (https://www.cremecrm.com/forum/forumdisplay.php?fid=5)
+--- Forum : Bugs (https://www.cremecrm.com/forum/forumdisplay.php?fid=9)
+--- Sujet : ValueError: invalid literal for int() with base 10: 'creme_config-userproperty8' (/showthread.php?tid=276)



ValueError: invalid literal for int() with base 10: 'creme_config-userproperty8' - libresurf - 15-01-2026

Bonjour,

Lors de la demande d'accès à la fiche d'une société (https://mon_serveur.org/persons/organisation/24), j'obtiens une erreur 500.
Code :
Creme — Erreur 500
Une erreur interne s'est produite.


Dans mes logs apache2, j'ai la sortie suivante :
Code :
[Thu Jan 15 10:30:04.687971 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX] [2026-01-15 10:30:04] \x1b[31mERROR\x1b[0m - django.request : Internal Server Error: /persons/organisation/24
[Thu Jan 15 10:30:04.688006 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX] Traceback (most recent call last):
[Thu Jan 15 10:30:04.688011 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/fields/__init__.py", line 2128, in get_prep_value
[Thu Jan 15 10:30:04.688015 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return int(value)
[Thu Jan 15 10:30:04.688019 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX] ValueError: invalid literal for int() with base 10: 'creme_config-userproperty8'
[Thu Jan 15 10:30:04.688023 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX] 
[Thu Jan 15 10:30:04.688036 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX] The above exception was the direct cause of the following exception:
[Thu Jan 15 10:30:04.688039 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX] 
[Thu Jan 15 10:30:04.688042 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX] Traceback (most recent call last):
[Thu Jan 15 10:30:04.688044 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
[Thu Jan 15 10:30:04.688047 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     response = get_response(request)
[Thu Jan 15 10:30:04.688050 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/core/handlers/base.py", line 220, in _get_response
[Thu Jan 15 10:30:04.688053 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     response = response.render()
[Thu Jan 15 10:30:04.688056 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/response.py", line 114, in render
[Thu Jan 15 10:30:04.688059 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     self.content = self.rendered_content
[Thu Jan 15 10:30:04.688062 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                    ^^^^^^^^^^^^^^^^^^^^^
[Thu Jan 15 10:30:04.688064 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/response.py", line 92, in rendered_content
[Thu Jan 15 10:30:04.688067 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return template.render(context, self._request)
[Thu Jan 15 10:30:04.688070 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
[Thu Jan 15 10:30:04.688073 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/backends/django.py", line 107, in render
[Thu Jan 15 10:30:04.688076 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.template.render(context)
[Thu Jan 15 10:30:04.688078 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688081 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 172, in render
[Thu Jan 15 10:30:04.688084 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self._render(context)
[Thu Jan 15 10:30:04.688087 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688090 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 164, in _render
[Thu Jan 15 10:30:04.688092 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.nodelist.render(context)
[Thu Jan 15 10:30:04.688095 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688098 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 1018, in render
[Thu Jan 15 10:30:04.688101 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return SafeString("".join([node.render_annotated(context) for node in self]))
[Thu Jan 15 10:30:04.688106 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688110 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 979, in render_annotated
[Thu Jan 15 10:30:04.688113 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.render(context)
[Thu Jan 15 10:30:04.688115 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688118 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/loader_tags.py", line 159, in render
[Thu Jan 15 10:30:04.688121 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return compiled_parent._render(context)
[Thu Jan 15 10:30:04.688124 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688127 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 164, in _render
[Thu Jan 15 10:30:04.688129 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.nodelist.render(context)
[Thu Jan 15 10:30:04.688132 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688135 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 1018, in render
[Thu Jan 15 10:30:04.688138 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return SafeString("".join([node.render_annotated(context) for node in self]))
[Thu Jan 15 10:30:04.688141 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688144 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 979, in render_annotated
[Thu Jan 15 10:30:04.688147 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.render(context)
[Thu Jan 15 10:30:04.688149 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688152 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/loader_tags.py", line 159, in render
[Thu Jan 15 10:30:04.688155 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return compiled_parent._render(context)
[Thu Jan 15 10:30:04.688158 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688160 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 164, in _render
[Thu Jan 15 10:30:04.688163 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.nodelist.render(context)
[Thu Jan 15 10:30:04.688166 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688169 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 1018, in render
[Thu Jan 15 10:30:04.688172 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return SafeString("".join([node.render_annotated(context) for node in self]))
[Thu Jan 15 10:30:04.688177 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688180 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 979, in render_annotated
[Thu Jan 15 10:30:04.688183 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.render(context)
[Thu Jan 15 10:30:04.688186 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688188 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/loader_tags.py", line 159, in render
[Thu Jan 15 10:30:04.688191 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return compiled_parent._render(context)
[Thu Jan 15 10:30:04.688194 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688197 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 164, in _render
[Thu Jan 15 10:30:04.688200 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.nodelist.render(context)
[Thu Jan 15 10:30:04.688202 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688205 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 1018, in render
[Thu Jan 15 10:30:04.688208 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return SafeString("".join([node.render_annotated(context) for node in self]))
[Thu Jan 15 10:30:04.688211 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688214 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 979, in render_annotated
[Thu Jan 15 10:30:04.688217 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.render(context)
[Thu Jan 15 10:30:04.688219 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688222 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/loader_tags.py", line 65, in render
[Thu Jan 15 10:30:04.688225 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     result = block.nodelist.render(context)
[Thu Jan 15 10:30:04.688228 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 1018, in render
[Thu Jan 15 10:30:04.688231 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return SafeString("".join([node.render_annotated(context) for node in self]))
[Thu Jan 15 10:30:04.688234 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688236 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 979, in render_annotated
[Thu Jan 15 10:30:04.688241 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.render(context)
[Thu Jan 15 10:30:04.688244 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688247 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/loader_tags.py", line 65, in render
[Thu Jan 15 10:30:04.688250 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     result = block.nodelist.render(context)
[Thu Jan 15 10:30:04.688253 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 1018, in render
[Thu Jan 15 10:30:04.688256 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return SafeString("".join([node.render_annotated(context) for node in self]))
[Thu Jan 15 10:30:04.688259 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688261 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 979, in render_annotated
[Thu Jan 15 10:30:04.688264 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.render(context)
[Thu Jan 15 10:30:04.688267 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688270 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/loader_tags.py", line 65, in render
[Thu Jan 15 10:30:04.688273 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     result = block.nodelist.render(context)
[Thu Jan 15 10:30:04.688275 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 1018, in render
[Thu Jan 15 10:30:04.688278 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return SafeString("".join([node.render_annotated(context) for node in self]))
[Thu Jan 15 10:30:04.688281 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688284 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 979, in render_annotated
[Thu Jan 15 10:30:04.688287 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.render(context)
[Thu Jan 15 10:30:04.688290 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688292 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/defaulttags.py", line 423, in render
[Thu Jan 15 10:30:04.688295 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return strip_spaces_between_tags(self.nodelist.render(context).strip())
[Thu Jan 15 10:30:04.688298 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                                      ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688301 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 1018, in render
[Thu Jan 15 10:30:04.688304 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return SafeString("".join([node.render_annotated(context) for node in self]))
[Thu Jan 15 10:30:04.688309 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688312 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 979, in render_annotated
[Thu Jan 15 10:30:04.688315 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.render(context)
[Thu Jan 15 10:30:04.688318 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688320 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/loader_tags.py", line 65, in render
[Thu Jan 15 10:30:04.688323 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     result = block.nodelist.render(context)
[Thu Jan 15 10:30:04.688326 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 1018, in render
[Thu Jan 15 10:30:04.688329 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return SafeString("".join([node.render_annotated(context) for node in self]))
[Thu Jan 15 10:30:04.688332 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688335 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/base.py", line 979, in render_annotated
[Thu Jan 15 10:30:04.688338 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self.render(context)
[Thu Jan 15 10:30:04.688340 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~^^^^^^^^^
[Thu Jan 15 10:30:04.688343 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/template/library.py", line 324, in render
[Thu Jan 15 10:30:04.688346 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     output = self.func(*resolved_args, **resolved_kwargs)
[Thu Jan 15 10:30:04.688349 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/creme/creme_core/templatetags/creme_bricks.py", line 1070, in brick_display
[Thu Jan 15 10:30:04.688352 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return mark_safe(''.join(filter(
[Thu Jan 15 10:30:04.688355 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                      ~~~~~~~^^^^^^^^
[Thu Jan 15 10:30:04.688357 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]         None,
[Thu Jan 15 10:30:04.688360 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]         ^^^^^
[Thu Jan 15 10:30:04.688363 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]         (render(brick) for brick in bricks_to_render)
[Thu Jan 15 10:30:04.688365 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Thu Jan 15 10:30:04.688368 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     )))
[Thu Jan 15 10:30:04.688371 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     ^^
[Thu Jan 15 10:30:04.688374 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/creme/creme_core/templatetags/creme_bricks.py", line 1072, in <genexpr>
[Thu Jan 15 10:30:04.688379 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     (render(brick) for brick in bricks_to_render)
[Thu Jan 15 10:30:04.688382 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]      ~~~~~~^^^^^^^
[Thu Jan 15 10:30:04.688384 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/creme/creme_core/templatetags/creme_bricks.py", line 1037, in render
[Thu Jan 15 10:30:04.688387 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return fun({**context_dict})
[Thu Jan 15 10:30:04.688390 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/creme/creme_core/bricks.py", line 368, in detailview_display
[Thu Jan 15 10:30:04.688393 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     self._populate_explainers([*hlines, *related_hlines], user)
[Thu Jan 15 10:30:04.688396 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Thu Jan 15 10:30:04.688398 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/creme/creme_core/bricks.py", line 345, in _populate_explainers
[Thu Jan 15 10:30:04.688401 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     for hline, explainer in zip(hlines, self.history_registry.line_explainers(hlines, user)):
[Thu Jan 15 10:30:04.688404 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
[Thu Jan 15 10:30:04.688407 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/creme/creme_core/gui/history.py", line 797, in line_explainers
[Thu Jan 15 10:30:04.688410 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     fetcher.proceed()
[Thu Jan 15 10:30:04.688413 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     ~~~~~~~~~~~~~~~^^
[Thu Jan 15 10:30:04.688415 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/creme/creme_core/utils/db.py", line 336, in proceed
[Thu Jan 15 10:30:04.688418 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     model: model._default_manager.in_bulk(pks)
[Thu Jan 15 10:30:04.688421 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
[Thu Jan 15 10:30:04.688424 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/manager.py", line 87, in manager_method
[Thu Jan 15 10:30:04.688427 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return getattr(self.get_queryset(), name)(*args, **kwargs)
[Thu Jan 15 10:30:04.688429 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
[Thu Jan 15 10:30:04.688432 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/query.py", line 1166, in in_bulk
[Thu Jan 15 10:30:04.688435 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     qs = self.filter(**{filter_key: id_list})
[Thu Jan 15 10:30:04.688438 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/query.py", line 1495, in filter
[Thu Jan 15 10:30:04.688441 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return self._filter_or_exclude(False, args, kwargs)
[Thu Jan 15 10:30:04.688446 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
[Thu Jan 15 10:30:04.688449 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/query.py", line 1513, in _filter_or_exclude
[Thu Jan 15 10:30:04.688452 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     clone._filter_or_exclude_inplace(negate, args, kwargs)
[Thu Jan 15 10:30:04.688454 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
[Thu Jan 15 10:30:04.688457 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/query.py", line 1523, in _filter_or_exclude_inplace
[Thu Jan 15 10:30:04.688460 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     self._query.add_q(Q(*args, **kwargs))
[Thu Jan 15 10:30:04.688463 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
[Thu Jan 15 10:30:04.688466 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/sql/query.py", line 1646, in add_q
[Thu Jan 15 10:30:04.688468 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     clause, _ = self._add_q(q_object, can_reuse)
[Thu Jan 15 10:30:04.688471 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                 ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
[Thu Jan 15 10:30:04.688474 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/sql/query.py", line 1678, in _add_q
[Thu Jan 15 10:30:04.688477 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     child_clause, needed_inner = self.build_filter(
[Thu Jan 15 10:30:04.688480 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                                  ~~~~~~~~~~~~~~~~~^
[Thu Jan 15 10:30:04.688482 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]         child,
[Thu Jan 15 10:30:04.688485 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]         ^^^^^^
[Thu Jan 15 10:30:04.688488 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     ...<7 lines>...
[Thu Jan 15 10:30:04.688490 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]         update_join_types=update_join_types,
[Thu Jan 15 10:30:04.688493 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Thu Jan 15 10:30:04.688496 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     )
[Thu Jan 15 10:30:04.688498 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     ^
[Thu Jan 15 10:30:04.688501 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/sql/query.py", line 1588, in build_filter
[Thu Jan 15 10:30:04.688504 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     condition = self.build_lookup(lookups, col, value)
[Thu Jan 15 10:30:04.688507 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/sql/query.py", line 1415, in build_lookup
[Thu Jan 15 10:30:04.688510 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     lookup = lookup_class(lhs, rhs)
[Thu Jan 15 10:30:04.688515 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/lookups.py", line 38, in __init__
[Thu Jan 15 10:30:04.688518 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     self.rhs = self.get_prep_lookup()
[Thu Jan 15 10:30:04.688520 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]                ~~~~~~~~~~~~~~~~~~~~^^
[Thu Jan 15 10:30:04.688523 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/lookups.py", line 536, in get_prep_lookup
[Thu Jan 15 10:30:04.688526 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     return super().get_prep_lookup()
[Thu Jan 15 10:30:04.688529 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]            ~~~~~~~~~~~~~~~~~~~~~~~^^
[Thu Jan 15 10:30:04.688532 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/lookups.py", line 321, in get_prep_lookup
[Thu Jan 15 10:30:04.688534 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     rhs_value = self.lhs.output_field.get_prep_value(rhs_value)
[Thu Jan 15 10:30:04.688537 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]   File "/srv/www/venv/creme_2_7/lib/python3.13/site-packages/django/db/models/fields/__init__.py", line 2130, in get_prep_value
[Thu Jan 15 10:30:04.688540 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     raise e.__class__(
[Thu Jan 15 10:30:04.688543 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]         "Field '%s' expected a number but got %r." % (self.name, value),
[Thu Jan 15 10:30:04.688546 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX]     ) from e
[Thu Jan 15 10:30:04.688548 2026] [wsgi:error] [pid 8487:tid 8505] [remote XXXX] ValueError: Field 'id' expected a number but got 'creme_config-userproperty8'.


À priori, c'est un problème de champs qui attend une valeur numérique, mais qui reçoit une valeur littérale avec 'creme_config-userproperty8' comme chaîne de caractères.
Et là, je ne sais pas analyser plus loin l'origine de ce bug.

Savez-vous comment corriger ce bug ?



PS : pour information, j'ai migré vers la dernière version 2.7.4 de Crème CRM car je pensais que ça allait corriger le bug, mais j'avais déjà ce problème avec les versions 2.6.8 et suivantes (jusqu'à la version 2.6.16). Oui, j'ai mis progressivement à jour les versions avant de passer à la version 2.7.


RE: ValueError: invalid literal for int() with base 10: 'creme_config-userproperty8' - genglert - 16-01-2026

Citation :PS : pour information, j'ai migré vers la dernière version 2.7.4 de Crème CRM car je pensais que ça allait corriger le bug, mais j'avais déjà ce problème avec les versions 2.6.8 et suivantes (jusqu'à la version 2.6.16). Oui, j'ai mis progressivement à jour les versions avant de passer à la version 2.7.


Les versions de Creme sont supportées 2 ans, et donc il reste encore bien 6 mois de support à Creme 2.6 (la 2.6.16 est sortie il y a quelques jours par exemple). C'est une très bonne chose d'être passé à 2.7, mais globalement s'il y avait un gros bug comme celui-ci qui était corrigé en 2.7, le correctif serait backporté vers 2.6 (à moins que le bug soit corrigé accidentellement, par effet de bord en réécrivant un bout de code, sans qu'on s'en aperçoive ; mais c'est très improbable). Donc pas étonnant que le passage à 2.7 n'ait rien réglé.


Citation :Savez-vous comment corriger ce bug ?


J'ai au moins un début de piste. Jusqu'à Creme 2.5, dans les types de propriété (modèle Django 'creme_core.models.CremePropertyType', correspondant à la table SQL "creme_core_cremepropertytype"), la PK était une chaîne de caractères similaire à celle qui pose problème ici. En 2.6, la PK est devenue un nombre entier, et un UUID a été ajouté.

Donc je suppose que votre version 2.6 était à la base une version 2.5 que vous avez upgradé, et que le bug est apparu à ce moment là. Normalement, les migrations de 2.6 se sont chargés de convertir les données afin de s'adapter au nouveau schéma des types de propriétés ; on a migré pas mal de 2.5 vers 2.6, donc on est assez confiant dans le fait que ça marche globalement bien, mais évidemment on n'est pas à l'abri d'un bug.

D'après les logs j'ai l'impression qu'il a un souci avec une ligne (au moins) d'historique (table "creme_core_historyline"), qui utilise encore un vieil identifiant et pas les nouveaux. Vous pouvez commencer par enlever le bloc d'historique de la configuration des blocs de la vue détaillée des sociétés, ça devrait enlever ce crash (s'il il a eu un souci lors de la migration, peut-être y en a-t-il eu d'autres). Si ça fonctionne :

 - il faudrait trouver les lignes d'historique fautives et les corriger/supprimer
 - ou bien supprimer tout le contenu de la table d'historique (c'est rapide, mais bon vous perdez tout l'historique)
 - ou bien juste ne plus jamais afficher le bloc d'historique (un peu dommage et c'est mettre le problème sous le tapis, mais bon vous avez le droit)

Dans l'absolu, le mieux serait de repartir de votre base 2.5 et de trouver le bug dans la migration vers 2.6 ; mais ce n'est peut être pas possible.


RE: ValueError: invalid literal for int() with base 10: 'creme_config-userproperty8' - libresurf - 17-01-2026

Merci @genglert pour ton retour.
C'est bien ça. En désactivant le bloc historique dans la vue des Sociétés, le problème ne survient plus.
Mais j'aimerais quand même retrouver l'usage de cet historique...

Et tu as raison, c'est bien une ancienne version 2.5 qui avait été migrée en 2.6 et très récemment en 2.7.

J'ai des sauvegardes de la base de données PostgreSQL de la version 2.5 (fichiers .dump), donc je pourrais refaire une migration vers la version 2.6, mais je vais perdre toutes les modifications faites après cette sauvegarde et cela m'oblige à réinstaller la version 2.6 de CrèmeCRM.




Est-ce compliqué de corriger ma version actuelle ?
Toutes les sociétés n'étaient pas concernées par ce bug.


RE: ValueError: invalid literal for int() with base 10: 'creme_config-userproperty8' - genglert - 19-01-2026

Disons que trouver/corriger le bug permettrait d'éviter à d'autres personnes n'ayant pas encore migré de ne pas avoir le meme souci ; après la 2.5 n'étant plus maintenue depuis presque 6 mois on espère que la plupart des gens ont déjà fait leur migration sans souci. Bref.

Citation :Est-ce compliqué de corriger ma version actuelle ?
Toutes les sociétés n'étaient pas concernées par ce bug.

Je suppose que ça ne touche que certains types de lignes ayant un rapport avec les propriétés, donc ça ne doit toucher que les fiches qui ont (ou ont eu) des propriétés.

Regardez les lignes d'historique (table "creme_core_historyline") dont la colonne "entity_id" est 24 (l'ID de votre Société qui crashait) ; vous devriez retrouvez la chaîne "creme_config-userproperty8" dans la colonne "value". Je pense que la colonne "type" de la ligne problématique devrait être 5 (ajout de propriété) ou 13 (suppression de propriété). Si mes suppositions sont exactes, regardez alors toutes les lignes d'historique avec la même valeur pour "type", ça devrait vous donner une idée de ce qu'il y a à réparer. Vous pouvez alors :
- juste supprimer ces lignes précisément.
- ou alors les réparer en remplaçant les chaînes de caractères du genre de "creme_config-userproperty8" (dans la colonne "value" donc) par l'ID entier qu'a le type de propriété à présent (ça implique de regarder dans votre backup 2.5 la table "creme_core_cremepropertytype" et de comparer à la meme table mais dans votre instance 2.7 et deviner la correspondance chaîne=>entier, grâce à la colonne "text" par exemple).

J'espère que mes explications sont claires.


RE: ValueError: invalid literal for int() with base 10: 'creme_config-userproperty8' - libresurf - 20-01-2026

(19-01-2026, 16:48)genglert a écrit : Disons que trouver/corriger le bug permettrait d'éviter à d'autres personnes n'ayant pas encore migré de ne pas avoir le meme souci ; après la 2.5 n'étant plus maintenue depuis presque 6 mois on espère que la plupart des gens ont déjà fait leur migration sans souci. Bref.

Touché !
Effectivement, si ça peut aider les autres utilisateurs, alors je suis prêt à réinstaller la version 2.6 et à faire la migration depuis la 2.5.
Je vous dirais si j'ai encore le problème.

(19-01-2026, 16:48)genglert a écrit : J'espère que mes explications sont claires.

Oui, elles sont très claires. Je regarderais de ce côté si la migration de la 2.5 vers la 2.6 pose toujours problème...

Merci.


RE: ValueError: invalid literal for int() with base 10: 'creme_config-userproperty8' - genglert - 20-01-2026

Citation :Touché !
Effectivement, si ça peut aider les autres utilisateurs, alors je suis prêt à réinstaller la version 2.6 et à faire la migration depuis la 2.5.
Je vous dirais si j'ai encore le problème.


Oh c'est gentil Ne vous sentez pas obligé hein. D'autant que je ne doute pas que le bug sera à nouveau présent, et savoir ça ne fera pas beaucoup avancer les choses. Il faudrait comprendre quels genres de lignes posent problème, regarder le code de migration qui était en charge de migrer ces lignes (donc se plonger un peu dans du Python), comprendre pourquoi ce code ne fonctionne pas si ce n'est pas évident (en relançant des migrations, avec plus de traces par exemple), corriger ce code et vérifier que le nouveau code fonctionne.

Je vous propose de d'abord suivre mes instructions pour réparer votre base ; vous me direz alors quelle lignes étaient problématiques. Peut-être arriverez vous à identifier un souci dans ces lignes ; avec ces informations je pourrais peut-être trouver ce qui ne va pas dans le code de migration (pour le moment je n'ai pas grand chose de solide, j'ai deviné la moitié des choses).