Graphing function broken,

I recently ( a few days ago ), did a full update,.. 1st one in probably 6 months, to catch any updates and fixes.

However I have now discovered that graphing functions seem to be broken.

I have tried rebooting ( 1st reboot in 324 days ,.. darn ), full emoncms updates,.. aligning with the stable branch, doing updates, another reboot… But As yet nothing seems to work,..

If I try to enter the graph menu on my PC,.. I get the following error

Fatal error: Uncaught Error: Call to undefined function load_js() in /var/www/emoncms/Modules/graph/view.php:24 Stack trace: #0 /var/www/emoncms/core.php(101): include() #1 /var/www/emoncms/Modules/graph/graph_controller.php(49): view() #2 /var/www/emoncms/core.php(81): graph_controller() #3 /var/www/emoncms/index.php(257): controller() #4 {main} thrown in /var/www/emoncms/Modules/graph/view.php on line 24

At the top of the screen,.. no graphics, just this text.

Not sure if this is related,.. but in the following thread I had some issues with a previous update where I had modified one of the components… this was align start of week as Sunday..

https://community.openenergymonitor.org/t/cannot-upgrade-via-admin-pages/29004

Any thoughts as to what might have gone wrong, ??

my components are at the following levels.

Hello @diyhouse it looks like you have an incomplete update, in particular your version of core is behind, it should be on 11.15.15. Could you try running update again?

Hi Trystan,.. Tx For the ‘out of hours’ response, :slight_smile:

Ran the update as you requested:-

Does this have anything to do with the ‘git stash’ stuff I did, to preserve Sunday as start of week?

KR…

-

Here is he log file of that activity,..

Starting update via service-runner-update.sh (v3.0) >
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       5.8G  2.6G  3.0G  47% /
devtmpfs        667M     0  667M   0% /dev
tmpfs           925M     0  925M   0% /dev/shm
tmpfs           370M  9.2M  361M   3% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs            30M     0   30M   0% /tmp
tmpfs           1.0M  4.0K 1020K   1% /var/lib/php/sessions
tmpfs           1.0M     0  1.0M   0% /var/tmp
/dev/mmcblk0p1  255M   51M  205M  20% /boot
/dev/mmcblk0p3  8.1G  1.5G  6.2G  20% /var/opt/emoncms
/dev/sda         29G  6.1G   21G  23% /mnt/Backups
log2ram          50M  2.8M   48M   6% /var/log
- emonSD version: emonSD-10Nov22
- supported images: emonSD-10Mar26 emonSD-03Jul25 emonSD-01Feb24 emonSD-20Nov23 emonSD-10Nov22 emonSD-21Jul21 emonSD-08May21 emonSD-24Jul20 emonSD-02Oct19 emonSD-17Oct19
- emonSD base image check passed...continue update
git pull /opt/openenergymonitor/EmonScripts
  master
* stable
On branch stable
Your branch is up to date with 'origin/stable'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	install/Mosquitto-PHP/
	install/phpredis/

nothing added to commit but untracked files present (use "git add" to track)
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
Already up to date.
-------------------------------------------------------------
Main Update Script
-------------------------------------------------------------
Date: Sun 5 Jul 15:10:41 BST 2026
EUID: 1000
openenergymonitor_dir: /opt/openenergymonitor
type: emoncms
serial_port: ttyAMA0
firmware: none
Hardware detected: EmonPi
Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (20.3.4-4+rpt1+deb11u1).
The following packages were automatically installed and are no longer required:
  libgraphite2-3 libharfbuzz0b libjemalloc2 libraqm0 raspinfo
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 107 not upgraded.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: redis in /usr/local/lib/python3.9/dist-packages (4.3.4)
Requirement already satisfied: deprecated>=1.2.3 in /usr/local/lib/python3.9/dist-packages (from redis) (1.2.13)
Requirement already satisfied: packaging>=20.4 in /usr/local/lib/python3.9/dist-packages (from redis) (21.3)
Requirement already satisfied: async-timeout>=4.0.2 in /usr/local/lib/python3.9/dist-packages (from redis) (4.0.2)
Requirement already satisfied: wrapt<2,>=1.10 in /usr/local/lib/python3.9/dist-packages (from deprecated>=1.2.3->redis) (1.14.1)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/local/lib/python3.9/dist-packages (from packaging>=20.4->redis) (3.0.9)
Stopping emonPiLCD service
Start emoncms update:
-------------------------------------------------------------
Update Emoncms Core
-------------------------------------------------------------
Updating /var/www/emoncms
- current branch: stable
WARNING local changes in /var/www/emoncms - Module not updated
- git status: On branch stable
Your branch is ahead of 'origin/stable' by 216 commits.
  (use "git push" to publish your local commits)

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   Modules/feed/engine/PHPFina.php

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	Modules/feed/engine/PHPFina.php.ORG

