vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Moving Database from Old Convoluted Site to Fresh Install (https://vborg.vbsupport.ru/showthread.php?t=285050)

netpants 06-29-2012 04:43 PM

Moving Database from Old Convoluted Site to Fresh Install
 
Hello,
So we have a site been up for a few years. Over those years we have had many plugins get installed, a lot stopped working or are not being used anymore. Disabling those plugins causes site errors.

I need to create a brand new fresh install and import the database from our old site into it. We have tested this but receive tons of errors because of all the plugins, templates, etc. I managed to go into the database and clean up errors, but I know beleive because of the template files not existing the pages are just white. I cannot login to the admin control panel either it goes to the login screen, then after hitting login it goes to a blank white page (like its not redirecting properly).

So my question. Is there an easy way to migrate to a fresh install minus all of the plugins and templates we have on the old database.

--------------- Added [DATE]1340997787[/DATE] at [TIME]1340997787[/TIME] ---------------

i thought i would add we are far behind on updates as well stuck at 4.1.3 because updating causes a bunch of errors. THis is another reason for the need of a fresh install.

--------------- Added [DATE]1341000201[/DATE] at [TIME]1341000201[/TIME] ---------------

Well a little update. I used IMPEX and was able to do everything fine except permissions and everything but those are easy to fix.

The propblem now is this error.

Code:

Warning: number_format() expects parameter 1 to be double, string given in [path]/includes/functions.php on line 844

Warning: number_format() expects parameter 1 to be double, string given in [path]/includes/functions.php on line 844

How do i get rid of that?

--------------- Added [DATE]1341003918[/DATE] at [TIME]1341003918[/TIME] ---------------

Line 844 is this in functions.php

Code:

return str_replace('_', ' ', number_format($number, $decimals, $decimalsep, $thousandsep)) . $type;
}

--------------- Added [DATE]1341005661[/DATE] at [TIME]1341005661[/TIME] ---------------

Ok I managed to fix it, although I am not sure if this will mess anything else up. Please let me know if it will.

I simply added (double) after number_format( so see below.

Code:

return str_replace('_', ' ', number_format((double)$number, $decimals, $decimalsep, $thousandsep)) . $type;
}


Andy 06-29-2012 08:57 PM

Using impex you will break every URL link both internal and external. This is a major problem in itself. It sounds like you're understanding the software more now and should possibly consider cleaning up without the use of impex.


All times are GMT. The time now is 06:56 PM.

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.00991 seconds
  • Memory Usage 1,715KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete