Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
TestingSomething Posted November 12, 2006 Posted November 12, 2006 I am just warning any upgraders to do some checks after you upgrade where you don't end up in the mess I have been in. I FINALLY fixed all of my problems after hours and hours and hours of VERY tedious things in the ACP, phpmyadmin, comparing between both of my sites' ACPs, etc.1. The html logic tool- It missed many many many changes in my templates. And it also messed up templates by stripping $s inside if statements in some templates. This happened on both of my sites.If you DO brave the html logic tool, afterward do the following: Search for ipb.script_url, ipb.lang, ipb.vars, and ipb.input. Check the box to also search master templates. DO NOT DO A SEARCH AND REPLACE, as i will explain why later. Go into your DB in phpmyadmin. Once in your DB, click "Search" search in ipb_templates for each template bit which showed up on the list and edit the ones with set_id of 1. Change the "ipb." to "$this->ipsclass->". Then everything is fine. (I guess, I wish IPS would tell me if there are any other ipb. things to change, becuase the tool did NOT fix them on my site. It could be becuase they were hidden in duplicate master template bits, which I shall discuss in my next point on here though).2. The search and replace tool- If you search and replace, instead of it updating the master template bit, it DUPLICATES it. That is why I said earlier I had to go into the DB and do it manually to the bits which had not been properly changed. The HTML logic tool ALSO caused duplicates. Guess how I knew? When getting rid of my duplicates in the DB, I noticed that for each set of duplicates 1 had the ipb. format and 1 had the new format! but anyway if you just delete the one with the lowest suid, you will keep the changed ones.I indeed had manually caused SOME duplicates in the past, but trust me, these tools cuased 90% of these. Search in skin_subscriptions, it may have worked on your site, but even THOSE were duplicated on mine and I NEVER messed with those. Period. You wouldnt believe how many template bits I got rid of. It took me like 5 hours of going through them. And all of the bad ones had that ipb. format in it. ALSO I EVEN WITNESSED the search and replace causing it. I looked at a template, there was only 1 instance of it in my DB. I then did search and replace for it. I then looked in my DB and there were 2 of them!!!!!Another html logic change which didnt work right for me was the <if></if><else></else> changing to <if> <else /> </if>, I saw in quite a few templates it kept it the old way after using the html logic replacement tool.So long story short, I spent at least 6 hours going through the DB in EVERY single skin group, sorting by func_name, finding the duplicates, deleting the oldest of the duplicates. I remember telling bfarber a few days ago my main skin had something like 2300 template bits, this believe it or not cut it all the way down to 1,228. :) I also removed some old mods though, which probably accounted for at least 200 of those. Also the skin difference tool kept freezing a few days ago, and now it works fine. So these duplicates were causing the freeze.Anyway this may NOT happen to you, but I am simply warning you to check after you run these tools, where you don't end up in this mess like I did. Gallery and Blog also didn't work because of OLD template bits it didnt delete (whichi theorized and people laughed at me and now bfarber said on IPS Beyond that it was indeed what may have cuased issues, as I knew all along becuase mine got fixed when I removed the old template bits which shouldnt be there anymore).All of this happened on my MAIN site. On my other, newer site (which went from 2.1.7 to 2.2 RC2 to 2.2 RC3, wheras my main one skipped RC2 originally) it does NOT cause duplicates by running the html logic tool, as far as I can tell. HOWEVER it DOES cause problems using the search and replace tool. And in fact the html logic tool causes problems too, but it isn't that it causes duplicates, it is that it causes that $ problem which people laughed at me about, but is happening to other people now too.
theclub Posted November 12, 2006 Posted November 12, 2006 Why are you posting this? No-one else will have any of these problems, you updated a live board that was obviously a mess. :whistle:
TestingSomething Posted November 12, 2006 Posted November 12, 2006 Better safe than sorry and IPS hasn't warned anything, so trying to save some people. I am not the only one who had the issue where the $s are being stripped from template bits. And it happened on both of my sites, including the one which I only started 2 months ago.Some of this could turn out to be bugs on my site unrelated to 2.2 or these tools. But some of them keep happening repeatedly. Like I said, I even tested it and saw that search and replace caused a dulicate template bit. I think that happened on both sites, plus it did something weird, it made another skin say its template bit was modified when really it was using the master template bit I had just fixed.IPS needs to allow 1 rating of each member per x days without it removing the other where I can keep rating you a 1 star. lol
Spack Posted November 12, 2006 Posted November 12, 2006 IPS Have warned you not to use it on a live board.
Guest Posted November 12, 2006 Posted November 12, 2006 anyone with html logic will have the same issues, bashers is just giving a heads up to those that will face the same problems when they upgrade.
TestingSomething Posted November 12, 2006 Posted November 12, 2006 Exactly. Why would I be complaining if I already fixed all of my problems? I was just posting this in case it happens to someone else. A lot of it didn't happen on my other site, so I am not sure what will happen. I just know they are behaving weirdly on my main site, and then that $ issue on both sites. I won't need the tools ever again anyway, I wouldn't think (unless there are other ipb. variables I dont know about which didnt get converted. So hopefully everything is fine as far as that goes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.