We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26931
    • 2,314 Posts
    anonymized-26931 Reply #1, 8 years ago
    Hi there,

    just updated a MODX installation to the current version 1.1, which went pretty much without a problem

    pages that had a MaxiGallery call would throw an error though:

    « MODX Parse Error »
    Error : mysql_query(): Access denied for user ''@'localhost' (using password: NO)
    Error information 	
    ErrorType[num] 	WARNING[2]
    File 	[...]/assets/snippets/maxigallery/maxigallery.php
    Line 	241
    Source 	$query=mysql_query("DESC $mg->pics_tbl");
    Current Snippet 	MaxiGallery


    in line 241 of maxigallery.php I changed

    $query=mysql_query("DESC $mg->pics_tbl");

    to
    $query = $modx->db->query("DESC $mg->pics_tbl");


    which solved the problem. Galleries are displayed fine, but there's no "upload picture" button to upload and manage galleries

    my Snippet calls are:
    [!MaxiGallery? &pictureTpl=`mgPicture` &display=`pictureview` &max_pic_size=`420x320` &max_thumb_size=`60x45` &max_pic_number=`6` &keep_bigimg=`1` &max_big_size=`750x550` &quality_big=`70`!]
    [!MaxiGallery? &galleryPictureTpl=`mgGalleryPicture` &galleryOuterTpl=`mgGalleryOuter` &js=`assets/templates/holzundart/mygallery.js` &manage_target=`56`!]

    {{mgGalleryOuter}}:
    [+maxigallery.managebutton:isnot=``:then=`<center>[+maxigallery.managebutton+]</center><br />`+]
    </div>[+maxigallery.pictures+]</div>

    the pictures show up, but no managebutton


    and on the gallery manager page (ID56):
    [!MaxiGallery? &pictureTpl=`mgPicture` &display=`pictureview` &max_pic_size=`420x320` &max_thumb_size=`60x45` &is_target=`1` &max_pic_number=`6` &keep_bigimg=`1` &max_big_size=`750x550` &quality_big=`70`!]

    does anyone have an idea why that could be & how to solve it?

    thanks a lot, cheers, j
      • 20413
      • 2,877 Posts
      Major changes to the new versions of EVO:

      MODX Evolution 1.1—Dozens of Improvements and Over 300 Commits
      https://modx.com/blog/2016/02/29/modx-evolution-1.1%E2%80%94dozens-of-improvements-and-over-300-commits/

      "The new Evo version is not case insensitive with snippet calls. A snippet called WhatEver could not called with [[whatever]] or [[Whatever]]. That was allowed in previous versions."
      https://github.com/modxcms/evolution/issues/503

      I am not sure if anyone have an upgraded version of MaxiGallery.
        @hawproductions | http://mrhaw.com/

        Infograph: MODX Advanced Install in 7 steps:
        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
        • 26931
        • 2,314 Posts
        anonymized-26931 Reply #3, 8 years ago
        thanks a ton! will check & report back smiley
          • 26931
          • 2,314 Posts
          anonymized-26931 Reply #4, 8 years ago
          ok, for some reason the "upload pictures" button shows up (didn't change anything, so probably something was cached), but still, clicking on it in order to go to the edit gallery page results in a 404 ...let's see
            • 26931
            • 2,314 Posts
            anonymized-26931 Reply #5, 8 years ago
            okay, the 404 is because it adds a question mark '?gal_id=63' instead of the '&gal_id=63' ...now it only shows the first image, but no edit, upload or any other gallery functions
              • 20413
              • 2,877 Posts
              It seems like people have abandoned maxigallery :/
              https://github.com/search?utf8=%E2%9C%93&q=maxigallery

              Last time I used EVO for a project I only dealt with manager users
              https://github.com/modxcms/evolution/issues/291

              But here are some other repositories to look for an upgraded maxigallery:
              http://mrhaw.com/bookmarks#modx1
                @hawproductions | http://mrhaw.com/

                Infograph: MODX Advanced Install in 7 steps:
                http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
                • 26931
                • 2,314 Posts
                anonymized-26931 Reply #7, 8 years ago
                thanks, will check out the repositories

                MG works with a MODX 1.0.14 version btw + I just realized, that this one still uses MG 0.5.2 @_@
                  • 26931
                  • 2,314 Posts
                  anonymized-26931 Reply #8, 8 years ago
                  update: it works now after enabling userfriendly URLs

                  thanks a lot, cheers
                    • 23849
                    • 223 Posts
                    @sharkbait,

                    I'm having a similar issue on this site after updating to Evo 1.2 - http://mercyconnections.org/

                    Can you describe the exact steps you took to fix MaxiGallery? I have Friendly URLs turned on already, but that doesn't help...

                    Let me know! Thanks so much.
                      Nick Hoag
                      Creative Partner
                      The FutureForward

                      http://thefutureforward.com
                      • 36649
                      • 77 Posts
                      Thanks sharkbeit for hinting at the change in line 241 - I did get Maxigallery to work in Evo 1.2. Great!