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 June 12th, 2004, 11:36 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 59
Thumbs down MySQL error reported! Script: bulkupload

Whats this all about?.......



MySQL error reported!

Script: bulkupload

Query: INSERT INTO photopostnotify (id,userid,photo) values(NULL,1,)

Result: You have an error in your SQL syntax near ')' at line 1

Database handle: Resource id #7
janet22 is offline   Reply With Quote
Old June 13th, 2004, 07:42 AM   #2 (permalink)
donb
Guest
 
Posts: n/a
Try changing line 681 of image-inc.php from

$query = "INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,photo) values(NULL,{$User['userid']},$photoid)";

to

$query = "INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,photo) values(NULL,{$User['userid']},$lastphotoid)";
  Reply With Quote
Old August 24th, 2004, 10:05 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Aug 2002
Location: Huntsville, AL
Posts: 46
Send a message via AIM to banjolawyer Send a message via MSN to banjolawyer Send a message via Yahoo to banjolawyer
I am getting an error also when uploading

Code:
Content visible to verified customers only.
The suggested fix is not working for me. Any other suggestions?
banjolawyer is offline   Reply With Quote
Old August 25th, 2004, 08:11 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Aug 2002
Location: Huntsville, AL
Posts: 46
Send a message via AIM to banjolawyer Send a message via MSN to banjolawyer Send a message via Yahoo to banjolawyer
I have searched for a long time on these forums and can't find the solution. Should I email support instead?
banjolawyer is offline   Reply With Quote
Old August 25th, 2004, 08:16 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
How about this

$query = "INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,photo) values(NULL,{$User['userid']},$photoid)";

to

$query = "INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,photo) values(NULL,$upuser,$photoid)";
__________________
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 August 25th, 2004, 08:25 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Aug 2002
Location: Huntsville, AL
Posts: 46
Send a message via AIM to banjolawyer Send a message via MSN to banjolawyer Send a message via Yahoo to banjolawyer
That is what I have.

$query = "INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,photo) values(NULL,$upuser,$photoid)";

I'm using version 4.8.2 just downloaded last night.
banjolawyer is offline   Reply With Quote
Old August 25th, 2004, 09:45 PM   #7 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
How about some info about your setup?
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old August 25th, 2004, 09:55 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Aug 2002
Location: Huntsville, AL
Posts: 46
Send a message via AIM to banjolawyer Send a message via MSN to banjolawyer Send a message via Yahoo to banjolawyer
Linux
Apache version 1.3.31
PHP version 4.3.8
MySQL version 4.0.20
PhotoPost Pro 4.8.2
vBulletin 3.0.3
vbPortal 3.0.0 beta 3

What else do you need to know?
banjolawyer is offline   Reply With Quote
Old August 25th, 2004, 09:58 PM   #9 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
Does this happen on every upload or just some? Anything more than a few sentenceas is going to help, so please be as descriptive as possible.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old August 25th, 2004, 10:10 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Aug 2002
Location: Huntsville, AL
Posts: 46
Send a message via AIM to banjolawyer Send a message via MSN to banjolawyer Send a message via Yahoo to banjolawyer
It happens every time. I go through the standard motions:

I click upload photo
I browse for a photo on my local computer and select a .jpg file
I choose a category
I select "yes" I want to be notified of new comments
I click upload/submit (which is located under the Admin Options for Bulk or Zip uploads, since I am the site Admin, but I touch nothing in within this section)
I am taken to the following page which shows a thumbnail of the image I am uploading and gives me the option of adding a title and description
http://www.mysite.net/gallery/bulkup...&numprocess=10
I type in a title
I click Process Files
I get the following error

MySQL error reported!

Script: bulkupload

Query: INSERT INTO ppnotify (id,userid,photo) values(NULL,,12)

Result: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '12)' at line 1

Database handle: Resource id #42
banjolawyer is offline   Reply With Quote
Old August 29th, 2004, 06:27 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Nov 2003
Posts: 57
Send a message via Skype™ to domrep
same error!

windows 2003 server

Quote:
MySQL error reported!

Script: bulkupload

Query: INSERT INTO pop_notify (id,userid,photo) values(NULL,,5397)

Result: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '5397)' at line 1

Database handle: Resource id #6
domrep is offline   Reply With Quote
Old August 29th, 2004, 06:33 AM   #12 (permalink)
Member
Verified Customer
 
Join Date: Nov 2003
Posts: 57
Send a message via Skype™ to domrep
Quote:
$query = "INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,photo) values(NULL,{$User['userid']},$photoid)";

to

$query = "INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,photo) values(NULL,$upuser,$photoid)";
seems it helped.
domrep is offline   Reply With Quote
Old August 29th, 2004, 07:45 AM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Yes and that should be in the current released version of 4.8.2
__________________
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 August 29th, 2004, 12:54 PM   #14 (permalink)
Member
Verified Customer
 
Join Date: Aug 2002
Location: Huntsville, AL
Posts: 46
Send a message via AIM to banjolawyer Send a message via MSN to banjolawyer Send a message via Yahoo to banjolawyer
seems its not a fix for everyone. That's exactly the code I have

$query = "INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,photo) values(NULL,$upuser,$photoid)";

and I'm still getting the error.

I'm not sure what other info. I can give. If there's anything else I can do to help photopost support help me, please let me know.
banjolawyer is offline   Reply With Quote
Old August 29th, 2004, 12:55 PM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
try this

Line 685 of image-inc.php

$query = "INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,photo) values(NULL,$upuser,$photoid)";

change to

$query = "INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,photo) values(NULL,$upuserid,$photoid)";
__________________
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 August 29th, 2004, 01:09 PM   #16 (permalink)
Member
Verified Customer
 
Join Date: Aug 2002
Location: Huntsville, AL
Posts: 46
Send a message via AIM to banjolawyer Send a message via MSN to banjolawyer Send a message via Yahoo to banjolawyer
Woot !!! that did the trick.. Thanks very much !!!
banjolawyer is offline   Reply With Quote
Old October 21st, 2004, 11:41 AM   #17 (permalink)
sbb
Member
Verified Customer
 
Join Date: Jul 2004
Posts: 76
someone on our site just had the same problem and I made the latest change suggested by Omegatron and am awaiting her response on the issue
sbb is offline   Reply With Quote
Old November 11th, 2004, 04:26 AM   #18 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
how does this affect upgrades from 4.8.1 to 4.8.2?

The upgrade information are as follows:

-------------------------------------------------------------------

=====================
VERSION UPDATE: 4.8.2
=====================

Minor updates to fix a few files:

pp-inc.php
adm-approve.php
image-inc.php (change to notification addition to use $upuser instead of userid)
index.php (added permissions to comments view)
showmembers.php (add permissions to comments view)

forums/threads.php (fixed missing init_user_groups() function)
forums/ib.php (slight changes to styles integration
and a fix for import_user_groups to identify admins)
forums/ib2.php (slight changes to styles integration,
a fix for import_user_groups to identify admins
and an authication addition)

languages/german/* (all files updated to German strings)

There are no database changes for this upgrade, so there is no upgrade script. You only need to upload files which have changed.
--------------------------------------------------------------

Does this mean, that the new image-inc.php file for the upgrade is wrong?

Quote:

"image-inc.php (change to notification addition to use $upuser instead of userid)"

So shall we "upgrade" normally and after that change only the line mentioned in the posting of Omegatron (29.8.) above?

I tried a fresh 4.8.2 installation and after the fix of that line, it worked. I can confirm that the error only appears if notification for comments is set on "yes" while uploading. If set on "no", no error occurs.

P.S.: Where to change this specific english "yes" and "no" into european languages by the way?
snoopy5 is offline   Reply With Quote
Old November 11th, 2004, 11:56 AM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
The change is only in image-inc.php with the lines posted no other files to edit
__________________
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 November 11th, 2004, 09:05 PM   #20 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2002
Location: Columbus Oh
Posts: 28
Send a message via AIM to smgvbest Send a message via Yahoo to smgvbest
Thank you,

This fixed the problem on my site as well.


Quote:
Originally Posted by omegatron
try this

Line 685 of image-inc.php

$query = "INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,photo) values(NULL,$upuser,$photoid)";

change to

$query = "INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,photo) values(NULL,$upuserid,$photoid)";
smgvbest 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
MySQL error reported!: Script: index etaslim Photopost Pro Installation & Upgrades 2 October 26th, 2004 03:15 PM
MySQL error reported! Script: index nightcrawler Photopost Pro Installation & Upgrades 4 August 28th, 2004 10:05 PM


All times are GMT -5. The time now is 05:49 PM.

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