Home Forum
Welcome, Guest
Please Login or Register.  Lost Password?
Go to bottomPage: 123
TOPIC: warning
#74
warning 1 Year, 7 Months ago  
hi..
i install it on opencart 1.4.9.1 and in admin i choose product_name--> iphone; model--> product11, but i get warning when in front-end i choose iphone.
the warning --> "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/kepakcom/public_html/catalog/view/paps/includes/classes/paps_delegate.php on line 27"
and line 27 --> "while($single_row = @mysql_fetch_array($all_rows)){"
any solution?
This image is hidden for guests. Please login or register to see it.
madany
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#75
Re: warning 1 Year, 7 Months ago  
Hi

Try this. In the file

public_html/catalog/view/paps/includes/classes/paps_delegate.php

Change the entire function called populateAttribArrays to this:

function populateAttribArrays($prod_id) {
$all_rows = getAllAtts_Names($prod_id);
$attr_arrays = array(array());
$row = 0;
if($all_rows != 0){
while($single_row = @mysql_fetch_array($all_rows)){
foreach($single_row as $field => $value){
if($field == 'attr_name'){
$attr_arrays[$row][0] = stripslashes($value);
}elseif($field=='aliases'){
$att_vals = explode(':', $value);
for($b = 0; $b < count($att_vals); $b++){
$attr_arrays[$row][] = stripslashes($att_vals[$b]);
}
}
}
$row ++;
}
}
return $attr_arrays;
}

If this doesn't work, I would really need to check your installation as this will be the only way to know for sure if the problem is with the mod or the way it was installed.

Regards
jimbob

Last Edit: 2010/10/06 18:57 By .Reason: typos
The administrator has disabled public write access.
 
#76
Re: warning 1 Year, 7 Months ago  
ok now the warning gone, but nothing picture option show up??
i tried with iphone & ipod classic..
this is my website www.kepajak.com
thx
madany
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#77
Re: warning 1 Year, 7 Months ago  
Hi

Looking a the ipod classic page:

Did you upload images for the Memory options via PAPs admin?

Can you see the images in PAPs admin if you click on the 'View' icons in the option listing.

In PAPs admin, you need to set 'Ignore Product Attributes' to 'No', save it, then set 'Allow Attribute Selection' to 'Yes' under the option listing, and save.

Hope this helps.
jimbob

Last Edit: 2010/10/06 19:18 By .
The administrator has disabled public write access.
 
#78
Re: warning 1 Year, 7 Months ago  
1. Did you upload images for the Memory options via PAPs admin?
--> yes i did

2.Can you see the images in PAPs admin if you click on the 'View' icons in the option listing.
--> i can't find any 'View' icons...and where is 'option listing'?

3. In PAPs admin, you need to set 'Ignore Product Attributes' to 'No', save it, then set 'Allow Attribute Selection' to 'Yes' under the option listing, and save.
--> again, where is 'Ignore Product Attributes' and 'Allow Attribute Selection' ?
This image is hidden for guests. Please login or register to see it.
madany
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#79
Re: warning 1 Year, 7 Months ago  
maybe you can login as admin
www.kepajak.com/admin
user: demo
password: demo
madany
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 123

Copyright © 2012 Product Attribute Pictures. All Rights Reserved.