no changes added to commit (use "git add" and/or "git commit -a")
-------------------------------------------------------------
Update Emoncms Services
-------------------------------------------------------------
emoncms_mqtt.service already installed
feedwriter.service already installed
service-runner.service already installed

Reloading systemctl deamon
Restarting Services...
- sudo systemctl restart feedwriter.service
--- ActiveState=active ---
- sudo systemctl restart emoncms_mqtt.service
--- ActiveState=active ---
- sudo systemctl restart emonhub.service
--- ActiveState=active ---
/opt/openenergymonitor/EmonScripts/sudoers.d/emoncms-rebootbutton: parsed OK
emonPi emoncms admin reboot button sudoers updated

-------------------------------------------------------------
Update Emoncms Modules
-------------------------------------------------------------
Updating /var/www/emoncms/Modules/app
- current branch: stable
- local changes: no
- git fetch: Fetching origin
Already on 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /var/www/emoncms/Modules/config
- current branch: stable
- local changes: no
- git fetch: Fetching origin
Already on 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /var/www/emoncms/Modules/dashboard
- current branch: stable
- local changes: no
- git fetch: Fetching origin
Already on 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /var/www/emoncms/Modules/device
- current branch: stable
- local changes: no
- git fetch: Fetching origin
Already on 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /var/www/emoncms/Modules/graph
- current branch: stable
- local changes: no
- git fetch: Fetching origin
Already on 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /var/www/emoncms/Modules/setup
- current branch: stable
- local changes: no
- git fetch: Fetching origin
Already on 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /var/www/emoncms/Modules/wifi
- current branch: stable
- local changes: no
- git fetch: Fetching origin
Already on 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /opt/emoncms/modules/backup
- current branch: stable
- local changes: no
- git fetch: Fetching origin
Already on 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- running module install/update script (user=pi)
- config.cfg already exists, left unmodified
- creating /etc/php/8.1/mods-available/emoncmsbackup.ini
post_max_size = 3G
upload_max_filesize = 3G
upload_tmp_dir = /var/opt/emoncms/backup/uploads
- phpenmod emoncmsbackup
- restarting apache
- component updated
Updating /opt/emoncms/modules/postprocess
- current branch: stable
- local changes: no
- git fetch: Fetching origin
Already on 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
Updating /opt/emoncms/modules/sync
- current branch: stable
- local changes: no
- git fetch: Fetching origin
Already on 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- running module install/update script (user=pi)
[]
- reinstalling emoncms_sync.service
Removed /etc/systemd/system/multi-user.target.wants/emoncms_sync.service.
Created symlink /etc/systemd/system/multi-user.target.wants/emoncms_sync.service → /lib/systemd/system/emoncms_sync.service.
- Service ActiveState=active
- component updated
Updating /opt/emoncms/modules/usefulscripts
- current branch: stable
- local changes: no
- git fetch: Fetching origin
Already on 'stable'
- git checkout: Your branch is up to date with 'origin/stable'.
- git pull: Already up to date.
- database update: no changes
- component updated
/opt/openenergymonitor/EmonScripts/sudoers.d/wifi-sudoers: parsed OK
wifi sudoers entry updated


Starting emonPi LCD service..

service-runner will be restarted at the end

-------------------------------------------------------------
System update done: Sun  5 Jul 15:11:14 BST 2026
-------------------------------------------------------------

Yes thats it

As you have local changes you will need to merge the upstream changes into your local branch, using:

git config pull.rebase false
git pull

Tx Trystan,…Got there with a few additions,…

to complete update I needed to

cd /var/www/emoncms/Modules/feed/engine
followed by:-
git config pull.rebase false
git pull
git stash
git config pull.rebase false
git pull
git stash apply ;to write back updates

Initially the git pulls were failing as follows:-

pi@emonpi:/var/www/emoncms/Modules/feed/engine $ git pull
remote: Enumerating objects: 2808, done.
remote: Counting objects: 100% (951/951), done.
remote: Compressing objects: 100% (394/394), done.
remote: Total 2808 (delta 632), reused 617 (delta 556), pack-reused 1857 (from 3)
Receiving objects: 100% (2808/2808), 1.73 MiB | 9.83 MiB/s, done.
Resolving deltas: 100% (1831/1831), completed with 28 local objects.
From https://github.com/emoncms/emoncms
   c9372000..69084f2d  stable                     -> origin/stable
 * [new branch]        copilot/add-pwa-support    -> origin/copilot/add-pwa-support
   fcfe0d66..63d55d61  master                     -> origin/master
 * [new branch]        serial_config_is_running   -> origin/serial_config_is_running
 * [new branch]        sync_feed_list_integration -> origin/sync_feed_list_integration
 * [new branch]        v12                        -> origin/v12
 * [new branch]        v12_input_and_feed_lists   -> origin/v12_input_and_feed_lists
 * [new tag]           11.13.2                    -> 11.13.2
 * [new tag]           11.15.15                   -> 11.15.15
 * [new tag]           11.10.1                    -> 11.10.1
 * [new tag]           11.10.2                    -> 11.10.2
 * [new tag]           11.10.3                    -> 11.10.3
 * [new tag]           11.10.4                    -> 11.10.4
 * [new tag]           11.10.5                    -> 11.10.5
 * [new tag]           11.11.0                    -> 11.11.0
 * [new tag]           11.11.1                    -> 11.11.1
 * [new tag]           11.11.2                    -> 11.11.2
 * [new tag]           11.12.1                    -> 11.12.1
 * [new tag]           11.12.2                    -> 11.12.2
 * [new tag]           11.12.3                    -> 11.12.3
 * [new tag]           11.12.4                    -> 11.12.4
 * [new tag]           11.13.0                    -> 11.13.0
 * [new tag]           11.13.1                    -> 11.13.1
 * [new tag]           11.13.3                    -> 11.13.3
 * [new tag]           11.13.4                    -> 11.13.4
 * [new tag]           11.15.10                   -> 11.15.10
 * [new tag]           11.15.11                   -> 11.15.11
 * [new tag]           11.15.12                   -> 11.15.12
 * [new tag]           11.15.13                   -> 11.15.13
 * [new tag]           11.15.14                   -> 11.15.14
 * [new tag]           11.15.6                    -> 11.15.6
 * [new tag]           11.15.7                    -> 11.15.7
 * [new tag]           11.15.8                    -> 11.15.8
 * [new tag]           11.15.9                    -> 11.15.9
 * [new tag]           11.9.10                    -> 11.9.10
 * [new tag]           11.9.13                    -> 11.9.13
 * [new tag]           11.9.8                     -> 11.9.8
Updating fcfe0d66..69084f2d
error: Your local changes to the following files would be overwritten by merge:
	Modules/feed/engine/PHPFina.php
Please commit your changes or stash them before you merge.
Aborting


hence I injected the git stash,.. which seems to have saved my edits…

and an additional

git config pull.rebase false
git pull
     and :-
git stash apply ; to write back updates 

The final git pull then seems to update all of the components, with a whole load of php js css json files being update in the blink of an eye… followed by the git stash apply

on refreshing the emonpi components screen,.. emoncms core is at 11.15.15

And the graph interface has a whole new look and feel…

what new toys are here,.. I will explore..

How do I maintain future updates,.. is it essentially as I have discovered above,.. or can it be automated,.. I only ask,… as my git experience is very limited..

Many tx for your help Trystan