Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2012, 04:43 PM
netpants netpants is offline
 
Join Date: Feb 2010
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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;
}
Reply With Quote
  #2  
Old 06-29-2012, 08:57 PM
Andy Andy is offline
 
Join Date: Sep 2003
Location: San Francisco
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:56 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.03218 seconds
  • Memory Usage 2,168KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete