# Running skeleton module on 6.0

**URL:** <https://community.open-emr.org/t/running-skeleton-module-on-6-0/17600>\
**Category:** OpenEMR Development\
**Tags:** question\
**Created:** [December 18, 2021, 12:00am UTC](https://community.open-emr.org/t/running-skeleton-module-on-6-0/17600 "2021-12-18T00:00:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![growlingflea](https://community.open-emr.org/user_avatar/community.open-emr.org/growlingflea/32/15498_2.png) [@growlingflea](https://community.open-emr.org/u/growlingflea)\
**Post date:** [December 18, 2021, 12:00am UTC](https://community.open-emr.org/t/running-skeleton-module-on-6-0/17600/1 "2021-12-18T00:00:05Z")

</div>

**Update: this thread is about running the modules, issues with running it on rel-600 patch 3**

RE: [https://www.youtube.com/watch?v=LYA8MosIWF0](https://www.youtube.com/watch?v=LYA8MosIWF0)

No sure if this is the right place to put this. i’ve been trying to run the skeleton module and I am getting an error with Twig where its trying to run a function that doesn’t exist:

Its is trying to run isDev, but that doesn’t exist anywhere in my project. I’ve gone ahead and ran composer. I’m wondering if I might be missing a version?

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/6/7/67cc29b4211971c0f66a7d4d2b480dd6d00216b5.png)

Thank you.

---

<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:** [December 18, 2021, 2:49pm UTC](https://community.open-emr.org/t/running-skeleton-module-on-6-0/17600/2 "2021-12-18T14:49:47Z")

</div>

What version of OpenEMR are you running? (I would open a new issue for this) You can see isDev is in master [openemr/Kernel.php at abd7b5fa903cf79f4fdce7a401473a1d4ace152c · openemr/openemr · GitHub](https://github.com/openemr/openemr/blob/abd7b5fa903cf79f4fdce7a401473a1d4ace152c/src/Core/Kernel.php#L62)

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [December 18, 2021, 3:17pm UTC](https://community.open-emr.org/t/running-skeleton-module-on-6-0/17600/3 "2021-12-18T15:17:38Z")

</div>

Sounds like you are out of date with templates and core twig classes either src/Common/Twig/…, src/Core/TwigExtension.php or both.  
I ran into when I ported portal back to v6 production. I’m pretty sure this was issue. Still open new issue to track…

---

<div class="post-metadata">

**Author:** ![growlingflea](https://community.open-emr.org/user_avatar/community.open-emr.org/growlingflea/32/15498_2.png) [@growlingflea](https://community.open-emr.org/u/growlingflea)\
**Post date:** [December 19, 2021, 6:24pm UTC](https://community.open-emr.org/t/running-skeleton-module-on-6-0/17600/4 "2021-12-19T18:24:47Z")

</div>

I actually found that it worked when I changed $this-\>kernel-\>isDev() to $this-\>kernel-\>isDev.

I’m using the most recent status of OpenEMR6.0, pulling the most recent code from rel-600.

Looking at the code link that Stephen submitted, my solution probably always returns false.

---

<div class="post-metadata">

**Author:** ![growlingflea](https://community.open-emr.org/user_avatar/community.open-emr.org/growlingflea/32/15498_2.png) [@growlingflea](https://community.open-emr.org/u/growlingflea)\
**Post date:** [December 22, 2021, 6:25pm UTC](https://community.open-emr.org/t/running-skeleton-module-on-6-0/17600/5 "2021-12-22T18:25:43Z")

</div>

@adunsulag @sjpadgett

I’ve tried checkout Kernel.php, src/Common/Twig/, and TwigExtension.php from master and I am still running into issues with getting errors. I’m wondering if maybe I am not using the most up-to-date composer file? Has anyone gotten this to work with re-600?

Thanks!!

---

<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:** [December 22, 2021, 7:09pm UTC](https://community.open-emr.org/t/running-skeleton-module-on-6-0/17600/6 "2021-12-22T19:09:19Z")

</div>

Sorry @growlingflea it looks like the isDev stuff is in the master branch. Its not in the rel-600 branches. Changing the line to isDev will always return false since isDev doesn’t exist on the object in the rel-600 branches.

It looks like we’ll need to adjust the skeleton module package so it has a version compatible with the rel-600 branches, at least until we hit a rel-700.

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [December 22, 2021, 7:48pm UTC](https://community.open-emr.org/t/running-skeleton-module-on-6-0/17600/7 "2021-12-22T19:48:04Z")

</div>

> [@sjpadgett](#):
>
> Sounds like you are out of date with templates and core twig classes either src/Common/Twig/…, src/Core/TwigExtension.php or both.  
> I ran into when I ported portal back to v6 production. I’m pretty sure this was issue. Still open new issue to track…

As I said. Port the correct classes back to v6.  
They will be in next patch.

---

<div class="post-metadata">

**Author:** ![growlingflea](https://community.open-emr.org/user_avatar/community.open-emr.org/growlingflea/32/15498_2.png) [@growlingflea](https://community.open-emr.org/u/growlingflea)\
**Post date:** [December 24, 2021, 2:25pm UTC](https://community.open-emr.org/t/running-skeleton-module-on-6-0/17600/8 "2021-12-24T14:25:23Z")

</div>

So after some troubleshooting I have found the following so far that seems to fix the issue of this module not working on rel-600. I’m sure there are more changes that will be brought in with the patch, but this is what I’ve done. The last step fixes issues related to getting the Administration-\>Globals to work. I’m sure the more I tool around with this I will find other issues. I will add updates as I find them.

**To get the module oe-module-custom-skeleton to work in rel-600**  
From master I checked-out  
src/Common/Twig  
src/Core/TwigExtension.php  
src/Core/Kernel  
src/Services/Globals/GlobalSetting.php  
interface/login/login.php

More updates to come when I learn more.

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [December 24, 2021, 2:48pm UTC](https://community.open-emr.org/t/running-skeleton-module-on-6-0/17600/9 "2021-12-24T14:48:35Z")

</div>

Most likely all you need but still this needs to be in its own thread. Please open new thread and maybe @robert.down would be so kind to move this discussion to the new thread for us.

Trying to keep this thread on topic.

---

<div class="post-metadata">

**Author:** ![growlingflea](https://community.open-emr.org/user_avatar/community.open-emr.org/growlingflea/32/15498_2.png) [@growlingflea](https://community.open-emr.org/u/growlingflea)\
**Post date:** [December 25, 2021, 3:51pm UTC](https://community.open-emr.org/t/running-skeleton-module-on-6-0/17600/10 "2021-12-25T15:51:40Z")

</div>

I added a comment to the discussion on YouTube.
