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 Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 13th, 2005, 05:02 AM   #1 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 36
Question PP trouble finding VB user info? (But classifieds pulling it just fine)

Running VBuletin 3.5.1 - Photopost 5.21 - Photopost Classifieds 2.4.2

The calssifieds is running great, no problems at all.....

The Photopost is having some kind of trouble pulling the user data from the VB database when viewing a photo.

Here is the error I am getting:

Quote:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /gallery/forums/vb3.php on line 142
Here is line 142:
Code:
Content visible to verified customers only.

Depending on the image sometimes I will get the error once and sometimes I will get it 5-8 times in a row at the top of the page.

What's weird is that the Classifieds program has the same exact code in it's vb3.php file and it has no problem.

I noticed that the only thing displayed in the profile area of each comment is the users IP address. So it does look like PP is having problems pulling the VB user data from the VB database.

I've checked and rechecked everything. I have the correct VB license number in the settings (same number I have in the classifieds settings which is working).

I even tried using the vb3.php from the classifieds for the photopost setup but still no luck. I know the VB database is ok as the forum is fine and also the classifieds script is pulling the data with no errors and PhotoPost is pulling the correct user info when viewing the thumbnails. It's only having problems when viewing the photos.

Any ideas Chuck?

Thanks in advance for any help you can provide.

Last edited by RobertBasil; November 13th, 2005 at 05:11 AM.
RobertBasil is offline   Reply With Quote
Old November 13th, 2005, 09:21 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Hello looks to me like your vb3 is hacked

Your ufield2 field is missing from userfield database table so the query above is failing right

I would think your going to have the same problem in classifieds, basically your viewing a photo with comments right
__________________
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 November 13th, 2005, 01:45 PM   #3 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 36
Quote:
Originally Posted by Chuck S
Hello looks to me like your vb3 is hacked

Your ufield2 field is missing from userfield database table so the query above is failing right

I would think your going to have the same problem in classifieds, basically your viewing a photo with comments right
Yes, I am viewing a photo with comments.

The classified work 100%. I can also view the gallery comment posters username while viewing the index of the gallery and also while viewing the thumbnails. The only time I get the error is after clicking on one of the thumbnails and viewing in medium and full size image mode.

I looked in my VB database in the userfield table and see the following fields:

userid
temp
field1
field3
field4
field5
field6
field7
field8

So the field2 is missing. But what I don't understand is I just checked my backup database that was working perfectly with the gallery before the upgrade from 4.83 and it also does not contain a field2 in the userfield table.
RobertBasil is offline   Reply With Quote
Old November 13th, 2005, 01:49 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Well it should not work with classifieds either

Try placing a comment on an ad and see what happens

Basically field2 on that database table is the user's location field and exists in a stock Vbulletin and we code our program for a stock install.

You need to either code our query to look at the proper field that contains user location or add back in that field so the query can complete
__________________
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 November 13th, 2005, 02:01 PM   #5 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 36
The location has been changed in VB. I now have a city, state and country. Weird that the 4.8e version had no problems with it.

How can I had the field2 back to the vb database? I'll add it back and just leave it blank for all users.
RobertBasil is offline   Reply With Quote
Old November 13th, 2005, 02:09 PM   #6 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 36
Nevermind, I just changed VB3.php to look in field6 (users state) instead of field2.

For anyone else having this problem this is what I changed in vb3.php

line 122

Change this:

Code:
Content visible to verified customers only.
to this:

Code:
Content visible to verified customers only.
Thanks for your help Chuck!
RobertBasil is offline   Reply With Quote
Old November 13th, 2005, 02:35 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Yep was just gonna post you can change the field2 to another one
__________________
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 March 31st, 2006, 08:00 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Sep 2002
Posts: 225
Thank you, thank you, thank you!! I'm having the same problem in Classifieds.

This would be a rather typical change for Classifieds especially, as it's almost a given you have to get more granular on location, and you sure as heck don't want to burn up those very precious 6 user fields on address junk, especially as address stuff is by user, not by ad. I think this little tidbit should be documented in the installation manual somewhere.

I've just spent some time tracking it down.
CavySpirit is offline   Reply With Quote
Old December 21st, 2011, 10:29 PM   #9 (permalink)
Member
Verified Customer
 
rcull's Avatar
 
Join Date: Dec 2004
Posts: 230
I have this error and tried to follow the correction, but it would not work for me.

I found the field2 in the vb3.php on line 173 instead of 122. There was a query on 122, but didn't mention field2. I changed the query on 173, but it just changed the error to field 6.

I had been running a spam field for a long time, deleted it and then replaced it because it was needed. This may have been the source for this problem.

Thanks!
rcull is offline   Reply With Quote
Old December 22nd, 2011, 08:32 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
There is most definitely depending on your product a field2 column in the query to get user info as thats the location field

My suggestion if you get an error is view your vb database under the userfield table and make sure field2 exists.
__________________
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 22nd, 2011, 10:22 AM   #11 (permalink)
Member
Verified Customer
 
rcull's Avatar
 
Join Date: Dec 2004
Posts: 230
The field does not exist.

I find:
userid, temp, field1, field3, field4, field13, field67, field68, field43, field70

I suppose I have to create a field2 somehow. I know the admin cp will allow me to create a field, but it won't allow me to designate a number. So once it is created, I would have to rename it.
or I have to learn what these high numbered fields are and rename it?

Thanks
rcull is offline   Reply With Quote
Old December 22nd, 2011, 10:28 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
The field exists in a default vb. You need to either alter or coding to remove it or more importantly add it back

http://www.photopost.com/forum/1179129-post5.html
__________________
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit Number of Classifieds by One User ldk Classifieds Suggestions 21 July 23rd, 2007 03:08 PM
Classifieds integration with Photopost trouble DerekG Classifieds Installation & Upgrades 3 August 5th, 2005 10:49 AM
Pulling My Hair out - Water Marks not working! Basil Classifieds Installation & Upgrades 2 June 2nd, 2005 12:56 AM
not finding mogrify even though its there? skezfx Classifieds Installation & Upgrades 1 July 1st, 2004 04:23 PM


All times are GMT -5. The time now is 02:20 AM.

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