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 April 20th, 2005, 01:03 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 105
Error trying to move an ad

I tried to move this ad to a more appropriate category on my site: http://www.faunaclassifieds.com/pp_c...p?product=1639

When I tried to do so, I got this error message:
Quote:
Parse error: parse error, unexpected '{' in /home/fauna/public_html/pp_classifieds/adm-product.php on line 236
The only thing I can think of is that the format is somewhat different between the source category and the destination category. But if that is the case, I think this should be captured by the program and handled with an appropriate message rather then getting an error notice like above. The program needs to be smart enough to know what it can and cannot do.
Rich Z is offline   Reply With Quote
Old April 20th, 2005, 08:18 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,720
Most likely probally related to your editing of the file trying to fix the bug form the other 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 April 20th, 2005, 08:48 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 105
Nope. I didn't do any edits except for the ones you sent me. So regardless, it's still a bug, I think. Any solutions at hand?

BTW, I am not a PHP programmer and never said I was. I may be able to do something REALLY minor, but I don't even try to troubleshoot code.
Rich Z is offline   Reply With Quote
Old April 20th, 2005, 09:07 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,720
Rich

Me posting a bug fix and when you alter the file you make a parse error is not a bug.

Here is the code edit to make again.

In adm-product.php find this

$ipaddr = findenv("REMOTE_ADDR");
$date = time();
$what = "Deleted product: $filename ($ptitle)";
$what = addslashes($what);
$query = "REPLACE INTO {$Globals['pp_db_prefix']}admlog (adminuser,ip,datestamp,description) VALUES ('{$User['username']}','$ipaddr','$date','$what')";
$resultb = ppmysql_query($query,$link);

change to this

$username = addslashes($User['username']);
$ipaddr = findenv("REMOTE_ADDR");
$date = time();
$what = "Deleted product: $filename ($ptitle)";
$what = addslashes($what);
$query = "REPLACE INTO {$Globals['pp_db_prefix']}admlog (adminuser,ip,datestamp,description) VALUES ('$username','$ipaddr','$date','$what')";
$resultb = ppmysql_query($query,$link);
__________________
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 April 20th, 2005, 11:23 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 105
See, I TOLD you I wasn't a PHP programmer. Looked OK to me when I cut and pasted those lines.......

Thanks for your help.
Rich Z 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
Unable to move File Error? brthompson Photopost Pro Installation & Upgrades 1 January 11th, 2005 11:50 PM
Need Help move to new server**UPload Error*** mitomcua Photopost Pro Installation & Upgrades 2 December 27th, 2004 09:30 AM
Move to New Host, and a New Error CrazyJoeUS Photopost Pro Installation & Upgrades 4 July 30th, 2004 11:25 AM
Error when trying to move servers... WebDork Photopost Pro Installation & Upgrades 1 June 21st, 2004 12:17 PM


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

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