DragonflyCMS Projects > Treasury and Supporters > Language definitions - Supporters 9.1.2 > Community Forums > Phoenix Netology
Forum Index > eCommerce > Treasury and Supporters

Language definitions - Supporters 9.1.2 Reply to topic


I don't know if this is a bug - more likely a peculaiarity of my system, but anyway...

On the supporters table of donors, donations, ranks, etc, 4 language definitions are not working, even though to me they look fine in the supports.php language file, the index and the template:

"{ Rank } { Rank calc } { Donation } { Lastdate }"

Using { Donation } as an example.

index.php:

'L_DONATION' => $lang['Amount'],


supports.php (language):

'Amount' => 'Amount<br/ Donated',

supporters.html:<th class="thTop" nowrap="nowrap">{L_DONATION}</th>


CMS debug error:


Notice line 28: Undefined index: Amount

Please enter your server specs in your user profile! 😢


Unless it's this forum removing the >, it should be,

'Amount' => 'Amount<br />Donated',

which is what I have in my lang file v1.2

Mind you, the most recent separate release was 9.1.3 but I have 9.1.4 in the full Treasury package.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


My mistake in writing the post - it does have it. Also I have the version number wrong! I just downloaded the most recent Supportes, but will try the one out of the Treasury package now.

Please enter your server specs in your user profile! 😢


What may cause an issue like { Rank } showing is if you update a module, and update the default template, but still have the old template in a specific theme and that is not updated.

In that case, the specific theme will continue to use the template in its template folder, and ignore the updated default template.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


I'm on the latest version from Treasury and still have the problem. There's only one template file (in the default theme), and only one language file. Thanks for the quick response BTW. Any other ideas?

Please enter your server specs in your user profile! 😢


Try clearing the cache files.

Otherwise, I'm not sure of what's causing the conflict - I may need to redefine the language file.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


I was clearing the cache as I went. Leave it with me for a while and I'll have a play around. - edit: sorry, but I'll have to leave this for a while. Meanwhile though, does this help:

[root@arrse_apache_server cpgn2]# grep -r L_DONATION *

cache/tpl_default_supporters.html.inc: <th class="thTop" nowrap="nowrap"><?php echo ((isset($this->_tpldata['.'][0]['L_DONATION'])) ? $this->_tpldata['.'][0]['L_DONATION'] : '{ '.ucfirst(strtolower(str_replace('_', ' ', 'DONATION'))).' }'); ?></th>

modules/Supporters/index.php: 'L_DONATION' => $lang['Amount'],

themes/default/template/supporters.html: <th class="thTop" nowrap="nowrap">{L_DONATION}</th>

Please enter your server specs in your user profile! 😢

Last edited by hqarrse on Wed Jul 02, 2008 10:59 pm; edited 1 time in total


It doesn't explain why it's happening, and shouldn't be necessary but, add this to blank line 17 of index.php,

get_lang('Supporters');

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


I tried that before (and just have done again following your post) and no difference. Could it be that it's not installed properly? I'll uninstall and reinstall. It may be my fault from all the changes I was doing during Treasury / DonationsPro switches.

Please enter your server specs in your user profile! 😢


Just uninstalled, deleted the rank_value column and reinstalled and the same. I wouldn't worry Phoenix. If it's not happening on other installs it's probably some peculiarity on ours that has crept in somewhere. Only the admins see it so it doesn't matter really so much.

Please enter your server specs in your user profile! 😢


It's a puzzle - I'll rewrite the language file anyway when I produce the new version which will allow you to select which "DP" module you want it to pull data from.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

All times are Australia/Adelaide


Jump to: