Go Back   Pligg CMS Forum > Pligg Help > Installation and Upgrade Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-30-2007, 04:54 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 169
Thanks: 56
Thanked 5 Times in 5 Posts
Upgrading to 9.5 disables categories

Hi,

I just attempted an upgrade to 9.5

It seems to have disabled my categories. All my categories have disappeared and I cannot create new categories. Here was the sequence of steps that I followed -


1. download the latest build

2. Rename settings.php.default to settings.php. Rename /libs/dbconnect.php.default to /libs/dbconnect.php.

3. change values in settings.php and /libs/dbconnect.php for your site

4. Upload the files to the web root directory on your server; overwrite existing files.

5. http://localhost/install/upgrade.php

6. Delete your /install folder.


I had a prior issue in the past where I was trying to create a development and had Pligg 9.1 rev 9xxx running and I downloaded Pligg 9.1 rev7xxx, and tried to connect to the DB and I experienced the same issue; the categories disappeared. This made sense because the DB was associated with an older version.

At that time, I resolved the issue by downloading a more recent build of Pligg than the one that I had, and did the upgrade from the install folder. It fixed the categories.

However, it is not working now; anyone have any suggestions?

Thx
-A
Reply With Quote
  #2 (permalink)  
Old 04-30-2007, 05:25 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
You don't have to do step 2. You should technically just back up your files but let Pligg use the new config and settings files. The new dbconnect file has a .default extension on it so it won't overwrite your existing one.

Also, we need a link to your site if you have one. There's not much we can do without it.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #3 (permalink)  
Old 04-30-2007, 06:40 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 169
Thanks: 56
Thanked 5 Times in 5 Posts
I performed the upgrade in the devel environment. I backup up my DB from my production env (proddb) and restored to a dev DB (devdb).


Main URL: http://www.uratestuff.com (Uses proddb, Pligg v9.1 build 9xx)

Last edited by aaronpais; 05-18-2007 at 02:49 PM..
Reply With Quote
  #4 (permalink)  
Old 04-30-2007, 08:09 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
I'm not sure why this would break it but in templates/yget/sidebar_modules/categories.tpl try removing this code
Code:
start=1
If that fixes the sidebar then also remove the same code in templates/yget/admin_templates/category_manager.tpl
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #5 (permalink)  
Old 04-30-2007, 10:04 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 169
Thanks: 56
Thanked 5 Times in 5 Posts
Didn't work.

In the past, I was able to upgrade my version (I think it is Pligg 9.1 maybe rev 900) to Pligg 9.1 rev974

I will attempt an upgrade to 9.1 rev974 and then to 9.5

Will report back with my results when complete...
Reply With Quote
  #6 (permalink)  
Old 05-01-2007, 01:45 AM
Casual Pligger
 
Join Date: Jul 2006
Posts: 34
Thanks: 1
Thanked 5 Times in 3 Posts
This seems to have happened to me, too. I get errors like this everywhere a page looks for categories:
Code:
Warning: Invalid argument supplied for foreach() in /home/myhost/public_html/mysite/news/libs/html1.php on line 14

Warning: Invalid argument supplied for foreach() in /home/myhost/public_html/mysite/news/libs/html1.php on line 164
Those line numbers refer to line like this:
html1.php line# 14: foreach($the_cats as $cat){

Also, during the upgrade process, it was looking for the cache folder like this:
/home/myhost/public_html/mysite/newscache
(my site is in /home/myhost/public_html/mysite/news )
and giving an error because it couldn't find that file. I tried changing settings.php from $my_pligg_base = '/news'; to $my_pligg_base = '/news/'; but it kept reverting as if the upgrade.php was overwriting it back to $my_pligg_base = '/news'; (without the trailing slash). My only way to fix this was to actually create a folder at mysite.com/newscache and CHMOD it to 777 and then run upgrade.php

Last edited by doctorgirlfriend; 05-01-2007 at 01:52 AM..
Reply With Quote
  #7 (permalink)  
Old 05-01-2007, 03:38 AM
New Pligger
 
Join Date: Feb 2007
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
aaronpais ,

do the following

mysql> INSERT INTO pligg_categories VALUES (0, 'en', 0, 0, 'all', 'all', 0, 0, 2, 0, '000000');

mysql> UPDATE pligg_categories SET category__auto_id = 0 WHERE category_name = 'all' LIMIT 1;

mysql> commit;

Easier still if you use phpMyAdmin. Browse to your categories table and change the attributes of 'All' category. If you don't find it, add it and give the following values. 0, 'en', 0, 0, 'all', 'all', 0, 0, 2, 0, '000000'

I guess everything should work fine after this.
Reply With Quote
  #8 (permalink)  
Old 05-01-2007, 05:34 AM
Casual Pligger
 
Join Date: Jul 2006
Posts: 34
Thanks: 1
Thanked 5 Times in 3 Posts
I've been talking about this in another thread, too, it's strange because while trying to fix it I dropped the whole categories table and redid the sql query with the 'all' category set to zero, but it inserted it as 9 because that was the Next Autoindex value.
Editing the value manually to zero still didn't work for some reason. I had to drop the table again, and do this:
ALTER TABLE pligg2_categories AUTO_INCREMENT = 0
and THEN run my SQL queries to recreate my categories from a backed up sql dump I had, and it inserted everything correctly and now I can revert to Pligg 9.1 at least.
Pligg 9.5 upgrade still doesn't work, it throws all those errors all over the page everywhere it looks for a category value. I wonder if it has something to do with the part in html1.php where the comments say that $the_cats is defined in smartyvariables.php, but there's no mention of $the_cats in my smartyvariables.php file.

Last edited by doctorgirlfriend; 05-01-2007 at 02:57 PM..
Reply With Quote
  #9 (permalink)  
Old 05-01-2007, 06:42 AM
New Pligger
 
Join Date: Mar 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
I experienced problems upgrading also.

Categories and comments weren't being pulled from the db. I reverted back to 9.1 and now it's screwed up as well.

This upgrade doesn't seem too solid.
Reply With Quote
  #10 (permalink)  
Old 05-01-2007, 08:18 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
We always test the upgrade before a new release and I never ran into a single problem myself. You guys can look in upgrade.php and see what's actually going on. It;s nothing that will damage your site to where you can't use it.

The Pligg 9.5 code was freely available on source forge for anyone to test before the official release. As open source code, there's just as much responsibility for the entire community to make sure the code will work as it is the devs. Just because someone doesn't have the title "dev" doesn't mean they can't participate.
__________________
I accept donations for my time helping users like you on the forum and IRC.

Last edited by kbeeveer46; 05-01-2007 at 08:29 AM..
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
[MOD] Categories in header like Digg (useful if you have subcategories) dollars5 Modification Tutorials 139 10-19-2008 10:58 AM
Categories and Sub Categories Toocool Customization Assistance 2 09-14-2008 05:00 PM
Sidebar Categories Enhancement AddOn AnAlienHolakres3 Modification Tutorials 65 08-30-2008 11:48 PM
No Categories After File Backup Restore gen3ric General Help 2 08-22-2008 03:38 PM
How to make sub categories? knut General Help 9 02-23-2008 06:57 AM


Search Engine Friendly URLs by vBSEO 3.2.0