News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Moved webhosts, old board SMF 2.0 RC3 - new installation.

Started by CerebralJam, January 11, 2016, 08:26:23 PM

Previous topic - Next topic

Kindred

you probably want to save the htaccess file in your root directory as well...
but, for the most part, you can restore individual files back to the root if they are needed.

(and in the cache directory, you can delete everything, or just the cache files - the htaccess and index file will be replaced when you extract the upgrade files)




the other directories can be left, since those may have user generated or custom content

and no... don't reupload the old ones...   extract or upload the contents of the upgrade archive.


if it still fails after all that -- do Illori's suggestion
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

CerebralJam

I got scared... when I was seeing on Filezilla exactly what was being deleted by removing the Sources & Themes directories, I could see a huge amount of customisations.  I had or have rather, Ultimate Profile added - so losing this mod, and anything that was added would be a big loss.

So, I put it back to what it was, re-uploaded the upgrade files with the alterations that were Illori's suggestion, and this time got the error exactly as before only line 3501 I think it was instead for all listed.

I don't think the large upgrade is the best bet for me. So, back round full circle to what I had before, how do I now move from 2.0 RC3 to 2.0.11 via patches? Manual changes? The slow way?

At this moment in time, I would love there to be a simple way to do what I originally wanted!   :-\  Can't I trick the new install, add the old database and use the updater on that one?  Joke!  At least then I could actually see what was missing rather than gulp and think, I can't put that right.  Panic.

Sorry, I feel like I'm wasting everyone's time. It's rather more of a sentimental forum than active and for those reasons, I want to keep it as close to the original as I can but obviously, securer!

Edit: I have removed all the upgrade files - and overwritten potential changed directories until I can fathom this out. Sigh.

Quote from: Kindred on January 12, 2016, 09:55:29 AM

I have a site which has been upgraded from 1.0, through the updates, and then up to 1.1 and though much of the 1.1x  series, up to 2.0 beta and through the RCs, final and security updates and is now running 2.1 beta...   all of the data from the original forum is still there. :)

This might be what I should be doing, but after all these years... the path ain't so clear oh master!  Can you point me through the brambles?

Illori

there is NO other way to upgrade to 2.0.11 then using the large upgrade package and running the upgrade.php script.

Kindred

yes...   you will be deleting all of those customizations -- in terms of the *FILES*
the DATA for those customizations sits in the database, though...


so, once you finish the upgrade, you reinstall the ultimate profile mod and everything is back the way it was...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

CerebralJam

Illori, you made me believe Santa doesn't exist!  I sat there looking at the archives of all the versions from way back and thought. What a tease? And remembering looking in the mods section before and seeing manual instructions to edit files.

Ok.  Thank you, Kindred. I guess... I will just have to trust they will all mysteriously come back. I hate this! Cruel world. My webhosts are going to love me with all my file transfers!


Kindred

you can use the PATCH upgrade between versions after 2.0 to go from version to the next version, all the way to 2.0.11 --- but you are using an RC version...   there are no patches to upgrade from an RC version to the final release....   therefore, you must do the large upgrade process -- and since you have to do it that way, you might as well jump directly to 2.0.11 rather than 2.0 and then apply 11 patches
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

CerebralJam

Darn it!  Thank you both. I gave up on today, got frazzled.  Will attempt again tomorrow. Do appreciate all your help.  If only I'd kept it up till 2.0, eh?  I learn the hard way.  :)

CerebralJam

I tried again today, deleting Sources and Themes, emptying cache, and then I went to the root files that were added. I came across some strange entries that to me look like they relate to my old webhosts and they were cache files. They start off C:\domains\***\www.root\SMF\cache...  From what I can see they relate to a mod for the games. I tried to delete those but got a 'prohibited' response so couldn't.  Tried re-uploading all the directories and files for the upgrader and tested again and got back same sort of error as first time.

The other thing I've noticed is although I've pointed the DNS at the new host - about three weeks now, there are aliases and a gridhosted alias.  Maybe if I get this sorted out, I'll  have some joy! :)


Need to get in touch with new webhosts and find out what's happening in the background.  Back to the drawing board.  Thanks again.

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

the cache files are generated by SMF, you really dont need to touch them.

CerebralJam


CerebralJam

Decided to try again.  I do have screenshots but feel a bit vulnerable putting them up here.

This is the information after changing upgrade.php with the patch and after deleting Sources and Themes - this time not touching cache. And of course uploading the whole package again.

Notice: Undefined index: upgrade_upgrade_utility in /.../public_html/SMF/upgrade.php on line 3482
Simple Machines Forum

Notice: Undefined index: upgrade_progress in /.../public_html/SMF/upgrade.php on line 3494

Notice: Undefined index: upgrade_step in /.../public_html/SMF/upgrade.php on line 3499
1: Login

Notice: Undefined index: upgrade_step in /.../public_html/SMF/upgrade.php on line 3499
2: Upgrade Options

Notice: Undefined index: upgrade_step in /.../public_html/SMF/upgrade.php on line 3499
3: Backup

Notice: Undefined index: upgrade_step in /.../public_html/SMF/upgrade.php on line 3499
4: Database Changes

Notice: Undefined index: upgrade_step in /.../public_html/SMF/upgrade.php on line 3499
5: Delete Upgrade
0%


Notice: Undefined index: upgrade_overall_progress in /.../public_html/SMF/upgrade.php on line 3508

Notice: Undefined index: upgrade_time_elapsed in /.../public_html/SMF/upgrade.php on line 3533
: 0
Notice: Undefined index: upgrade_time_mins in /.../public_html/SMF/upgrade.php on line 3534
, 1
Notice: Undefined index: upgrade_time_secs in /.../public_html/SMF/upgrade.php on line 3534
.
Updating Your SMF Install!
The upgrader was unable to find some crucial files.

Please make sure you uploaded all of the files included in the package, including the Themes, Sources, and other directories.

It is not overwriting Packages either, can I safely delete this directory and upload the upgrades?

Kindred

it occurs to me that this might have something to do with the host...   Who is your host?  and how are you uploading the files for the upgrade?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

CerebralJam

Tsohost.  I upload via ftp, using Filezilla. My package is cloud hosted rather than cPanel.

I tried removing Packages and replacing but again got the same errors.  I've put it all back to normal again for now.

One thing that occurs to me about the patch that Illori mentions.  After the site being moved, and using repair-php, I still get an error on certain boards in regard to the theme path. The home page doesn't throw up any error but if I go into Admin I get "The default theme's directory is wrong, please correct it by clicking this text."  I click the text and the paths for the default theme are correct as set exactly the same on the new installation I made and has no problems.  I'm not sure what's happening here. 

I also get this error on Arcade, Calendar, Quiz, Profile, Moderate, Search.   

Home, Help, Messages, Members all fine! Weird.

EDIT: The other thing that I wondered about is in the settings, as my hosts moved the files they set up a database name and user.  I'm ftp'ing as a different user with the same privileges.  Would that make any difference?  Should I change the user and pass in settings to mine or does it make no difference?  I'm looking at it saying login.

CerebralJam

Ok. I'm trying to understand the differences between the two installations.

I am now seeing on my moved settings.php I have the following, obviously, I've edited actual details...

# Note: These directories do not have to be changed unless you move things.

$boarddir = '/public_html/SMF';      # The absolute path to the forum's folder. (not just '.'!)

$sourcedir = '/public_html/SMF/Sources';      # Path to the Sources directory.

$cachedir = '/public_html/SMF/cache';      # Path to the cache directory.



########## Directories/Files ##########

# Note: These directories do not have to be changed unless you move things.

$boarddir = 'C:\\Domains\\...\\wwwroot\\SMF';      # The absolute path to the forum's folder. (not just '.'!)

$sourcedir = 'C:\\Domains\\...\\wwwroot\\SMF\\Sources';      # Path to the Sources directory.

$cachedir = '/wwwroot/SMF/cache';      # Path to the cache directory.

Why do I have two things here?  As in the bit above Directories/Files?


CerebralJam

Hi guys, just wanted to leave a wee update here.

Got in touch with support at my new webhosts - Tsohost. I hope it is ok to acknowledge them here as it would be wrong for me to just say 'sorted'.

They very kindly spent a lot of time and looked through the site/files & database to see what could be the problem.

From what I understand, the upgrader could not find this file: index.template.php   I have a customised theme for my forum.  The upgrader was expecting  the file to be under SMF/default and not SMF/Themes/default.

Support went on to use repair_settings.php to put this right and the upgrader then worked properly. 

I wanted to leave this information here as a thumbs up to anyone who might experience a similar problem.

I am hugely grateful to the support section for all the extra time they put into solving this for me as I didn't have a clue where to start.

Illori, I think you were getting me there in the right direction but obviously not seeing my files couldn't guide me completely on what I needed to change. I didn't know what the upgrader was looking for, or what default files it couldn't find.

Thank you to Kindred and yourself, Illori for responding to my post and helping me where you could.

My forum has now been updated to the latest release and all mods put back in place successfully!  :)

Kindred

ummm... I amg lad you got it sorted...  but I think something is still confused.

smf ALWAYS uses /Themes/default for the default theme.

if, somehow, you deleted or moved the default (curve) theme, then yes, that will cause TONS of issues with the upgrader and many other things.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

CerebralJam

I didn't move the Curve theme.  Originally, I probably did worse than that, I renamed it - when I first had the site transferred, I was getting a message about default theme path being wrong so, I... renamed the theme thinking it needs to be the current theme as I remembered changing the default by making a custom theme and well...

If I remember rightly, the next awful thing I did was go into theme settings and er, allow it to try to reset themes... and lost my admin control panel.  I panicked and read a thread on here after searching on how to put that right. Then I think I ran repair_settings.php and got it back again. And renaming the default Curve everything came back better than ever... until I tried to do the upgrade :D

I think as you say, I ballzed it up a bit... even though the theme now looked brilliant it couldn't do the other bits to upgrade.

Having said all that, back when I chose the theme in 2009 (no longer available) not upgraded, it did have strange instructions about where to place files.  And it could even have been back then that I added additional versions of the files to different places thus, duplicates etc because following stuff thinking I got it right - it didn't work, until I placed the files in another place.  Rather than delete stuff (as I  had forgotten what was there originally) I probably kept it where it was.

Somewhere on my external drive - I will have the instructions (and the zipped files) that led me to do this for this theme.  I usually keep everything.

Hangs head in shame...  :-[  I have been a terrible fiddler rather than a careful manual reader. 


Advertisement: