Hello guys,
I am trying to upgrade from 4.5.1 to 4.8 and I did it both in two steps jumpint to 4.6.2 and than again to 4.8 as well as in one step just taking the grand leap but here is the situation.
I have this dotnetnuke in production installed on the root of the account so I have a bunch of links that are not in a skin file that link out to /Portals/0/some picture.jpg or .gif.
When I follow Lee's video on bringing a production installation to a localhost installation all is fine but here is the issue. When I bring it down to the localhost for development purposes put it away in a directory called dotnetnuke within my c:\. Now I have IIIS set as follows:
I have set the home directory of the default web site to c:\dotnetnuke and of course I have than made a virtual directory by right clicking default web site.virtual directory and created an alias called dotnetnuke. Than to implement it I went ahead and told IIS to make the dotnetnuke folder and application putting the right credentials for allowed file names and asp.net version, etc. etc...
This all was good and the production site as is was reflected perfectly within this dotnetnuke folder on my c:\ using a local sql installation.
Links, everything was great now here is where the issue came in. I was reading up on a forum about best upgrading practices and opted to go using a full installation zip file downloaded from dotnetnuke opposed to the upgrade package. Than what I did is changed the name of my
web.config file to
web.config.old so that when I dumped all these new files (with a web.config in it) it would not overwrite my original web.config file.
Than I deleted the new web.config renamed the release.config to web.config and made a few changes so the upgrade process could take place among these changes were the following:
------------------------------------------------------------------------------------------------------------------------------------------
Setting autoupdate to false
copying the connection string from the old web.config file to the new one
copying over any of the Code Sub Directories nested in the tags that weren't commented out
Copied the Machine key and all of its credentials
Then launched the localhost/dotnetnuke/install/install.aspx file
------------------------------------------------------------------------------------------------------------------
Upon going through the above steps I saw that dotnetnuke was updating the installation to 4.8. I went to the portal checked out in the host site details to make sure the upgrade was successful with no critical error messages and it showed I was indeed on 4.8 with no critical errors however their was a couple problems that I thought had to do with the find and replace routine but found them showing up after the upgrade completed.
The problems that crept up weather it was 4.6.2 or 4.8 I was upgrading to were as follows: the links in my text/html module showed one thing but when you went to the site and clicked on source it the paths weren't in sync with one another here is what I mean.
In one of my text/html modules on my home page before the upgrade reveals the following path to an image
src="https://www.dnncreative.com/Portals/_default/Skins/Sub_Page/images/pike.gif" />
If I were to go and click on source on either ie or firefox (it doesn't matter I would get what we would expect the same path.
Now here is the clicher after an upgrade on my local development site my text/html module does not change in regards to our example still reflecting a path starting from the root all the way to the picture file like we see in the path above. However all these links inside the text/html module are broken after the upgrade. Why is this? Well I will give you a snippet as to what is happening and as to why I am looking to see if you have any ideas.
Though the path is the same as the above bold path when I look at it via clicking on edit text/html module on which this broken link is in the link inside the module in editors mode looks perfect and it should as inside the module the path is perfect but when clicking on page source and locating that same picture file
pike.gif this is what path I trace when going to the browser view> source or page source here is the path that show us:
/dotnetnuke/Portals/0//Portals/_default/Skins/Sub_Page/images/pike.gif
notice when going to the browser and clicking on view>source I don't just get a path starting with /Portals as I do in the text/html module itself when I click on edit and press source within this module but I get this /dotnetnuke/Portals/0/ before the path that is actually found inside the module. I am assuming that perhaps the
/dotnetnuke business is generated do to the fact that when I upgraded to a newer version of dotnetnuke I through these upgrade files inside this /dotnetnuke folder. That makes sense even though IIS default home directory is
/dotnetnuke so the relative link would in terms of IIS start with simply
/ not /dotnetnuke Since on my remote development server I have /bvbdev I realize I could change this folder to be bvbdev on my local computer and so intead of getting
/dotnetnuke at the beginning of the path to this picture file I would probably be seeing
/bvbdev which is what I need to be seeing but the unaswered area of the path is the next part after the
/dotnetuke Where is
/Portals/0/ coming from. Following that same path to the end we see
/Portals/_default/Skins/Sub_page/images/pike.gif this last part is the actual path in the text/html module and hence can be altered across the board via the find and replace module mentioned in Lee Sykes Tutorial as I have tested it and found the changes to the path to work awesome within the text/html module but why is it that when I upgrade to another version of dotnetnuke by restoring a production dnn database and files to my localhost and upgrading on the local server do I get that extra
/Portals/0/ in each graphic that shows up within a
text/html module. That is the part that to me is perplexing me right now.
Do you think that this whole problem might stem from reverse testing in other words stem from taking files and a database that was originally installed in one location and simply restoring the database and files to a new location than trying to manipulate an upgrade?
Does it make sense that what I have run into in terms of development environment from using a working production database and files is happening simply because the original installation of the dotnetnuke did not happen for me on a local development platform but rather became a carbon copy of an already working platform.
Could it be that if I were to perform these very same updates on the live site that the live site would run into this same issue regarding problem with the path of the text/html module saying one thing and the source from the web page tacking on extra stuff to the path.
Could it be that the problem I am having with swf banners not appearing at all in firefox after the upgrade would follow the same reasoning as this out of sync problem with paths poitning to graphics or objects inside text/html modules.
Now I have to say that any graphics within a skin package that is whithin the skin folder does not seem to be effected by this interesting path addition situation only seems to be these text/html modules that something gets attached to which has nothing to do with the module at all but rather some where along the lines of the upgrade and by the way this problem occured while I upgraded within the same database and before I even migrated to sql2005.
Another issue I noticed happened to me after upgrade that wasn't true before is this click to activate message started appearing around swf objects with an annoying thin border forcing visitors to click twice sometimes on my solpartmenu horizontal navigational system when the list items that popped down vertically overlapped the boundary of this swf banner. Visitors when their mouse was on a menu item inside the bounds of this graphic would be forced to click twice once to activate the flash panner they were overlapping and again to actually go to the area the menu item reflected. This double click routine however did not occur on swf files until the upgrade so I wonder if this also is apar for the course or somehow is linked to a few of the other funny things going on in my development site after upgrade.
Thing of it is I have to upgrade because I have to move my live site to sql2005 server as my host company won't be supporting sql 2000 for ever and as it is with dnn 4.5.1 which is the current version of the live site in berkshires.org when that is migrated to sql2005 without the upgrade to either 4.6.2 or 4.8 it takes at minimum 1 minute to get to each page and a maximum maybe close to 3 minutes averaging about a little over a minute a click. Once upgraded to 4.8 and than restoring the upgraded database to sql2005 this problem goes away however these other ones cropped up so if you guys have any ideas on what the issue could be in regards to this or weather this would not be an issue when upgrading a live site whose original installation occured let me know. Actually my guess is the original installation was on someone elses development environment a site which I took over and am trying to learn all I can about its inner workings. Thank you for your help in this matter.
Regards,
Bo