# Graphical pain map form broken!

**URL:** <https://community.open-emr.org/t/graphical-pain-map-form-broken/20974>\
**Category:** Support\
**Created:** [August 12, 2023, 2:17pm UTC](https://community.open-emr.org/t/graphical-pain-map-form-broken/20974 "2023-08-12T14:17:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamed](https://community.open-emr.org/letter_avatar_proxy/v4/letter/m/d78d45/32.png) [@mohamed](https://community.open-emr.org/u/mohamed)\
**Post date:** [August 12, 2023, 2:17pm UTC](https://community.open-emr.org/t/graphical-pain-map-form-broken/20974/1 "2023-08-12T14:17:24Z")

</div>

**Situation**  
Graphical pain map is broken on my install as well as on the demo

**OpenEMR Version**  
7.0.1

**Browser** :  
I’m using: chromium

**Operating System**  
I’m using: Win 10

**Search**  
It’s broken on the demo as well

**Logs**  
**Notice** : Undefined property: C\_FormPainMap::$model in **/var/www/localhost/htdocs/openemr/vendor/smarty/smarty/libs/Smarty.class.php** on line **1345**

**Notice** : Undefined property: C\_FormPainMap::$model in **/var/www/localhost/htdocs/openemr/vendor/smarty/smarty/libs/Smarty.class.php** on line **1321**  
You request could not be processed, an error occured with the number of arguments passed to the function. Please try again with corrected arguments.

 ![Screenshot 2023-08-12 171609](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/7/0/70415bb31c0aee99af3e4034c887bb75ea7d65ff.png)

---

<div class="post-metadata">

**Author:** ![mohamed](https://community.open-emr.org/letter_avatar_proxy/v4/letter/m/d78d45/32.png) [@mohamed](https://community.open-emr.org/u/mohamed)\
**Post date:** [August 12, 2023, 3:00pm UTC](https://community.open-emr.org/t/graphical-pain-map-form-broken/20974/2 "2023-08-12T15:00:48Z")

</div>

Also deleting smarty folder doesn’t help.  
[Fatal error : Uncaught Error: Call to undefined method Document::get\_url\_web() - Support - OpenEMR Community (open-emr.org)](https://community.open-emr.org/t/fatal-error-uncaught-error-call-to-undefined-method-document-get-url-web/15948)

---

<div class="post-metadata">

**Author:** ![adunsulag](https://community.open-emr.org/user_avatar/community.open-emr.org/adunsulag/32/12606_2.png) [@adunsulag](https://community.open-emr.org/u/adunsulag)\
**Post date:** [August 14, 2023, 4:38pm UTC](https://community.open-emr.org/t/graphical-pain-map-form-broken/20974/3 "2023-08-14T16:38:43Z")

</div>

I was able to reproduce this on the latest master codebase. Looks like its a bug in the C\_AbstractClickmap.php default\_action\_process function.

---

<div class="post-metadata">

**Author:** ![adunsulag](https://community.open-emr.org/user_avatar/community.open-emr.org/adunsulag/32/12606_2.png) [@adunsulag](https://community.open-emr.org/u/adunsulag)\
**Post date:** [August 14, 2023, 4:56pm UTC](https://community.open-emr.org/t/graphical-pain-map-form-broken/20974/4 "2023-08-14T16:56:18Z")

</div>

I posted a fix for this issue here if you want to copy it to your local install while you wait for it to come out in a patch:

> <https://github.com/openemr/openemr/pull/6743>
>
> Pain map wasn't saving due to invalid use of a $this-\>model reference. Changed t…he reference to be a local variable which then saves fine. I'm assuming this broke as part of the smarty upgrade process.
> 
> Fixes #6742
