 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
September 27th, 2005, 12:08 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: Gilbert, AZ
Posts: 394
| errors when deleting all users photos
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/civic/public_html/memberrides/adm-cats.php on line 1095
PhotoPost Delete Photos By User
You're about to delete all the photos posted by the user "".
Check to delete all comments by this user
Are you sure you want to do that? http://www.7thgencivic.com/memberrid...otos&uid=10194 |
| |
September 27th, 2005, 07:35 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,666
|
Hello yep I see the issue here in admin-cats.php
$querya="SELECT user FROM {$Globals['pp_db_prefix']}photos where userid=$uid ORDER BY date DESC LIMIT 1";
$userq = ppmysql_query($querya, $link);
list( $username ) = mysql_fetch_row($userq);
ppmysql_free_result($userq);
This above you need to replace with this
list( $userid, $username, $email ) = get_userinfo("", $uid);
The current code is only coded to be used with a standalone install
|
| |
September 27th, 2005, 05:34 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: Gilbert, AZ
Posts: 394
|
So replace all those old lines with that one line?
I did and still get
You're about to delete all the photos posted by the user "".
after delete, i get...
Bad uid for delete photos call.
|
| |
September 27th, 2005, 08:56 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,666
|
I can suggest you download 5.2 incase your editing it incorrectly but I dont see an issue with the line here is the code block so your still not getting $username defined
$uid is already defined and when I click from a profile delete all photos by this user it works right with the code mentioned. Code: Content visible to verified customers only.
|
| |
September 27th, 2005, 09:20 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: Gilbert, AZ
Posts: 394
|
well, i just copied and pasted the code here and I still don't get a user listed. Unfortunately my member area acess ended, so I can't dl 5.2, so I will need to get this fixed somehow.
|
| |
September 27th, 2005, 09:31 PM
|
#6 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
Does the top of adm-cats.php have: Code: Content visible to verified customers only.
Specifically, the uid => INT portion?
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
September 27th, 2005, 09:36 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: Gilbert, AZ
Posts: 394
|
this is what I have, uid is there, but some others are missing. Code: Content visible to verified customers only.
|
| |
September 27th, 2005, 10:58 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,666
|
How about ppaction? is this on your typecast line
'ppaction => STRING
As long as ppaction and uid are on the typecast this is what I have at the bottom of adm-cats.php and the code does work. I am using vb3 just like you Code: Content visible to verified customers only.
|
| |
September 27th, 2005, 11:25 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: Gilbert, AZ
Posts: 394
| Quote: |
Originally Posted by omegatron How about ppaction? is this on your typecast line
'ppaction => STRING | yes, but STR not STRING
As long as ppaction and uid are on the typecast this is what I have at the bottom of adm-cats.php and the code does work. I am using vb3 just like you
I copied all that code and still same issue.
The hidden uid in the form is not getting populated.
|
| |
September 28th, 2005, 07:12 AM
|
#10 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
What version are you running? They should be STRING, but maybe you have a BETA or something where we used STR?
How about copying the typecast as I posted them above and placing that into your file directly.
Also, check member.php and make sure they are set: Code: Content visible to verified customers only.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
September 28th, 2005, 08:06 AM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,666
|
If he has a beta he might also want to edit pp-inc.php and replace the typecast function also so STRING is usuable right?
But then that also means he would want to edit all the files and replace STR with STRING in the typecasts also.
|
| |
September 28th, 2005, 10:26 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: Gilbert, AZ
Posts: 394
|
no beta, i have 5.12
I will try changing those typecasts now
|
| |
September 28th, 2005, 10:49 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: Gilbert, AZ
Posts: 394
|
ok, seems my compare missed some files. seems to be working now ecpt for one issue. I have the option turned on to show photo count and disk usage, but It's not there. http://www.7thgencivic.com/memberrides/index.php
Is there another option that goes along with this?
|
| |
September 29th, 2005, 11:23 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,666
|
What page are we talking about?
|
| |
September 29th, 2005, 11:30 AM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: Gilbert, AZ
Posts: 394
|
The index page that tells ppl how many photos in the db and the disk space they are consuming.
|
| |
September 29th, 2005, 11:35 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,666
|
Okay well I dont show any of the stats or sidebar turned on so none will display
|
| |
September 29th, 2005, 11:44 AM
|
#17 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: Gilbert, AZ
Posts: 394
|
I don't want the sidebar, just the stats. It used to show above or below all the categories.
|
| |
September 29th, 2005, 11:48 AM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,666
|
Right and in the stats bar if its on it will show but it needs to be on and everything else off
if ( $Globals['undercat'] == "yes" ) {
if ($Globals['sidebar_index'] == "no" || $Globals['sidebar'] == "off" ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/undercat.tmpl" );
}
else {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/undercat-sidebar.tmpl" );
}
}
elseif ( $Globals['statspal'] == "yes" ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/indexstats.tmpl" );
}
|
| |
September 29th, 2005, 11:53 AM
|
#19 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: Gilbert, AZ
Posts: 394
|
so the stats bar is not the same as the pal thing?
|
| |
September 29th, 2005, 12:00 PM
|
#20 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: Gilbert, AZ
Posts: 394
|
so when I go to
Admin > Index Options > Display photo and diskspace stats on index page? YES
I need to turn something else on? Shouldn't that something else also be in this section if that is the case?
|
| | |
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 | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | Error deleting photos | dptech | Photopost Pro Bug Reports | 1 | May 31st, 2005 03:48 PM | | Deleting Image Errors? | ManagerJosh | Installs and Upgrade - vBulletin 3.0.X | 3 | May 16th, 2005 09:33 AM | | Deleting Photos | rstan | Photopost Pro Installation & Upgrades | 1 | April 12th, 2005 08:16 AM | | Users Deleting images | A Geek | Bugs From 1.0.0 | 1 | December 12th, 2004 12:59 AM | All times are GMT -5. The time now is 08:59 PM. | |