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 Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old October 1st, 2012, 06:15 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2012
Posts: 11
Show Photo - mysql error displayed

Hi Chuck,

In one of my photopost installations, when a visitor goes to the Show Photo page a mysql error gets displayed at the top of the page.

The error is:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in [path]/photopost/forums/vb3.php on line 200

I debugged the vb3.php script and found that that it was not finding the table column, uf.field2 in the select statement on line 175. I looked at the userfields table and it holds my custom profile fields. When I set up the custom profile for this site, I must have deleted that field and my starting column is field5. I've changed the code for in the select statement to uf.field5 and it removed the error.

I decided to add a field2 to the db table and put the select statement back to it's original state. It doesn't mess up my custom profile so all is good.

This is just to let you know that this field can be deleted by users when creating a new, custom profile so it's probably worth considering how you want this select code to be written in the future!

Cheers,

Dennis
swtadm is offline   Reply With Quote
Old October 1st, 2012, 08:36 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Dennis

We are fully aware you can delete profile fields we have no control over that aspect of things that is your forum. Now when coding an integration with a forum product we have to code to the default vbulletin stock core product. Now the function your referring to is the get_profiledata so we try and grab the info and the location info in a default vb is that field2.

The only way to avoid that issue is to never query or show the user location when we grab user info from the forum.

The issue is well documented here so it is no secret.
__________________
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 October 1st, 2012, 08:47 AM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2012
Posts: 11
It's great that you're already aware of it!

I understand that you must program to the default configuration and that my changes caused the defaults to break.

Cheers,

Dennis
swtadm is offline   Reply With Quote
Old October 1st, 2012, 08:49 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
not a problem just not much we can do about it. Your actually ahead of lots of people who have posted here. You actually knew what the issue was which means your technically proficient which is nice to see.
__________________
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 October 1st, 2012, 09:10 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2012
Posts: 11
Thanks Chuck, programming php and mysql ~10 to 12 hours a day, 6 days a week does that. And gives me an appreciation of all the hard work that goes into creating a great product like yours!

swtadm is offline   Reply With Quote
Old October 1st, 2012, 10:43 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
There you go that explains it another nerd.

Yeah the vast majority of our customers do not have such skills.
__________________
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 October 1st, 2012, 10:49 AM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2012
Posts: 11
Guilty as charged...

Yeah, the majority of my customers do not either...

Dennis
swtadm is offline   Reply With Quote
Old October 1st, 2012, 12:47 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Just the nature of the beast my friend.
__________________
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
Error On Show Photo dieselpowered Photopost Pro Bug Reports 1 May 8th, 2008 11:30 AM
Full Size Photo not being displayed schford Photopost Pro Bug Reports 1 January 10th, 2007 10:54 AM
error on show photo hendri Photopost Pro Installation & Upgrades 3 February 22nd, 2005 08:36 PM


All times are GMT -5. The time now is 05:18 AM.

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