vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   URGENT! Major template problems - not loading modified ones, some disappearing! (https://vborg.vbsupport.ru/showthread.php?t=57808)

X-Fan 10-13-2003 01:27 AM

Quote:

Originally Posted by Erwin
Did you backup to an SQL file?

Yes.

Quote:

If so, you can import specific tables in SSH using the command line.
But how? What command(s) do I need to enter?

Quote:

The way I do it is using phpmyadmin, and importing the whole backup database into a NEW database, the exporting the TEMPLATES table as an SQL file, then importing that into the OLD database.
I don't have permission to create a new database - I'll check with my site host and see if they can set me up a temp one.

Lesane 10-13-2003 02:11 PM

1 Attachment(s)
Install vbulletin on your local drive:
https://vborg.vbsupport.ru/showthread.php?t=39482

Import the .sql file (also explained in above thread), then go to the admin and export the template table (see screenshot).

Also, wich 'templatesetid' has your templates? (check the content of the table 'template'). And what's the content of the table ' templateset'?

X-Fan 10-13-2003 09:48 PM

Quote:

Originally Posted by Lesane
Import the .sql file (also explained in above thread), then go to the admin and export the template table (see screenshot).

Unfortunately I can't download a 300 meg SQL file as I have a download cap with my 'net account.

Quote:

Also, wich 'templatesetid' has your templates? (check the content of the table 'template').
If you mean my modified templates, currently it's 3.

Quote:

And what's the content of the table ' templateset'?
templatesetid = 3
title = Default
importtemplatesetid = 0

X-Fan 10-13-2003 11:12 PM

Quote:

Originally Posted by Erwin
Did you backup to an SQL file?

If so, you can import specific tables in SSH using the command line.

The way I do it is using phpmyadmin, and importing the whole backup database into a NEW database, the exporting the TEMPLATES table as an SQL file, then importing that into the OLD database.

Erwin, what do I need to enter on the command line to import a backup of a specific table?

X-Fan 10-14-2003 01:26 AM

It worked! My site's back up and running!

I just need to modify a few templates I'd changed since last week's backup, but it's online again with all content intact!

Thanks very much to all who helped me out! Your suggestions and advice were invaluable.

X-Fan 10-14-2003 02:09 AM

Okay, a tad early on the celebrations there. Whilst the majority of the site appears to be working, some templates are still not loading.

For example, I've had Chen's "Change style of first post" hack installed for ages, and it was working fine until now. Take a look at this thread:

http://www.comixfan.com/xfan/forums/...threadid=22721

It's meant to be using the postbit_first template but it's not. Heck, it's not even showing the first post at all!

But on threads in forums which I didn't set for the change first post, all is mostly fine, eg:

http://www.comixfan.com/xfan/forums/...threadid=22637

Several other modified templates aren't showing either, such as forumhome, getinfo, etc.

Any ideas as to how I can fix that?

X-Fan 10-14-2003 03:20 AM

Okay, just a quick update. Any existing templates that I've modified aren't being displayed. The master is being displayed instead.

Any new templates that I've added aren't being displayed either, unless I set their templatesetid to -1, the master set. If I do that, then the new templates are displayed.

Also odd is that some templates from hacks that were installed with templatesetid -1, such as the Warning Systems Hack and vBHome, have now reverted back to templatesetid 1.

What could be causing these things to happen?

Erwin 10-14-2003 06:01 AM

Hacks are reverted from default to custom when you upgrade vB. Just run the installation php files for the hack to put them back to default.

X-Fan 10-14-2003 06:22 AM

This wasn't an upgrade, though, this was a straight import of the templates table from my back-up into my current DB.

I hadn't added any new hacks since the database was backed up last week, so all templates added by hacks are still in the templates table.

What I meant, was, that after I imported the backed-up templates table, templates started disappearing after that. As I was going through the templates, I noticed some of the Warning Systems hack and Store hack templates were missing, even though they were there when I imported the backed-up templates table!

Also, what about any existing templates that I've modified not being displayed?

As I mentioned before, any new templates that I've added aren't being displayed either, unless I set their templatesetid to -1, the master set. If I do that, then the new templates are displayed.

X-Fan 10-14-2003 07:27 AM

Huh, well there you go... I just tried importing the settings, template, and templateset tables again, but was frustrated because only the master templateset was being displayed, none of my modifications.

So I checked in the styles section, and the master templateset was coming up for header, footer etc. I went to my SQL table, looked in the style table, and noticed that the templateset there wasn't 1, so I changed it and voila, things look back to normal!


All times are GMT. The time now is 02:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01841 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete