Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-7741

Cache file deletion error with two templates like "prosilver" and "prosilver_se"

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 3.0.2
    • 3.0.3
    • Styles
    • None
    • PHP Environment: 5.2.4
      Database: MySQL 5.0.51a

    Description

      I happen to have "prosilver" and "prosilver special edition" installed. Both of which are used. If none of the prosilver_se template files are cached (i.e. if the cache folder does not contain any files with "prosilver_se" in their names) I can selectively delete cached template files of prosilver (styles -> templates -> prosilver -> cache). If template files of prosilver_se are cached I can still selectively delete them via the ACP but if I try to delete the normal prosilver cache (still using: styles -> templates -> prosilver -> cache) I get the following PHP error:

      [phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 1016: filemtime() [function.filemtime]: stat failed for ./../styles/prosilver/template/se_overall_header.html
      [phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 1016: filemtime() [function.filemtime]: stat failed for ./../styles/prosilver/template/se_ucp_header.html
      [phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 1016: filemtime() [function.filemtime]: stat failed for ./../styles/prosilver/template/se_jumpbox.html
      [phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 1016: filemtime() [function.filemtime]: stat failed for ./../styles/prosilver/template/se_overall_footer.html
      [phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 1016: filemtime() [function.filemtime]: stat failed for ./../styles/prosilver/template/se_ucp_footer.html
      [phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 1016: filemtime() [function.filemtime]: stat failed for ./../styles/prosilver/template/se_ucp_prefs_personal.html
      [phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 1016: filemtime() [function.filemtime]: stat failed for ./../styles/prosilver/template/se_forumlist_body.html
      [phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 1016: filemtime() [function.filemtime]: stat failed for ./../styles/prosilver/template/se_index_body.html
      [phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 1016: filemtime() [function.filemtime]: stat failed for ./../styles/prosilver/template/se_viewforum_body.html
      [phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 1016: filemtime() [function.filemtime]: stat failed for ./../styles/prosilver/template/se_ucp_main_front.html
      [phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 1016: filemtime() [function.filemtime]: stat failed for ./../styles/prosilver/template/se_ucp_profile_profile_info.html
      [phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
      [phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
      [phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
      [phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)

      I guess the problem is that the template name and the template file name are separated by a underscore (e.g. tpl_prosilveroverall_footer.html.php). Now there are two templates, "prosilver" and "prosilver_se", and now a cached template file of prosilver_se is misinterpreted as one of prosilver: tplprosilverse_overall_footer.html.php and not tplprosilver_se_overall_footer.html.php.

      Attachments

        Issue Links

          Activity

            People

              Acyd Burn Meik Sievertsen [X] (Inactive)
              tschan tschan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: