PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Installation & Upgrades

Classifieds Installation & Upgrades If you're having install or upgrade problems, post here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old December 29th, 2004, 02:56 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 46
Huge Problem! Need A Quick Fix!

When updating my usergroups (from my phpBB forum software) in the CC-classifieds admin panel, the database crashed! Now there are no usergroup info at all, including the admin part, so I have no access. The same goes for all the users.

WHAT TO DO? This is a SERIOUS bug!! I have a lot of users on my site, and currently nothing works...
lygren is offline   Reply With Quote
Old December 29th, 2004, 07:52 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,692
You will need to add one with a groupid of 2 for you to get in as admin in phpmyadmin

In your phpbb2.php file replace lines 433-436 with these

$query[] = "INSERT INTO {$pp_db_prefix}usergroups VALUES ('1','Anonymous','','','','','',0,0,0,0,0,0)";
$query[] = "INSERT INTO {$pp_db_prefix}usergroups VALUES ('2','Admin',1,1,1,'','',1,1,1,1,0,0)";
$query[] = "INSERT INTO {$pp_db_prefix}usergroups VALUES ('3','Regular Users','',1,1,'','',1,1,0,1,0,0)";
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 29th, 2004, 10:43 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 46
That didn't help much... Do I have to create these values in the database itself?
lygren is offline   Reply With Quote
Old December 29th, 2004, 11:01 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 46
Okey, I inserted the values manually into the database and ran a new "usergroup" update, but again I got the same error and all the content of this table was erased:

MySQL error reported!

Script: adm-userg

Query: REPLACE INTO pp_usergroups (groupid,groupname,modaccess,cpaccess,uploads,comments,diskspace,uploadsize,editpho,editposts) VALUES(910,'FFAK (Foren. For Alkohol. Kinosjefer)','0','0','0','0','0','0','1','1')

Result: Unknown column 'diskspace' in 'field list'

Database handle: Resource id #7

I "fixed" it by adding the diskspace, but then I had to manually insert the "admin" user again... This is kinda "non-user-friendly" I would say....?
lygren is offline   Reply With Quote
Old December 29th, 2004, 12:23 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,692
Lets make sure you follow here with the right code

copy over this entire import_usergroup and init_user group functions over the old ones.

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; January 1st, 2005 at 10:00 AM.
Chuck S is offline   Reply With Quote
Old December 29th, 2004, 12:36 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 46
Updated, same error. Have you taken into consideration the "diskspace" field, which is not included in my (or anyone elses I would believe) database, but nevertheless is still being "copied"?
lygren is offline   Reply With Quote
Old December 29th, 2004, 12:38 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 46
My database table-structure is currently:

Felt Type Attributter Null Standard Ekstra Handling
groupid int(5) Nei auto_increment
groupname varchar(50) Nei
cpaccess smallint(3) Nei 0
uploads smallint(3) Nei 1
comments smallint(3) Nei 1
uploadsize int(10) Ja NULL
editpho int(3) Nei 1
editposts int(3) Nei 1
modaccess smallint(3) Nei 0
reqmod int(3) Nei 0
highlight int(3) Nei 0
bold int(3) Nei 0
italic int(3) Nei 0
diskspace varchar(13) Nei 0
Merk alle / Fjern merking Med avkrysset:
lygren is offline   Reply With Quote
Old December 29th, 2004, 01:25 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,692
There is no diskspace in the classifieds program.

If you have diskspace in your usergroups table it does not belong there.

Thats a photopost feature
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 29th, 2004, 01:40 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 46
If I remove it, I get the above error-message. I have never installed photopost, only Photopost classified
lygren is offline   Reply With Quote
Old December 29th, 2004, 02:14 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,692
Upload the Classifieds 2.01 distribution and make the noted changes here in this thread
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 30th, 2004, 12:13 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 46
Now I'm getting real tired of this!

I have upgradet to the 2.01, removed the "diskspace" row and emptied the table. I have also edited to phpbb2.php file as instructed. I have to add "Admin" as to get access at all. When I update, the samme error appears;


MySQL error reported!

Script: adm-userg

Query: REPLACE INTO pp_usergroups (groupid,groupname,modaccess,cpaccess,uploads,comments,diskspace,uploadsize,editpho,editposts) VALUES(910,'FFAK (Foren. For Alkohol. Kinosjefer)','0','0','0','0','0','0','1','1')

Result: Unknown column 'diskspace' in 'field list'

Database handle: Resource id #7

Why does this "diskspace" appear?? Something has to be wrong here? I have never downloaded the Photopost....

Now I have to manually add the "diskspace", manually add "Admin" as to get access at all, and when the usergroups are updated, I have to add "Admin", "Anonymous" and the last one manually, as they are deleted when updating...
lygren is offline   Reply With Quote
Old January 1st, 2005, 10:03 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,692
Your adm-userg.php file called the import_usergroups function and I posted a proper one for you to fix your phpbb2.php file with

I have modified the one above to totally drop the usergroups table and recreate things so this should work as somehow you have an incorrect usergroups table.

I beleive I found your issue you have not ran the proper upgrade scripts as diskspace was dropped when you run the upgrade18.php upgrade script.

I suggest if this was indeed an upgrade you follow the upgrade instructions
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
[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
Problem after trying to post comment with quick reply(NOT A BUG) bsousa Photopost Pro Bug Reports 7 October 15th, 2005 09:35 AM
Laston Table is huge, can i empty it? rcsmith Photopost Pro Bug Reports 5 October 14th, 2005 02:14 PM
Showfull popup bug (quick-fix) Axe Photopost Pro Bug Reports 3 October 8th, 2005 06:44 PM
Fix Login Problem on PP Vman Photopost Pro How Do I...? 0 April 21st, 2005 07:55 PM


All times are GMT -5. The time now is 12:23 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0