Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-5177 now.

When updating to RC2 and RC3, *_styles_template_data stores the install folder in the database (fix completed in vcs)

As my title says, it seems that when updating, the [phpbb]_styles_template_data stores the path to the "install" folder and files within it. Since I am deleting the folder after updating the backend to RC3 (this occured when updating RC1 to RC2 as well), this causes the ACP to error when you try to Refresh the templates, since it will not find this folder and the files contained within.

Under Styles > Template > Prosilver: Edit it would list;
"../../install/" etc.

The solution I did myself was to go to the _styles_template_data and delete the last entries that was stored with *install* under template_filename and I could successfully continue to use the ACP again as it should be working, refreshing the templates successfully.

I do not however know why the install files was "cached" into the database, but it renders it broken if a person is to refresh the cache. I am using a edited version of the prosilver theme that comes with the boards if that is of any help. I have also managed, by deleting as above, to fix my own boards, but I figured this is something that might be an idea to look into.

Please forgive me if this has already been submitted, performing a search did not for me list any such reports.

Comments / History

Edited ticket

Action performed by Decurio on Jul 10th 2007, 12:38

Edited ticket

Action performed by Decurio on Jul 10th 2007, 12:39

Edited ticket

Action performed by Decurio on Jul 10th 2007, 13:12

Edited ticket

Action performed by Decurio on Jul 10th 2007, 13:13

Assigned ticket to user "DavidMJ"

Action performed by Acyd Burn (Server Manager) on Jul 10th 2007, 13:55

Posted by Acyd Burn (Server Manager) on Jul 10th 2007, 13:56

This may be caused by the updater temporarily using newer template files within install/update/new (though should only use admin files which should not be cached).

Posted by karlsemple (Former Team Member) on Jul 10th 2007, 15:32

I have this issue as well and it has just come up in the support forum as well,

http://www.ktuk.net/photobucket/Jackal/1184081409.jpg

and when you try to refresh the template

http://www.ktuk.net/photobucket/Jackal/1184081671.jpg

Posted by kentm3 on Jul 10th 2007, 15:33

I have similar case but the file list shows even the /adm directory and some non-exist files!
viewtopic.php?f=46&t=564295

Posted by karlsemple (Former Team Member) on Jul 10th 2007, 15:44

also not sure if this is related but clicking the cache button in the template section causes this error

Code: Select all
[phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 994: filemtime() [function.filemtime]: Stat failed for ./../cache/tpl_prosilver_tpl_prosilver_.php.html.php (errno=2 - No such file or directory)
[phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 996: filesize() [function.filesize]: Stat failed for ./../cache/tpl_prosilver_tpl_prosilver_.php.html.php (errno=2 - No such file or directory)
[phpBB Debug] PHP Notice: in file /includes/acp/acp_styles.php on line 997: Undefined index: tpl_prosilver_.php.html
[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:3685)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 155: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3685)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 156: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3685)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 157: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3685)

Posted by Decurio on Jul 10th 2007, 15:45

Just in case it was a bit hard to understand, the temporary fix to this problem is written in my report; You need to have access to your database, using say phpMyAdmin or something, go to the (* = prefix for phpbb tables, in example phpbb);

*_styles_template_data

table and browse it, at the very end of this table, most likely you will find these 'install' entries that are breaking our ACPs. To fix your ACP, you must select these entries and delete them, but if you don't feel sure that you are doing the right things, I would suggest to wait and see if the phpbb team will come with a solution for you.

Posted by Decurio on Jul 10th 2007, 15:48

Clicking the cache button gives me the same errors even after applying my own fix, so I have no idea if it is related, but I am leaning on it not being related. I think this header outputted bug is a different one, so you might want to submit it as a seperate bug report.

Linked ticket with changeset: r7861

Action performed by DavidMJ (Former Team Member) on Jul 10th 2007, 16:18

Changed ticket status from "New" to "Fix completed in CVS"

Action performed by DavidMJ (Former Team Member) on Jul 10th 2007, 16:20

Ticket details

Related SVN changesets