Member
Member
Adrian0832   24-02-2025, 09:52
#1

Zenphoto 1.6.5
ZPBootstrap - fresh download from the ZP Fork

Possibly another quirk from my hosting company (of which there have been many)

Clean installation as above worked fine - except for the home page - partly blank, no Admin button but the user menu links were there and worked fine. All other user menus (news, gallery, search...) were fine

Logging showed: -
ERROR: Call to undefined function getImageStatistic() in .../zenphoto/themes/imc/functions.php on line 99

Quick search, line 99 did indeed call that function and the function is defined in .../zenphoto/zp-core-zp-extensions/image_album_statistics.php

Rather than chase down why it couldn't find it, I copied the function into the theme...

Administrator
Administrator
acrylian   24-02-2025, 10:07
#2

Rather than chase down why it couldn't find it, I copied the function into the theme...

The proper fix is to enable the plugin (extension) instead. We will take a look why there is no check if the plugin is actually enabled and the function available.

Member
Member
Adrian0832   24-02-2025, 10:16
#3

"The proper fix is to enable the plugin (extension) instead. We will take a look why there is no check if the plugin is actually enabled and the function available."

Thanks - I'll go back and re-jig.

Member
Member
Adrian0832   24-02-2025, 11:20
#4

That worked - thank you

Administrator
Administrator
acrylian   24-02-2025, 11:33
#5

There is also a fix in our fork if the plugin is not enabled.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.