1
maxpt
[Tutorial] How to downgrade 2.2.3/4 to 2.0.14
  • 2006/7/12 10:49

  • maxpt

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/9/4 1


Hi

I'm using 2.2 series a long long time, since 2.1.
Now I want more, and I downgrade to 2.0.
Lots of tries and tries, and always some bugs, and bugs.

But I done the downgrade correctly now



Tutorial:

** ATENTION THIS WILL DELETE ALL YOUR CUSTOM BLOCKS **
(11,12,13)

(you may save all your custom blocks in a txt file, to paste later)

1) ** BACKUP MySQL AND ALL FILES**
(be sure that everything are backup first)

2) Pickup the downgrade.php script there.

3) Copy the script to root of website

4) Login as administrator, and change the language to english, change the template to default, set debug mode to on

5) Disable(not uninstall) all modules (else system)

6) Remove all templates (else default)

7) Overwrite all of 2.0.14 files(else mainfile.php), to your site, all this folders

htdocs/*.* and the folder upgrade, all to root.
xoops.md5 and xoops_md5.php to root.

(Be sure that all files are upload correctly go to http://www.mysite.com/xoops_md5.php)

8) go to script to downgrade 2.2 to 2.0.13
http://www.mysite.com/downgrade.php

Click on the the bottons (1º, the 2º and the them the 3º)

9) Give access 777 to mainfile.php
Go to script to upgrade 2.0.13 to 2.0.14 (like http://www.mysite.com/upgrade)
upgrade your site.

10) delete the downgrade.php, xoops.md5, xoops_md5.php files and the upgrade folder.

11, 12 and 13 are in MySQL (eg. use phpMyAdmin)

11) Delete all records in ****_tplfile table

12) Delete all records in ****_tplsource table

13) Certify that ****_tplset table only have one record(default template)

14) Copy all new versions of the modules that have, some modules require to have new files to run properly in 2.0
(Like newsbb, need to copy in Framework the xoops22 folder)

15) Go to admin http://www.mysite.com/admin.php
Update first the system module, and next, update all other modules.

16) Enable all other modules

17) Go to Administration Groups, and give permition to all groups to access all blocks and modules (else if you don't want to)

18) Add blocks

19) Clone template, and you may set you custom blocks

20) Now the (down) upgrade is completed, add all others things you want in this stage (theme,etc..).


Comments please..

Edit:12/07/2006 20GMT+1*/

2
Chappy
Re: [Tutorial] How to downgrade 2.2.3/4 to 2.0.14
  • 2006/7/12 16:23

  • Chappy

  • Friend of XOOPS

  • Posts: 456

  • Since: 2002/12/14


This has been sorely lacking for some time now.

Thanks!
MMM...It tastes like chicken! ...

3
gestroud
Re: [Tutorial] How to downgrade 2.2.3/4 to 2.0.14
  • 2006/7/12 17:15

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


If you overwrite all of the files as described in step #7, aren't you overwriting your mainfile.php?

4
davidl2
Re: [Tutorial] How to downgrade 2.2.3/4 to 2.0.14
  • 2006/7/12 17:43

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


good point

5
maxpt
Re: [Tutorial] How to downgrade 2.2.3/4 to 2.0.14
  • 2006/7/12 18:36

  • maxpt

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/9/4 1


Quote:

gestroud wrote:
If you overwrite all of the files as described in step #7, aren't you overwriting your mainfile.php?


yes, you all right.I forget that..

I update the tutorial.

Thanks.

6
maxpt
Re: [Tutorial] How to downgrade 2.2.3/4 to 2.0.14
  • 2006/7/13 19:10

  • maxpt

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/9/4 1


** DON'T USE THIS TUTORIAL ***


BECAUSE DOWNGRADE.PHP HAVE LOT OF BUGS!

And I see now that this bugs are in blocks, in config table and other tables..


Notes:
2.0.14 are more slow that 2.2.4

2.0.14 are very very bad in some things like add blocks, forms.

2.0.14 have only some things better, backend.php convert to utf-8, in 2.2.4 not!!, more configurarable.


I have return to the backup of 2.2.4.

7
libervis
Re: [Tutorial] How to downgrade 2.2.3/4 to 2.0.14
  • 2006/7/16 12:37

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Eh this already got my eyebrow raised, until the last post.

Sticking with 2.2.4 here too.. even if in stitches.

And waiting with hope for 2.4!
XOOPS Site: Libervis.com :: For a Free World

-- Libervis Network --

8
davidl2
Re: [Tutorial] How to downgrade 2.2.3/4 to 2.0.14
  • 2006/7/16 19:57

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Quote:

maxpt wrote:
2.0.14 are more slow that 2.2.4


I think you'll find that this is probably the fastest release for the last 3 years..!

9
mactoeknee
Re: [Tutorial] How to downgrade 2.2.3/4 to 2.0.14
  • 2006/7/24 0:54

  • mactoeknee

  • Just popping in

  • Posts: 75

  • Since: 2005/2/26


Disclaimer-- I am a relative noob. I am not a programmer, more of a hack.

Thanks for this tutorial. I finally did it this afternoon. I have been struggling with getting newbb or cbb working on 2.2.3 on a community site I am building: uninstall, reinstall, but constant problems. So today I tried updating it to 2.2.4, and all hell broke loose. PHP errors (about 50) on each page. Mostly saying "Only variables should be assigned by reference in...{some file} on line {some #}" - Very aggravating. So I decided to downgrade.

The only omission I could find in your tutorial is remembering to set mainfile.php's permissions back to restricted.

I was a little scared when I saw the way admin.php looked after the downgrade-- just a little text, no colors. But everything started to take shape after a few minutes of putting the blocks back together. I definitely like the way 2.2.x does blocks administration a LOT better than this 2.0.x way.

I encountered a few errors in this downgrade that are confusing--

--most of the blocks are duplicated. In fact, I only have a couple modules installed: piCal, news, and wf-downloads. The piCal blocks are not duplicated (which I think is because they don't use the same template system, right?)

Here's the list you see when you go into Edit Groups, the "Block Access Rights" for "left" shows:
Big Story (ID15
Big Story (ID58
Events after %(piCal) (ID26
Events after %(piCal) (ID69
Events newly posted (piCal) (ID27
Events newly posted (piCal) (ID70
Events on %(piCal) (ID24
Events on %(piCal) (ID67
Login (ID2
Login (ID46
Main Menu (ID49
Main Menu (ID5
MiniCalendarEx (piCal) (ID28
Moderate News (ID17
Moderate News (ID61
Monthly calendar (piCal) (ID22)
Monthly calendar (piCal) (ID65
Navigate thru topics (ID18
Navigate thru topics (ID62
New 
Members (ID53
New 
Members (ID9
News Topics (ID14
News Topics (ID57
Notification Options (ID11
Random news (ID19
Random news (ID63
Recent Comments (ID10
Recent Comments (ID54
Recent WF-Downloads (ID29
Recent WF-Downloads (ID72
Search (ID3
Search (ID47
Site Info (ID50
Site Info (ID6
Submit Your News! (ID42
Submit Your News! (ID75
Themes (ID12
Themes (ID56
Today's events (piCal) (ID: 23) 
Today'
s events (piCal) (ID66
Top News (ID59
Top Posters (ID52
Top Posters (ID8
Top WF-Downloads (ID30
Top WF-Downloads (ID73
User Menu (ID1
User Menu (ID45)
Waiting Contents (ID4
Waiting Contents (ID48
Who's Online (ID: 51) 
Who'
s Online (ID7)

(I sorted them alphabetically so it's easier to see which ones are duplicated.)

The site is http://comopark.org
I still get one PHP error now, which doesn't concern me much:
"Notice: Only variables should be assigned by reference in /home/comoorg/public_html/modules/piCal/blocks/pical_coming_schedule.php on line 46"
The only other main problem is that it shows two {edited} User Menus when logged in as Admin, but not for guests. Hmmm.

Anyone? And again, thanks for the tutorial.

10
magscene
Re: [Tutorial] How to downgrade 2.2.3/4 to 2.0.14
  • 2006/8/21 22:48

  • magscene

  • Just popping in

  • Posts: 2

  • Since: 2006/8/21


I've tried this method, but when I try to do step 8 (access the downgrade.php file), it is just blank. I tried to downgrade from 2.2.3a(Final) to both 2.0.13.2 and 2.0.14, and it was blank each time. My error log said the script failed to open. Does anyone know what the problem might be?

Login

Who's Online

310 user(s) are online (235 user(s) are browsing Support Forums)


Members: 0


Guests: 310


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits