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 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
rcsmith is offline   Reply With Quote
Old 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
rcsmith is offline   Reply With Quote
Old June 27th, 2005, 02:21 PM   #3 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,860
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.
Michael P is offline   Reply With Quote
Old 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.
rcsmith is offline   Reply With Quote
Old 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++ ) {
rcsmith is offline   Reply With Quote
Old June 27th, 2005, 02:49 PM   #6 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,860
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.
Michael P is offline   Reply With Quote
Old 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
rcsmith is offline   Reply With Quote
Old June 27th, 2005, 02:53 PM   #8 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,860
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.
Michael P is offline   Reply With Quote
Old 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.
rcsmith is offline   Reply With Quote
Old June 27th, 2005, 03:37 PM   #10 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,860
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.
Michael P is offline   Reply With Quote
Old 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
rcsmith is offline   Reply With Quote
Old 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)
rcsmith is offline   Reply With Quote
Old June 27th, 2005, 03:57 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Yep you need to run a repair on that table or recreate it
__________________
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 June 27th, 2005, 03:59 PM   #14 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,860
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.
Michael P is offline   Reply With Quote
Old 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!
rcsmith 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
Bug in slideshow.php: Parse error: parse error, unexpected '\"' in line 282 (FIXED) dontom Photopost Pro Bug Reports 2 September 30th, 2005 09:09 AM
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/m/a/ imported_concepts Installs and Upgrade - vBulletin 3.5.X 4 September 13th, 2005 09:09 PM
after upgrade I get Parse error Reeftanksonline Photopost Pro Installation & Upgrades 8 June 28th, 2005 03:30 PM
Parse error: parse error, unexpected '}' ...usergroup.php on line 355 djjeffa Installs and Upgrade - vBulletin 3.0.X 4 April 14th, 2005 10:50 AM


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

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