AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: vxmark on June 01, 2014, 07:19:06 PM

Title: Help with error needed
Post by: vxmark on June 01, 2014, 07:19:06 PM
Hi all,

I really love AbanteCart cart, one of the best I've ever seen. Easy to work with, looks great.

But, I have an issue.
I'm showing 2 manufactures in the manufacture slid bar that do not exist and I'm getting an error in the error log

Error: Error in data of page with controller: 'pages/product/manufacturer'. Please check for key_value present where key_param was set

Can some one help? Thanks.

I'm on ver. 1.1.9 new install with minor product, manufacture, cat. built.
Title: Re: Help with error needed
Post by: Basara on June 17, 2014, 07:29:28 AM
Hello.
This is a bug. I repost it to AbanteCart github bug tracker (https://github.com/abantecart/abantecart-src/issues/22).
Thank you
Title: Re: Help with error needed
Post by: llegrand on July 02, 2014, 08:33:12 PM
I also posted this issue and it appears that it is in the to-be fixed on git-hub.  But it is now 16 days there -  any update on when this might be fixed?

Thanks
Lee
Title: Re: Help with error needed
Post by: abantecart on July 03, 2014, 10:42:21 AM
Fix is ready:
https://github.com/abantecart/abantecart-src/commit/f45bee4742a9b6db2caf3975340ebf28f6a9c83d

Thank you for patience.
Title: Re: Help with error needed
Post by: abantecart on July 03, 2014, 10:47:01 AM
Forgot to mention.

This fix it to hide the real problem.
There is a reason for Custom Listing to be called custom. It is static. You need to remove old data from custom listing if it is no longer available. 

Fix will hide missing data for you, but will not remove any data from custom listing setting.

Worth to know.
Title: Re: Help with error needed
Post by: llegrand on July 03, 2014, 02:35:37 PM
Thank for the fix.

I am missing some critical piece in understanding your note on Custom Block.  I have 20 manufacturers that I wish to use within the product listings.   Within the custom block it shows there 20 to add/edit.   I have chosen 10 to show on the home page in the brands scrolling block.  That is where the placeholders for the non-selected mfgs were showing.   

Your note would lead me to think that I must only have brands within the entire cart and they must all be selected.  Is that correct?
I am assuming the fix will overcome this,  but am concerned about how you characterized the "fix"  as a patch due to poor block content management.

But I do appreciate the "fix"
Lee
Title: Re: Help with error needed (fix didn't do it for me)
Post by: llegrand on July 03, 2014, 04:35:02 PM
oops  something went amiss:

Then I inserted the code as shown my home page now gives this error

Parse error:  syntax error, unexpected T_IF in /public_html/....../storefront/controller/blocks/listing_block.php on line 329

Here's the code snippet from my altered file:
                                                   $data_source['storefront_method']),
                                                   array($item['id']));
            }
        +
+            // Skip if data source is vanished but still set in the listing.
+            $result = array_filter($result);
         }

 +
        /*if($data_source['rl_object_name'] ){
            $resource = new AResource('image');
        }*/
        if($result){
            //add thumbnails to custom list of items. 1 thumbnail per item
            $result = $this->_prepareCustomItems($data_source, $result);
        }
Title: Re: Help with error needed
Post by: abantecart on July 07, 2014, 09:21:05 PM
llegrand, you need to remove pluses.
Title: Re: Help with error needed (SOLVED)
Post by: llegrand on July 15, 2014, 01:24:34 PM
thank you,  that detail of removing the +  was what I needed to know.  All works well now.
Ah,  so many things to still learn!

Lee