We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Hi All,

    I'm just trying out MXCalendar and it looks like it is going to be pretty much what I need. However, after the install and a few tests, as soon as I go one or two months forward or click on a category with no events, I get the following error:

    Warning: array_multisort() [function.array-multisort]: Argument #1 is expected to be an array or a sort flag in /home/stjaneschool/www/2012/core/cache/includes/elements/modsnippet/3.include.cache.php on line 283

    Today <>

    Any thoughts?
      Michael Smull
      http://www.bigpixelstudio.com
      twitter: @mdsdesign
      • 10484
      • 32 Posts
      It appears to be an issue caused by months that return no events.
        Garret Overstreet
        Business and Marketing Consultant
      • Bug fixed in next release 1.1.6-pl; also did put the patch on your local version.
          Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
          Visit CharlesMx.com for latest news and status updates.
        • Hi Charles - should I be updating to version 1.1.6? And will that mess up any of the customizations that we've done?
            Michael Smull
            http://www.bigpixelstudio.com
            twitter: @mdsdesign
          • that release isn't out just yet, and when it is will not impact any adjustments we've made.
              Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
              Visit CharlesMx.com for latest news and status updates.
            • I've just started making use of this extra and have the error message that mdsdesign has been experiencing appearing on those months that don't have any data - could you let me know where the patch is so that I can apply it prior to the next release.

              Thanks
                Helen Warner
                Number one pixel!
                Proud to be linked with MODX at Crimson Pixel
              • Further info re this error, it also appears if you try to filter using the Categories if there are no dates yet added.

                Warning: array_multisort() [function.array-multisort]: Argument #1 is expected to be an array or a sort flag in /home/site/public_html/folder/cache/includes/elements/modsnippet/26.include.cache.php on line 283

                  Helen Warner
                  Number one pixel!
                  Proud to be linked with MODX at Crimson Pixel
                • You can try downloading the most current version of the snippet and manually replacing it.

                  current snippet for mxCalendar
                    Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                    Visit CharlesMx.com for latest news and status updates.
                  • Hi Charles, did as you suggested but it wiped the calendar altogether from front-end!

                    Re-installed current version 1.1.5 and everything re-appeared!
                      Helen Warner
                      Number one pixel!
                      Proud to be linked with MODX at Crimson Pixel
                    • ah crap, yes there were other changes to that set that would have thrown an error, sorry thought that would be a quick fix.

                      there should be a full release this week, other wise you can look around line 279 of the snippet for the "array_multisort" line in the else statement and comment it out so it looks like the following:

                      // Sort the data with volume descending, edition ascending
                      // Add $data as the last parameter, to sort by the common key
                      if(count($arrEventDates) && $displayType == 'list'){
                          if($dir == 'ASC')
                              array_multisort($date, SORT_ASC, $event, SORT_ASC, $arrEventDates);
                          else
                              array_multisort($date, SORT_DESC, $event, SORT_DESC, $arrEventDates);
                      } else {
                          //array_multisort($date, SORT_ASC, $event, SORT_ASC, $arrEventDates);
                      }


                      sorry for the confusion

                        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                        Visit CharlesMx.com for latest news and status updates.