FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Template (upgrade issue) (Unable to compile theme default. Please fix it manually)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Template (upgrade issue) [message #187378] Sat, 04 November 2017 17:39 Go to next message
matthys is currently offline  matthys   Netherlands
Messages: 4
Registered: November 2017
Karma: 0
Junior Member
Not sure where to post as I'n new ...

I did a upgrade from 2.7.7 tot 2.8.0 to 3.0.0 to 3.0.7

But this last one is a nightmare Mad

A lot of issue (database wise) I had to perform manually, but upgrade now turns fine until:

Beginning to decompress the archive.
Finished decompressing the archive.
File upgrade completed.
Checking SQL permissions.
Alter database column salt in table fud26_users.
SQL upgrades completed.
Checking GLOBAL variables.
Unable to compile theme default. Please fix it manually: Undefined template: "registered_on_date" inside "registered_on" in file /var/www/FUDforum/thm/default/i18n/en/msg
FATAL ERROR: The consistency checker requires components from the default theme. You will have to fix this theme or switch to a valid template set before you can finalize the upgrade!

I have no clue, as all was default... even the template.

It does say "Please fix it manually" but nowhere I find HOW.

Any help would be appreciated.

Matthijs
Re: Template (upgrade issue) [message #187379 is a reply to message #187378] Sat, 04 November 2017 18:05 Go to previous messageGo to next message
naudefj is currently offline  naudefj   United States
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Check if you have a "registered_on_date" section in /var/www/FUDforum/thm/default/tmpl/date_formats.tmpl

It should look like this:
{SECTION: registered_on_date}
{DATE: u_reg_date %a, %d %B %Y}
{SECTION: END}

Re: Template (upgrade issue) [message #187380 is a reply to message #187379] Sat, 04 November 2017 18:25 Go to previous messageGo to next message
matthys is currently offline  matthys   Netherlands
Messages: 4
Registered: November 2017
Karma: 0
Junior Member
Yes .. I checked and it's there:

{SECTION: ignore_list_date}
{DATE: r[4] %a, %d %B %Y %H:%M}
{SECTION: END}

{SECTION: registered_on_date}
{DATE: u_reg_date %a, %d %B %Y}
{SECTION: END}

{SECTION: welcome_message_date}
{DATE: usr->last_visit %a, %d %B %Y %H:%M}
{SECTION: END}

[Updated on: Sat, 04 November 2017 18:27]

Report message to a moderator

Re: Template (upgrade issue) [message #187381 is a reply to message #187380] Sat, 04 November 2017 18:31 Go to previous messageGo to next message
naudefj is currently offline  naudefj   United States
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Well, that is the only place where it's (supposed to be) defined.
Can you maybe give me temp access to your server to test?

[Updated on: Sat, 04 November 2017 18:31]

Report message to a moderator

Re: Template (upgrade issue) [message #187382 is a reply to message #187381] Sat, 04 November 2017 18:56 Go to previous messageGo to next message
matthys is currently offline  matthys   Netherlands
Messages: 4
Registered: November 2017
Karma: 0
Junior Member
Sorry ... but cannot do for the moment.

I also copied the complete default (/var/www/FUDforum/thm/default) from a fresh install, and also not working.
Though with the fresh install (no upgrade) it's working fine ...

I also tried to restore DB in fresh install and copy files and messages folder, and also no go.

Keep getting the message about:
Undefined template: "registered_on_date" inside "registered_on" in file /var/www/FUDforum/thm/default/i18n/en/msg
Re: Template (upgrade issue) [message #187383 is a reply to message #187382] Sun, 05 November 2017 04:22 Go to previous messageGo to next message
naudefj is currently offline  naudefj   United States
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
This is not a DB problem, you can leave your tables as-is.
Try to replace the entire 'thm' directory and re-run the upgrade script.
Re: Template (upgrade issue) [message #187384 is a reply to message #187383] Sun, 05 November 2017 10:57 Go to previous messageGo to next message
matthys is currently offline  matthys   Netherlands
Messages: 4
Registered: November 2017
Karma: 0
Junior Member
I have another issue/question .. I did a rebuild of search index and got:

Indexer progress
Disabling the forum for the duration of maintenance run.
Please wait while index is being rebuilt. This may take a while depending on the size of your forum.

Warning: fopen(/var/www/FUDforum/messages/msg_-10000): failed to open stream: No such file or directory in /var/www/FUDforum/include/theme/default/fileio.inc on line 24

Warning: fseek() expects parameter 1 to be resource, boolean given in /var/www/FUDforum/include/theme/default/fileio.inc on line 28

Warning: fread() expects parameter 1 to be resource, boolean given in /var/www/FUDforum/include/theme/default/fileio.inc on line 29
100% Done.
All done in 0.00 minutes.
Re-enabling the forum.

But the message are like msg_$id (msg_10000) and not with the - (minus) sign like msg_-10000.
Re: Template (upgrade issue) [message #187385 is a reply to message #187384] Sun, 05 November 2017 17:56 Go to previous message
naudefj is currently offline  naudefj   United States
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
I assume you've solved your template problem?

Check if the file exists and that it can be read/ permissions is OK.

PS: Sorry, I've replied to quickly. Not sure where that minus sign is coming from.

[Updated on: Sun, 05 November 2017 17:57]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Please grant your database user permissions to create indexes and try again
Next Topic: Forum needs long time for sending PN
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun May 05 06:10:07 GMT 2024

Total time taken to generate the page: 0.03310 seconds