Summary Reports bug

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
User avatar
Jay Webb
Veteran Member
Posts: 55
Joined: 2017-08-26 15:27

Summary Reports bug

Post by Jay Webb » 2019-08-06 04:54

Ok, Summary Reports has bad path for header-extra.
If I add background image to header-extra with an image path," hooks/images/image.png"
Summary Reports throws an error bad path body background image shows path as "hooks/hooks/images/image.png"
and therefor no background image.
If I change path in header-extra path to, "images/image.png" it displays correctly in Summary Reports, but all other pages have no background image
and error, bad path.

I've tried to find a way to correct but no luck. Hope there's a fix.
What we envision, we make happen.

Veteran Member
Posts: 50
Joined: 2019-02-24 16:35
Location: Calgary Alberta

Re: Summary Reports bug

Post by kbarrett » 2019-08-31 15:24


Not really a fix, a work around. I inspected the broken image link in the console and found that the browser is looking for images in the hooks folder. I added an images folder with the appropriate image header and all works. I don't even have to add an image url to the report when I am creating it.


User avatar
Site Admin
Posts: 1040
Joined: 2012-09-27 14:46

Re: Summary Reports bug

Post by a.gneady » 2019-10-16 14:27

Sorry for the late reply as I just saw this thread now. Generally, if you're pointing to resources in footer-extras.php or header-extras.php, you should use the predefined constant PREPEND_PATH before the resource path, and then list the path relative to the app path ... So, if the resource is an image stored as hooks/images/image.png (as per your example), you should point to it in header-extras.php like so:

Code: Select all

<img src="<?php echo PREPEND_PATH; ?>hooks/images/image.png">
That way, pages stored anywhere on the app would correctly point to it.
:idea: Learn all the tips and tricks of customizing AppGini apps through our online course.
:arrow: Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
:arrow: Summary Reports plugin: Build powerful reports and charts for your AppGini apps.
:arrow: Search Page Maker: Compose user-friendly yet powerful search pages for your AppGini apps.

AppGini Super Hero
AppGini Super Hero
Posts: 360
Joined: 2019-05-21 22:42

Re: Summary Reports bug

Post by onoehring » 2019-10-20 14:15

Hi Ahmed,

this is a good tip (tips & tricks?) but unfortunately it is not mentioned in the documentation yet :-(


Post Reply