Opened 14 years ago

Closed 14 years ago

#252 closed defect (fixed)

Undefined index: lang_header_viruses

Reported by: maia@… Owned by: rjl
Priority: low Milestone:
Component: PHP scripts Version: 1.0.1 Devel
Severity: minor Keywords: virus, header
Cc: maia@…

Description

When viewing the viruses that have been quarentined, the following notice appears:

Time    Ident   Priority        Message
13:47:19.22     maia    Notice  2006-01-16 13:47:19 (EST) - Notice -
Undefined index: lang_header_viruses at
/path/to/maia/themes/ocean_surf/compiled/%%6D^6D8^6D88E30A%%virus-quarantine.tpl.php
line [64]

This notice comes up with the Desert Sand theme as well

Time    Ident   Priority        Message
13:51:11.92     maia    Notice  2006-01-16 13:51:11 (EST) - Notice -
Undefined index: lang_header_viruses at
/path/to/maia/themes/desert_sand/compiled/%%6D^6D8^6D88E30A%%virus-quarantine.tpl.php
line [64]

v1.0.0, upgraded from trunk.

Change History (3)

comment:1 Changed 14 years ago by dmorton

  • Resolution set to fixed
  • Status changed from new to closed

updated in [922] and [923], in line for 1.0.1 release

comment:2 Changed 14 years ago by maia@…

  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Version changed from 1.0.0 RC6 to 1.0.1 Devel

I get the same error with r923. I think the problem was that there was an underscore (_) instead of a period in the old lines. The following appears to be what is desired (unless these files will be reworked and I misread the meaning of the "in line for 1.0.1 release" note):

$ svn di
Index: ocean_surf/templates/virus-quarantine.tpl
===================================================================
--- ocean_surf/templates/virus-quarantine.tpl   (revision 923)
+++ ocean_surf/templates/virus-quarantine.tpl   (working copy)
@@ -50,7 +50,7 @@

 <tr>
 <th class="virusbanner" colspan="{$cols}" align="center">
-{$lang.header_viruses2} ( {$data.from} - {$data.to} {$lang.text_of} {$data.numrows} )
+{$lang.header_viruses} ( {$data.from} - {$data.to} {$lang.text_of} {$data.numrows} )
 </th>
 </tr>
 {include file="cache_pager.tpl" return_page="virus-quarantine.php" header="virusheader" body="virusbody"}
Index: desert_sand/templates/virus-quarantine.tpl
===================================================================
--- desert_sand/templates/virus-quarantine.tpl  (revision 923)
+++ desert_sand/templates/virus-quarantine.tpl  (working copy)
@@ -50,7 +50,7 @@

 <tr>
 <th class="virusbanner" colspan="{$cols}" align="center">
-{$lang.header_viruses2} ( {$data.from} - {$data.to} {$lang.text_of} {$data.numrows} )
+{$lang.header_viruses} ( {$data.from} - {$data.to} {$lang.text_of} {$data.numrows} )
 </th>
 </tr>
 {include file="cache_pager.tpl" return_page="virus-quarantine.php" header="virusheader" body="virusbody"}

With the files as they are in r922 and r923 I still get the warning notice.

comment:3 Changed 14 years ago by dmorton

  • Resolution set to fixed
  • Status changed from reopened to closed

ok, did that, should work this time.

Note: See TracTickets for help on using tickets.