 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
June 27th, 2005, 01:47 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Feb 2002 Location: Northern California
Posts: 222
| uploaded 5.12 to upgrade.... parse error
Parse error: parse error, unexpected ')', expecting ';' in /web/docs/www.mysite.com/photos/showgallery.php on line 505
Main index.php gives this error
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /web/docs/www.mysite.com/photos/forums/vb3.php on line 608
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /web/docs/www.mysite.com/photos/forums/vb3.php on line 563
|
| |
June 27th, 2005, 01:50 PM
|
#2 (permalink)
| | Member Verified Customer
Join Date: Feb 2002 Location: Northern California
Posts: 222
|
I also get this in the admin CP
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /web/docs/www.mysite.com/photos/adm-misc.php on line 1045
|
| |
June 27th, 2005, 02:21 PM
|
#3 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
I'm not sure why you are getting the parse error, did you upload the files properly? I changed line 502-505 to read: Code: Content visible to verified customers only.
which might help on some systems.
The adm-misc.php error, what version were you running?
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
June 27th, 2005, 02:45 PM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Feb 2002 Location: Northern California
Posts: 222
|
so i just renamed my photo folder something else, made a new photo folder and uploaded the files. copied over the config files and still same problems. I believe I was running version 5.11 before.
|
| |
June 27th, 2005, 02:49 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Feb 2002 Location: Northern California
Posts: 222
|
my 502-505 is
$mcats = null;
if ( isset($_POST['mcats']) ) {
if ( is_array($mcats) ) {
for ( $i = 0, $i < count($mcats), $i++ ) {
|
| |
June 27th, 2005, 02:49 PM
|
#6 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
If you want to PM me your site FTP info and Admin userid, I'll login and try it out myself.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
June 27th, 2005, 02:51 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Feb 2002 Location: Northern California
Posts: 222
|
Here is the sniplet.
$catcheck = null;
$mcats = null;
if ( isset($_POST['mcats']) ) {
if ( is_array($mcats) ) {
for ( $i = 0, $i < count($mcats), $i++ ) {
if ( $mcats != null ) $mcats .= ",";
$mcats .= (int)$POST['mcats'][$i];
}
}
else {
typecast($_POST, array('mcats' => STRING));
}
}
thanks
ryan
|
| |
June 27th, 2005, 02:53 PM
|
#8 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
Yes, I changed it to: Code: Content visible to verified customers only.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
June 27th, 2005, 02:56 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Feb 2002 Location: Northern California
Posts: 222
|
I changed the code to that on the showgallery.php. It works now. I'm going to pm you the info. for some reason there are other errors.
|
| |
June 27th, 2005, 03:37 PM
|
#10 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
I looked and the issue is trhis query:
$onlinequery = "SELECT item, count(*) FROM {$Globals['pp_db_prefix']}iponline GROUP BY item";
which refers to the iponline table - why its returning an error is beyond me. I'd need to look at your iponline table; but if you were running 5.11, this shouldnt be a problem as nothing changed between versions.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
June 27th, 2005, 03:43 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Feb 2002 Location: Northern California
Posts: 222
|
I actually had the error on 5.11 on the main page. I didn't have it at first. I thought maybe I might have edited a file and it was messing it up. So I saw 5.12 and upgraded. That's when i started getting the showgallery.php problem which is a major one.
I'm not familiar with the IPonline table
|
| |
June 27th, 2005, 03:48 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Feb 2002 Location: Northern California
Posts: 222
|
i checked the iponline. maybe it got corrupted or never installed correctly.
Can't open file: 'iponline.MYI'. (errno: 145)
Error
SQL-query:
SHOW KEYS FROM `iponline` ;
MySQL said:
#1016 - Can't open file: 'iponline.MYI'. (errno: 145)
|
| |
June 27th, 2005, 03:57 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,706
|
Yep you need to run a repair on that table or recreate it
|
| |
June 27th, 2005, 03:59 PM
|
#14 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
I ran a REPAIR TABLE iponline; and it fixed the problem.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
June 27th, 2005, 04:02 PM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Feb 2002 Location: Northern California
Posts: 222
|
Great work guys! I appreciate it!
|
| | |
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 11:41 PM. | |