 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
June 12th, 2004, 11:36 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Sep 2003
Posts: 59
| 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
|
| |
June 13th, 2004, 07:42 AM
|
#2 (permalink)
| | Guest |
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)";
| |
| |
August 24th, 2004, 10:05 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Aug 2002 Location: Huntsville, AL
Posts: 46
|
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?
|
| |
August 25th, 2004, 08:11 PM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Aug 2002 Location: Huntsville, AL
Posts: 46
|
I have searched for a long time on these forums and can't find the solution. Should I email support instead?
|
| |
August 25th, 2004, 08:16 PM
|
#5 (permalink)
| | Photopost Developer Verified Customer
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)";
|
| |
August 25th, 2004, 08:25 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Aug 2002 Location: Huntsville, AL
Posts: 46
|
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.
|
| |
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. |
| |
August 25th, 2004, 09:55 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Aug 2002 Location: Huntsville, AL
Posts: 46
|
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?
|
| |
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. |
| |
August 25th, 2004, 10:10 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Aug 2002 Location: Huntsville, AL
Posts: 46
|
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
|
| |
August 29th, 2004, 06:27 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Nov 2003
Posts: 57
| 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
| |
| |
August 29th, 2004, 06:33 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Nov 2003
Posts: 57
| 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.
|
| |
August 29th, 2004, 07:45 AM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
Yes and that should be in the current released version of 4.8.2
|
| |
August 29th, 2004, 12:54 PM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Aug 2002 Location: Huntsville, AL
Posts: 46
|
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.
|
| |
August 29th, 2004, 12:55 PM
|
#15 (permalink)
| | Photopost Developer Verified Customer
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)";
|
| |
August 29th, 2004, 01:09 PM
|
#16 (permalink)
| | Member Verified Customer
Join Date: Aug 2002 Location: Huntsville, AL
Posts: 46
|
Woot !!! that did the trick.. Thanks very much !!!
|
| |
October 21st, 2004, 11:41 AM
|
#17 (permalink)
| | 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 |
| |
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?
|
| |
November 11th, 2004, 11:56 AM
|
#19 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
November 11th, 2004, 09:05 PM
|
#20 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2002 Location: Columbus Oh
Posts: 28
|
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)"; | |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 05:49 PM. | |