View Single Post
  #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
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01098 seconds
  • Memory Usage 1,769KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete