Join Free
  • Inbox
    + Reply to Thread
    Page 1 of 2 1 2 LastLast
    Results 1 to 10 of 20
    1. #1
      Junior 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

    2. #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.

    3. #3
      Junior Member
      Join Date
      Jun 2011
      Location
      New Salem Pa.
      Posts
      24
      I thought it was all the same.
      thanks
      Joe

    4. #4
      In your inc_config.php file, add the following:

      Code:
      		'enableJsonCompression'=>false,
      		'enableCoupons'=>true,
      to

      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"
      	));
      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.

    5. #5
      Junior 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

    6. #6
      Hi Joe,

      You'd need to clear the "feeds" table after you did this. You can use
      Code:
       truncate table feeds;
      in phpMyAdmin to do that.

      In your inc_functions.php file, find the line:

      Code:
      if ($arFeed) {
      and change it to:

      Code:
      if ($arFeed['data']) {
      That should take care of the foreach() errors you're receiving

    7. #7
      Why update the API at all until MFPmu is updated?

    8. #8
      Quote Originally Posted by browntwn View Post
      Why update the API at all until MFPmu is updated?
      Because he was asked to?

    9. #9
      Quote Originally Posted by Prosperent Brian View Post
      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.
      Quote Originally Posted by AcidRaZor View Post
      Because he was asked to?
      You mean like here where Brian suggested that he wait.

    10. #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.

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts