WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

upgrade problem

Version:
printPrint


Page: 1 2

upgrade problem
fresco
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2003
Total Topics: 22
Total Posts: 101
Posted 10/12/04 - 12:49 PM:
quote post
#16
tried again to upgrade from 2.56 to 3.00

error (admin index.php debug)

I can not see the admin index - page source shows the frameset but nothing on the screen except debug info


Performing query: SELECT name,content FROM wsnlinks_settings WHERE id>0 ORDER BY id ASC ;


Number of rows is 183 for Resource id #21


Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site1/fst/var/www/html/link_directory_new/classes/database.ph p:157) in /home/virtual/site1/fst/var/www/html/link_directory_new/prestart.php on line 99

Warning: mysql_list_fields(): Unable to save MySQL query result in /home/virtual/site1/fst/var/www/html/link_directory_new/classes/database.ph p on line 19

Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /home/virtual/site1/fst/var/www/html/link_directory_new/classes/database.ph p on line 21

Performing query: SELECT id,title,caneditown,caneditall,canvote,isadmin,canpost,canemail,validatecat s,validatecomments,validatelinks,validateedits,cansubmitlinks,cansubmitcate gories,cansubmitcomments,caneditownlinks,caneditowncategories,caneditowncom ments,caneditownprofile,caneditalllinks,caneditallcategories,caneditallcomm ents,caneditallprofiles,candownloadfiles,canupload,canviewip,limitlinks,can emailmembers,canusehtml,limitlinksdaily,canalias,cancopy,candeleteown,cande leteall,candofulledit,candeletecategories,candeletecomments,candeleteowncat egories,candeleteowncomments,candeletemembers,candeleteownmembers,canaliasc ategories,canviewpages,caneditvotes FROM wsnlinks_membergroups WHERE id>0 ;


Performing query: SELECT id,name,links,comments,time,usergroup,password,ip,totalhits,totalhitsin,ema il,validated,template,language,lastattempt,allowemail,signature,avatarname, stylesheet,allowuseremail,albumid,failedattempts,totalbytes,images,funds,no tifyoflinks,lastvisit FROM wsnlinks_members WHERE id=1 AND validated=1 ;



Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site1/fst/var/www/html/link_directory_new/classes/database.ph p:157) in /home/virtual/site1/fst/var/www/html/link_directory_new/admin/index.php on line 5

Performing query: SELECT id,title,url,description,rating,votes,recip,validated,recipurl,catid,sumofv otes,email,time,hits,numcomments,hide,ownerid,hitsin,voterips,voterids,keyw ords,lastedit,type,filename,filetitle,notify,suspect,downloads,pendingedit, funds,suspended,recipwith,alias,expire,ip,inalbum,typeorder,hitsinips,hitso utips,testcheck,lastcomment,related,inhidden,viewers,threadviewers,hitsinte mp,hitsouttemp FROM wsnlinks_links WHERE validated=0 ORDER BY id ASC ;


Number of rows is 7 for Resource id #34

Performing query: SELECT id,pendingedit FROM wsnlinks_links WHERE pendingedit != '' ORDER BY id ASC ;


Number of rows is 0 for Resource id #35

Performing query: SELECT id,name,parent,validated,description,time,parentnames,parentids,numlinks,hi de,lastlinktime,custom,moderators,lastedit,headerinfo,related,numsub,type,p ermissions,subscribers,subscriber,mixtypes,isalbum,orderlinks,totalcomments ,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,linkcols FROM wsnlinks_categories WHERE validated=0 ORDER BY id ASC ;


Number of rows is 10 for Resource id #36

Performing query: SELECT id,name,parent,validated,description,time,parentnames,parentids,numlinks,hi de,lastlinktime,custom,moderators,lastedit,headerinfo,related,numsub,type,p ermissions,subscribers,subscriber,mixtypes,isalbum,orderlinks,totalcomments ,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,linkcols FROM wsnlinks_categories WHERE id=4 ;


Performing query: SELECT id,name,parent,validated,description,time,parentnames,parentids,numlinks,hi de,lastlinktime,custom,moderators,lastedit,headerinfo,related,numsub,type,p ermissions,subscribers,subscriber,mixtypes,isalbum,orderlinks,totalcomments ,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,linkcols FROM wsnlinks_categories WHERE id=16 ;


Performing query: SELECT id,name,parent,validated,description,time,parentnames,parentids,numlinks,hi de,lastlinktime,custom,moderators,lastedit,headerinfo,related,numsub,type,p ermissions,subscribers,subscriber,mixtypes,isalbum,orderlinks,totalcomments ,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,linkcols FROM wsnlinks_categories WHERE id=19 ;


Performing query: SELECT id,name,parent,validated,description,time,parentnames,parentids,numlinks,hi de,lastlinktime,custom,moderators,lastedit,headerinfo,related,numsub,type,p ermissions,subscribers,subscriber,mixtypes,isalbum,orderlinks,totalcomments ,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,linkcols FROM wsnlinks_categories WHERE id=41 ;


Performing query: SELECT id,name,parent,validated,description,time,parentnames,parentids,numlinks,hi de,lastlinktime,custom,moderators,lastedit,headerinfo,related,numsub,type,p ermissions,subscribers,subscriber,mixtypes,isalbum,orderlinks,totalcomments ,ulsearchmax,ulsearchquery,ulsearchadult,alias,catcols,linkcols FROM wsnlinks_categories WHERE id=3 ;


Performing query: SELECT id,linkid,posterid,postername,message,time,linkname,validated,ip,ownerid,la stedit,type,approved,votes,hide,typeorder,lasteditby FROM wsnlinks_comments WHERE validated=0 ORDER BY id DESC ;


Number of rows is 0 for Resource id #42

Performing query: DELETE FROM wsnlinks_members WHERE validated=0 AND time<1097267910;


Performing query: SELECT id,name,links,comments,time,usergroup,password,ip,totalhits,totalhitsin,ema il,validated,template,language,lastattempt,allowemail,signature,avatarname, stylesheet,allowuseremail,albumid,failedattempts,totalbytes,images,funds,no tifyoflinks,lastvisit FROM wsnlinks_members WHERE validated=0 ORDER BY id DESC ;


Number of rows is 1 for Resource id #43

Performing query: SELECT id FROM wsnlinks_categories WHERE validated=1 AND parent=0 AND hide=0 ;


Number of rows is 24 for Resource id #48

Performing query: SELECT id FROM wsnlinks_links WHERE validated=0 ;


Number of rows is 7 for Resource id #51

Performing query: SELECT id FROM wsnlinks_links WHERE pendingedit != '' ;


Number of rows is 0 for Resource id #52

Performing query: SELECT id FROM wsnlinks_categories WHERE validated=0 ;


Number of rows is 10 for Resource id #53

Performing query: SELECT id FROM wsnlinks_comments WHERE validated=0 ;


Number of rows is 0 for Resource id #54

Performing query: SELECT id FROM wsnlinks_members WHERE validated=0 ;


Number of rows is 1 for Resource id #55

20 total queries
This page was created in 1.5370979309082 seconds
closing database connection


Edited by fresco on 10/12/04 - 02:56 PM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 10/12/04 - 05:28 PM:
quote post
#17
fresco wrote:
tried again to upgrade from 2.56 to 3.00

I don't know why you would be upgrading to 3.00, but it's always much wiser to upgrade to the current version instead of some arbitrary 10 month old outdated version (especially a .00 that's likely to be buggy).

I upgraded from 2.56B to 3.12B just a few days ago. 2.56 to 3.12 is no different.

Login problems would probably be a matter of your directory url leading to the old site, I would think. Also if you have a non-default cookie path set you wouldn't be able to login outside of that path (but I'm not sure if that option existed in 2.56).

As for not being able to view categories, that is normal, you have to update the usergroup permissions when coming from 2.56.

Edited by Paul on 10/12/04 - 06:19 PM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
fresco
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2003
Total Topics: 22
Total Posts: 101
Posted 10/12/04 - 06:35 PM:
quote post
#18
I fixed categories, they show now.

The reason I upgraded to 300 is because I was running 2.55 and nothing would work (upgrade will not go further than creating tables in database and then telling that the database do not exist! (see first second post)

So I upgraded to 2.56 and it went just fine. Then i tried to upgrade to 312 and it failed for the same reason (see posts above) so I went back
to last successful upgrade 2.56 thinking that perhaps it will work if I follow each release and it will upgrade to 300 but with the errors (posted above) but at least it did not stop like 312.

I am working in the blind (all other upgrades up to now) were taking me 15 min tops and even that due to slow modem. Now I am on my 19th hour strait and on DSL....

So if I can have 300 running without errors - I am one more step closer to 312 (the one I need)

Would you suggest to ignore the errors and try to go to 312 right now?

I have 10 recip submissions in a que on live site and my last clean backup is day and a half old. So I am in a bind and a little bit frastrated.

Can you help.

What is that d.mn line 19 and 21 is looking for!?

also here is what the page source on index.php in admin shows - nothing comes up on the screen except the debug info:

page source:


Warning: mysql_list_fields(): Unable to save MySQL query result in /home/virtual/site1/fst/var/www/html/link_directory_new/classes/ database.php on line 19

Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /home/virtual/site1/fst/var/www/html/link_directory_new/classes/ database.php on line 21



WSN Links: Administration





The admin panel requires that your browser support frames, since this makes the navigation quicker and easier to use. (Of course, nothing visible to regular visitors ever uses frames.)





Edited by fresco on 10/12/04 - 06:38 PM
fresco
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2003
Total Topics: 22
Total Posts: 101
Posted 10/13/04 - 05:26 AM:
quote post
#19
well 2.56 > 300 errors but I gave up and tried to ignore errors and upgrade 300 > 303 and it worked 303 > 305 no errors, just to be on a safe side 305 > 310 and 310 > 312 (10/12/04 release)

Great now I am running a copy of my live directory in a new folder with new database and can adopt my templates without any downtime for the live site.

I suppose here is updated steps for "safe upgrade" or a SAFE SAFE upgrade for the sites that are way behind on upgrades.

1. Back up database

2. Create new folder in on your site (if your link directory php files are in "links" - folder make "links_update" folder.

3. copy all files in your links directory to "links_update" directory (see step 2) CHMOD templates and Lang files to 666.

4. create new database

5. Upload via phpMyAdmin os similar your Backup SQL file into the new database. Edit Settings table to reflect the new URL path to your "links_upgrade" and root path to your atachments directory.

Now you have a copy of your live directory running separately.

5. Upgrade it following Paul's instructions in ReadMe.
Edit tepmlates to fit your site.
(Some times or if your directory currently running version 2.xx you may need to go step-by-step to upgrade - upgrade release by release untill you are over 305. upgrading from 2.55 might give you errors untill 303 just keep upgrading It did not work for me to go directly from 2.55/2.56 to 3.12)

6. Upgrade your live directory and move edited templates into.

That is it.






Edited by fresco on 10/13/04 - 05:31 AM
fresco
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2003
Total Topics: 22
Total Posts: 101
Posted 10/13/04 - 05:33 AM:
quote post
#20
hi Paul,

Looks like I am over the hump.

Back to my feature suggestion - sponsored member link promotion. any luck for me there?
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 6014
Posted 10/13/04 - 08:20 AM:
quote post
#21
Incrimental upgrades are pointless. It's a generalized upgrade script, all you're doing is using an older version (perhaps more buggy) of it when you upgrade to older versions. The upgrade script does not do any per-version steps. Just re-running the 3.12 upgrade would probably have done the same thing you did by all those incriments.

As for your feature suggestion, it is on the 'might be implimented' list as you should be able to see in the thread.

Edited by Paul on 10/13/04 - 08:25 AM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
fresco
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2003
Total Topics: 22
Total Posts: 101
Posted 10/13/04 - 08:40 AM:
quote post
#22
well, I agree - incremental upgrades are pointless, however I run 312 upgrade about 15 times and it did not work. Perhaps the reason being, Safe Safe upgrade - cookies, paths and all that stuff geting mixed with two databases.

anyway, thanks for the great system
Search thread for
Download thread as

Page: 1 2



You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.