Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • jasonconn Friend
    #967959

    Hello… I’m getting this error on the JA Promo bar:
    Warning: Invalid argument supplied for foreach() in /home/listan6/public_html/gofundmichigan.com/modules/mod_japromobar/assets/elements/jacustom.php on line 76

    Mo0nlight Moderator
    #968125

    Hi.

    You can remove the warning by two ways.

    1. Go to administrator -> System -> Global Configuration -> Server -> Error Reporting -> Set to System default.

    2. Edit the file : modules/mod_japromobar/assets/elements/jacustom.php

    Change the code :

                foreach ($moduleParams AS $k => $v) {
                    if (!in_array($k, $include)) {
                        unset($moduleParams->$k);
                    }
                }

    To.

    if (!empty($moduleParams)) {
                foreach ($moduleParams AS $k => $v) {
                    if (!in_array($k, $include)) {
                        unset($moduleParams->$k);
                    }
                }
            }

    Regards.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  Mo0nlight 8 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum