We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11055 ☆ A M B ☆
    • 3,112 Posts
    Are you running MyISAM for your MySQL?
    How many datas have you inserted for the test?
    What is your snippet call?
    Describe me what kind of test have you done?
      Rico
      Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
      MODx is great, but knowing how to use it well makes it perfect!

      www.virtudraft.com

      Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

      Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

      Maintainter/contributor of Babel

      Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
      • 7243
      • 21 Posts
      was a bug, should have gotten back here sooner, has been patched...single word message sent out from github from splittingred: "fixed"

        • 7243
        • 21 Posts
        odd, on one site, in the package manager, it said that there was an update available to simple search as well as a few other packages such as wayfinder and formit, I clicked in update and all the popups (changelog, license) were empty, I proceeded as I would with any update and it failed to install here’s what was in the console,
        Attempting to install package with signature: simplesearch-1.3.0-rc2
        Package found...now preparing to install.
        xPDOZip: Error opening archive at /rootdirectory/directory/directory/directory/core/packages/simplesearch-1.3.0-rc2.transport.zip
        PHP warning: ZipArchive::extractTo() [ziparchive.extractto]: Invalid or unitialized Zip object
        PHP warning: ZipArchive::close() [ziparchive.close]: Invalid or unitialized Zip object
        Could not unpack package /rootdirectory/directory/directory/directory/core/packages/simplesearch-1.3.0-rc2.transport.zip to /rootdirectory/directory/directory/directory/core/packages/. SIG: simplesearch-1.3.0-rc2
        Could not install package with signature: simplesearch-1.3.0-rc2
        

        the package manager says simple search isn’t installed,showing the install button rather than the uninstall button, yet the site’s search is fine, as is the landing page’s pagination.
        How do I do a manual install/re-install? Evo was a matter of deleting, but with the new PM, I feel I could cause some problems with db if I do this.

        will hold off on updating other sites
          • 28215
          • 4,149 Posts
          Change your system setting ’archive_with’ to 1.

          You have a faulty ziparchive PHP extension. That setting will fix it.
            shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
            • 11055 ☆ A M B ☆
            • 3,112 Posts
            Quote from: splittingred at Mar 07, 2011, 05:02 PM

            Change your system setting ’archive_with’ to 1.

            You have a faulty ziparchive PHP extension. That setting will fix it.
            @shaun,
            I’m just curious,
            I know that this unzip options were added lately probably since 2.0.3+.
            How about to make an autoswitch (like try-catch) if one option fails ?
            No one really needs to specify this zip options exclusively, because this is a system environment related.
              Rico
              Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
              MODx is great, but knowing how to use it well makes it perfect!

              www.virtudraft.com

              Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

              Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

              Maintainter/contributor of Babel

              Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
              • 7243
              • 21 Posts
              Quote from: splittingred at Mar 07, 2011, 05:02 PM

              Change your system setting ’archive_with’ to 1.

              You have a faulty ziparchive PHP extension. That setting will fix it.

              Yeah, this site in particular is not a WAMP host (remote not localhost) sooo...
              but I did set Force PCLZip Archives to yes

              and when I went back to PM to install, same error

              Attempting to install package with signature: simplesearch-1.3.0-rc2
              Package found...now preparing to install.
              Could not unpack package /directory/directory/directory/directory/core/packages/simplesearch-1.3.0-rc2.transport.zip to /directory/directory/directory/directory/core/packages/. SIG: simplesearch-1.3.0-rc2
              Could not install package with signature: simplesearch-1.3.0-rc2


              As I said, simple search is installed, but I don’t have an uninstall option available to me, just the install option. What do I have to edit in the db and which files should I delete so I can re-download and install? Or should I just chill until a new version is released in the future?
                • 28215
                • 4,149 Posts
                Sounds like PHP doesn’t have the permissions to write to core/packages/

                You can try downloading the zip manually and installing that way.
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                  • 7243
                  • 21 Posts
                  EDIT: ok, uploaded the zip directly to core/packages after deleting the old 1.3.0 zip file, installed via PM and everything is fine.
                    • 16494
                    • 4 Posts
                    simplesearch.class.php, str. 128
                            if (!empty($str)) $this->searchString = strip_tags($this->modx->sanitizeString($str));


                    Seems calling this:
                    $this->modx->sanitizeString($str)


                    causes cutting all non ASCII symbols (at least cyrillic). I don’t actually know why do you call $this->modx->sanitizeString while you have your own $this->sanitize method. May be there is a reason... Nevertheless on my system (MODx Revolution 2.0.8-pl (traditional)) it works like this...
                      • 11055 ☆ A M B ☆
                      • 3,112 Posts
                      @kventz,
                      probably you would like to post an improvement request about adding the ’TransAlias’-like plugin into SimpleSearch, or at the core level on the sanitizeString/sanitize methods.
                        Rico
                        Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                        MODx is great, but knowing how to use it well makes it perfect!

                        www.virtudraft.com

                        Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                        Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                        Maintainter/contributor of Babel

                        Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.