We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14050
    • 788 Posts
    Alright. I tried the manual install and I am still getting the error that "This does not appear to be a valid MODx Resource Wizard package." Here is the info from phpinfo() about zlib support. I tried this with two Wizard modxpkg samples, and keep getting the same error.

    ZLib Support enabled
    Compiled Version 1.2.1.2
    Linked Version 1.2.1.2

    Directive Local Value Master Value
    zlib.output_compression Off Off
    zlib.output_compression_level -1 -1
    zlib.output_handler no value no value
      Jesse R.
      Consider trying something new and extraordinary.
      Illinois Wine

      Have you considered donating to MODx lately?
      Donate now. Every contribution helps.
      • 7370
      • 8 Posts
      haha jesster .. maybe it’s our version :S
        • 25478
        • 26 Posts
        how do i work on the css? things are getting a bit messy.
          • 26435
          • 1,193 Posts
          Well, I have tried to recreate these errors on 5 of my remote hosting servers, and two different local testing servers and I have not been able to get the same errors when using a modxpkg.zip file. I will look into other possible causes for this not working in your environment, but it seems that it is probably situational to your servers. Looking at the download page for this module, it has been downloaded 180 times, given that some of those must be repeat downloads from the folks who could not get it working, then at least 80-100 of these must be installed and working correctly without problems. I will have to learn a bit more about how Apache handles permissions, because I am sure that it is related. I am sorry I don’t have a solution for you right now.

          -sD-
            Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
            All of the above... in no specific order.


            I send pointless little messages
            • 7370
            • 8 Posts
            All good man ..

            Thanks for your help so far!
              • 14050
              • 788 Posts
              Scotty,

              I was able to do a quick code hack and get the Resource Wizard to work. In the file "wizard.class.php" on lines 134-141, I commented out this:

              		/*if ($this->resource_pkgmime !== "application/zip") {
              			$this->evalErrArray = array(''=>$main_button);
              			$this->evalErr = "<h2>$not_valid</h2>\n";
              			$this->evalErr .= $this->wizard_buildForm();
              			$this->evalErr .= $this->wizard_getFoot($this->evalErrArray);
              			unlink($this->eval_path.$this->resource_pkgfile) or die('Could not remove upload from '.$this->eval_path.$this->resource_pkgfile);
              			return $this->evalErr;
              		}*/


              I then installed SkinGraft, and everything worked fine. That leads me to believe that the conditional is always returning true, resulting in the false error message. Now by no means would I recommend this to anyone as a permanent solution, as this conditional would be important if you weren’t uploading a .zip file.
                Jesse R.
                Consider trying something new and extraordinary.
                Illinois Wine

                Have you considered donating to MODx lately?
                Donate now. Every contribution helps.
                • 26435
                • 1,193 Posts
                Quote from: jesster444 at Nov 12, 2006, 10:29 PM

                Scotty,

                I was able to do a quick code hack and get the Resource Wizard to work. In the file "wizard.class.php" on lines 134-141, I commented out this:

                		/*if ($this->resource_pkgmime !== "application/zip") {
                			$this->evalErrArray = array(''=>$main_button);
                			$this->evalErr = "<h2>$not_valid</h2>\n";
                			$this->evalErr .= $this->wizard_buildForm();
                			$this->evalErr .= $this->wizard_getFoot($this->evalErrArray);
                			unlink($this->eval_path.$this->resource_pkgfile) or die('Could not remove upload from '.$this->eval_path.$this->resource_pkgfile);
                			return $this->evalErr;
                		}*/


                I then installed SkinGraft, and everything worked fine. That leads me to believe that the conditional is always returning true, resulting in the false error message. Now by no means would I recommend this to anyone as a permanent solution, as this conditional would be important if you weren’t uploading a .zip file.

                Actually, I think it is safe to comment this section out. If a package is not a zip file, It will fail on the check for the "install.php" file, What happens when you try to upload a .jpg or other file type with this code commented out? does it leave the file in [base_path]/assets/modules/wizard/eval/ or does it unlink it after failure because it is not a package? I am not sure my directory cleanup function will work if it fails, you may have to occasionally clean out the eval folder.

                I am not sure why it is always returning that the file is not mimetype "application/zip" on certain servers, but it is probably a useless check anyway. I will put it out in version 1.9 which will be available this week.

                If anyone else is brave enough to try this tip please do, and let me know if you have success or failure.

                -sD-
                  Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                  All of the above... in no specific order.


                  I send pointless little messages
                  • 25478
                  • 26 Posts
                  the modx resource wizard is installed. but it cannot install the wizard packages. what’s wrong??
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Quote from: romyaspe at Nov 12, 2006, 06:41 PM

                    how do i work on the css? things are getting a bit messy.

                    You open up the css file in a text editor and change things. To get an idea of what things to change, study a "view source" of the offending page, and determine exactly which element’s styling needs to be tweaked.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 25478
                      • 26 Posts
                      the skingraft has been installed thru resource wizard.

                      however, i do not see it the way the screenshot shows what skingraft should look like.

                      i don’t see the preview.

                      and the worst part is, i could not install sg.zip files with skingraft.

                      how do i correct this?