+ Reply to Thread
Results 1 to 10 of 20
Thread: MFPMU Not displaying
-
11-03-2011 12:13 PM #1Junior Member
- Join Date
- Jun 2011
- Location
- New Salem Pa.
- Posts
- 24
MFPMU Not displaying
Switched to the new api and the website displays correctly. When I click on a product link, I get these errors.Warning: usort() expects parameter 1 to be array, string given in /home/kanoonii/public_html/domain.com/inc_functions.php on line 317
Warning: Invalid argument supplied for foreach() in /home/kanoonii/public_html/domain.com/inc_functions.php on line 733
Warning: Invalid argument supplied for foreach() in /home/kanoonii/public_html/domain.com/inc_functions.php on line 460.
I am not a programmer so any help would be appreciated.
Thanks in advance for your help.
Joe
-
11-03-2011 12:59 PM #2
You need to wait for the developers of mfpmu to release an update to their system in order to make use of the new api.
-
11-03-2011 01:34 PM #3Junior Member
- Join Date
- Jun 2011
- Location
- New Salem Pa.
- Posts
- 24
I thought it was all the same.
thanks
Joe
-
11-03-2011 01:53 PM #4Senior Member
- Join Date
- Apr 2011
- Posts
- 815
In your inc_config.php file, add the following:
toCode:'enableJsonCompression'=>false, 'enableCoupons'=>true,
This should make the new API PHP file compatible with MFPmu, however, some parts of the site may break. If you find anything, post here, I'm sure it'll help Zaphod sort things out quicker.Code:$prosperentApi = new Prosperent_Api(array( 'api_key' => $arSiteConfig['prospAPIKey'], 'channel_id' => $arSiteConfig['prospChannel'], 'limit' => $arSiteConfig['prodsPerPage'], 'enableJsonCompression'=>false, 'enableCoupons'=>true, 'extendedSortMode' => "@relevance DESC, price ASC" ));
-
11-03-2011 03:14 PM #5Junior Member
- Join Date
- Jun 2011
- Location
- New Salem Pa.
- Posts
- 24
I made the changes.(thank you). The main page the products do not display. all that is their is the buy form - more info - add to bag and in stock. I have 4 choices in the nav bar 2 work and 2 will not display products. In the recent searches some will links will display products and some give me the error - Warning: Invalid argument supplied for foreach() in /home/kanoonii/public_html/domain.com/inc_functions.php on line 733
Warning: Invalid argument supplied for foreach() in /home/kanoonii/public_html/domain,com/inc_functions.php on line 460.
the version of mfpmu is MFPmu-v1.13.
Joe
-
11-03-2011 04:14 PM #6Senior Member
- Join Date
- Apr 2011
- Posts
- 815
Hi Joe,
You'd need to clear the "feeds" table after you did this. You can usein phpMyAdmin to do that.Code:truncate table feeds;
In your inc_functions.php file, find the line:
and change it to:Code:if ($arFeed) {
That should take care of the foreach() errors you're receivingCode:if ($arFeed['data']) {
-
11-03-2011 04:40 PM #7Senior Member
- Join Date
- Apr 2011
- Posts
- 199
Why update the API at all until MFPmu is updated?
-
11-03-2011 05:39 PM #8
-
11-03-2011 06:25 PM #9Senior Member
- Join Date
- Apr 2011
- Posts
- 199
-
11-03-2011 07:48 PM #10
lol, i've told people in several threads to wait. A system as complete and complex as mfpmu is going to need some code updates to make use of everything properly.

Reply With Quote
