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

ReviewPost Installation & Upgrades If you're having problems getting ReviewPost Pro to work or receiving errors while running RP, seek help here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old April 26th, 2006, 08:44 PM   #1 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
Upgrade RP 3.11 to 3.3: E-mail notification not working

Hi

I just upgraded from Reviewpost 3.11 to 3.3. today. Downloaded today the newest RP version from your site.

Upgrade went without any problems.

If a user now uploads a review and chooses "YES" for e-mail notification, RP does not recognize it. On the product page, there is still the option visible to enable (not disable) the e-mail notification for this product for him.

If the same user then clicks again on the "enable for e-mail notification" below the image, the system accepts it finally by showing now "disable email notification" as the option.

How can I fix this?

Thanks in advance
snoopy5 is offline   Reply With Quote
Old April 27th, 2006, 09:02 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
uploadproduct.php try adding in bold?

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.
Chuck S is offline   Reply With Quote
Old April 27th, 2006, 09:32 AM   #3 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
Quote:
Originally Posted by Chuck S
uploadproduct.php try adding in bold?

Code:
Content visible to verified customers only.
I used the new tmpl, that you published for my other question. There is no extra6 with the string at all in it (the non-bold-one).

there is also a uploadproduct.tmpl and an uploadproduct.tmpl1 file in my templates folder. Is this by purpose?
snoopy5 is offline   Reply With Quote
Old April 27th, 2006, 09:46 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
That line definately exists in uploadproduct.php line 27
__________________
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 27th, 2006, 10:01 AM   #5 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
sorry, I mixed the tmpl of the other thread with the php file of this thread.

So I found it and made the change. Now I get an error after hitting upload as a user:

"We're sorry, but the system experienced an unrecoverable error. Please try again later."

If I click after that on "Index", The image appears in the category, but e-mail notification still turned off...
snoopy5 is offline   Reply With Quote
Old April 27th, 2006, 10:07 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
HMM try to use display errors set to on in admin global options.
__________________
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 27th, 2006, 02:40 PM   #7 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
Quote:
Originally Posted by Chuck S
HMM try to use display errors set to on in admin global options.

it was already set this way. The result was the error mentioned above.

I did now a totally fresh installation, no upgrade, with a new URL and new database. Installation was successful without any problems.

I inserted the string you mentioned above in "uploadproduct.php"

I then uploaded again as a user an image. If in the upload window, notification is set to yes, the following error (mysql fetch see screenprint) appears at the same time as a success alert.

If I set the notofication to "no" while uploading an image, no error occurs.
Attached Files
File Type: doc error_notification.doc (71.0 KB, 0 views)
snoopy5 is offline   Reply With Quote
Old April 27th, 2006, 05:04 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
In image-inc.php at the bottom make sure the query is this.

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.
Chuck S is offline   Reply With Quote
Old April 28th, 2006, 03:31 AM   #9 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
Quote:
Originally Posted by Chuck S
In image-inc.php at the bottom make sure the query is this.

Code:
Content visible to verified customers only.
mine was differnt. I post it here:

-------------
if ($notify == "yes") {
$resulta = ppmysql_query("SELECT id FROM {$Globals['rp_db_prefix']}products WHERE userid=$upuserid AND bigimage='$realname'", $link);
list( $productid ) = mysql_fetch_row($resulta);

$resulta = ppmysql_query("INSERT INTO {$Globals['rp_db_prefix']}notify (id,userid,product) values(NULL,$upuserid,$productid)", $link);
------------

But even after I changed the second $resulta to your code, the problem does not go away...
snoopy5 is offline   Reply With Quote
Old April 28th, 2006, 03:47 AM   #10 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
Quote:
Originally Posted by Chuck S
uploadproduct.php try adding in bold?

Code:
Content visible to verified customers only.
One additional question, to avoid confusion:

In the code quotes above, does the word notify has to have quotation marks?
snoopy5 is offline   Reply With Quote
Old April 28th, 2006, 09:32 AM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
yes it does
__________________
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 28th, 2006, 10:30 AM   #12 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
... I chnaged it, but it does not make any difference. Same error as before...
snoopy5 is offline   Reply With Quote
Old April 28th, 2006, 10:41 AM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
Make sure to edit uploadphoto.php as well and make sure the notify query at the bottom of the file is removed. It does not need to be in uploadphoto and image-inc.
__________________
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 28th, 2006, 11:54 AM   #14 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
Quote:
Originally Posted by Chuck S
Make sure to edit uploadphoto.php as well and make sure the notify query at the bottom of the file is removed. It does not need to be in uploadphoto and image-inc.
???

There is no uploadphoto.php. Do you mix this now with Photopost?
snoopy5 is offline   Reply With Quote
Old April 28th, 2006, 12:38 PM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
uploadproduct.php
__________________
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 28th, 2006, 12:49 PM   #16 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
mmmh, but this does not work...

1. in uploadproduct.php Ihave added this 'notify' => STRING as advised

2. in image-inc.php, almost at the buttom, I have now this:

-------
if ($notify == "yes") {
$resulta = ppmysql_query("SELECT id FROM {$Globals['rp_db_prefix']}products WHERE userid=$upuserid AND bigimage='$realname'", $link);
list( $productid ) = mysql_fetch_row($resulta);

$resulta = ppmysql_query("INSERT INTO {$Globals['rp_db_prefix']}notify (id,userid,product) values(NULL,'{$User['userid']}',$lastproductid)", $link);
}
}
----------------

But it does not work. Same error as before...
snoopy5 is offline   Reply With Quote
Old April 28th, 2006, 01:16 PM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
Well if notify is being declared in uploadproduct.php and image-inc.php looks like this it definately works. I have tested this before posting here.

Code:
Content visible to verified customers only.
Notify would have to be passed as yes to write the query to the notify table.
__________________
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 28th, 2006, 01:42 PM   #18 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
Quote:
Originally Posted by Chuck S
Well if notify is being declared in uploadproduct.php and image-inc.php looks like this it definately works. I have tested this before posting here.

Code:
Content visible to verified customers only.
Notify would have to be passed as yes to write the query to the notify table.
Chuck, but the code now is something totally different, than discussed before

There have been 2 different $resulta code strings in the original image-inc.php close to the buttom. I always changed only the second one, since the second one was the one that you quotes to change (see your post Yesterday 09:04 PM)

So now I deleted BOTH $resulta at the buttom of the image-inc.php file and inserted instead only the ONE string you showed in your last posting.

Anyway, now it works...
snoopy5 is offline   Reply With Quote
Old April 28th, 2006, 02:05 PM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,680
The query is not something different though. The query I posted to replace is exactly the same as posted way up in this thread. I just removed the first query cause it did nothing and has no bearing on the issue since $productid was not being used anywhere. I would state you issue had to do with notify not being encapsulated.
__________________
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
Photo Notification Email unsubscribe not working creativepart Photopost Pro Installation & Upgrades 0 March 28th, 2006 09:39 AM
CL 2.5: How to have e-mail notification on as default? snoopy5 Classifieds Installation & Upgrades 3 February 14th, 2006 07:58 AM
E-mail Notification BlackRanger3d How Do I? - vBulletin 3.0.X 2 September 6th, 2005 10:54 AM
e-mail notification dptech Photopost Pro How Do I...? 5 June 2nd, 2005 05:25 AM


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

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