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

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 25th, 2008, 06:27 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2003
Posts: 16
custom attributes not saving

In version 3.03 I have located a bug that prevents custom fields from being saved on product upload. The scenario is this:

1) Select Upload Ad - for a category that has several custom fields (I have tested only text fields)

2) Fill out the fields and submit

3) Resulting ad does not have the values entered displayed in the fields


Please note that this can be an intermittent problem...here is why:

In uploadproduct.php there are the following lines:

Code:
Content visible to verified customers only.
Nowhere in this file is $i initialized to a value. Given this it may equate to empty or a random value. In my case rather than showing up as empty (therefore enabling the following strstr function to operate correctly) $i is set to a random value preventing a match using the strstr function. This prevents the attributes from being saved.

In my case I removed $i from the above lines and the attributes/custom fields are now saved correctly.

Thanks!

Mark
mferguson is offline   Reply With Quote
Old July 25th, 2008, 06:42 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
Of course it is initialized as the fields are already defined in the page as an array. Your simply doing a foreach custom- array return results and the code is quite clear here.

PhotoPost Classifieds - test

I am not seeing any issues and I tested every type of extra field there is

I would suggest you email support with enough urls and logins ftp etc database and explain your issue. If you change the code your not going to be able to save your array results.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 25th, 2008, 06:46 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2003
Posts: 16
In the use of the variable $i relative to $thesevars it has no relation to an array coming in as part of the post variables. I know how arrays are used and indexed but in this case I don't see where $i is initialized to some value or being incremented in some way prior to where the strstr is being done. If it I'm missing where this is done please let me know. Thanks

Mark
mferguson is offline   Reply With Quote
Old July 25th, 2008, 06:48 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
Look at your template as well and the uploadproduct file they are all initialized as arrays and the code works as posted and shown by my example.

If your happy you think your change works then okay. I was just merely pointing out there should be no need to change code. $i is nothing relatively speaking just a beautification or reminder we are processing an array. $thesevars is set to custom- which is indeed correct.

Code:
Content visible to verified customers only.
All the variables for the customs are an array defined by custom- and we do a foreach.
__________________
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; July 25th, 2008 at 07:15 PM.
Chuck S is online now   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
After saving page goes blank PowerBook Classifieds How do I...? 3 September 28th, 2007 12:34 PM
vBulletin Attributes are not showing on vBGallery xowi vBGallery How Do I...? 2 September 23rd, 2007 01:51 PM
Saving images to a different drive/directory Dennis B How Do I? - vBulletin 3.5.X 1 November 30th, 2005 06:44 AM
Saving imaged from Gallery j1time How Do I? - vBulletin 3.0.X 2 August 31st, 2005 12:01 PM
Saving watermarked photos(NOT A BUG) mb24335 Photopost Pro Bug Reports 11 June 30th, 2005 05:29 PM


All times are GMT -5. The time now is 07:50 PM.

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