We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Quote from: fourroses666 at Feb 13, 2014, 01:54 PM
    oké cool, possible to list these in the Package Manager?
    Not yet. Inside of Package Manager is the next task.

    Before we could do this: download the current packages, create the needed folder structure and .tpl files and upload them als new releases. A lot of packages are already in the right format on https://github.com/extras-evolution. Dmytro should know which are russian versions.
      • 2762
      • 1,198 Posts
      Nicola (Banzai) Reply #12, 10 years ago
      I really love this package Manager and i'm using very often to install my templates and resources - a gret tool to fast creating sites.

      Issues:

      - Does not work to install Templates (tpl)
      - sometimes fails to install packages (blank page)

      Pros:

      - its a great tool at all
      - you can export chunks, templates, snippets etc with MakeInstall Module (extracted from Pubkit) and create packages in 10 minutes
      https://github.com/Nicola1971/makeinstall-plugin

        Free MODx Graphic resources and Templates www.tattoocms.it
        -----------------------------------------------------

        MODx IT  www.modx.it
        -----------------------------------------------------

        bubuna.com - Web & Multimedia Design
      • Quote from: banzai at Apr 28, 2014, 09:53 PM

        - Does not work to install Templates (tpl)
        If I'm right there was an issue in your makeinstall module (https://github.com/Nicola1971/makeinstall-plugin/pull/1).

        Quote from: banzai at Apr 28, 2014, 09:53 PM

        - sometimes fails to install packages (blank page)

        If you send me this package (i.e. by mail or by dropbox) I could look for issues in the module or in the package.
          • 2762
          • 1,198 Posts
          Quote from: Jako at May 12, 2014, 06:55 PM
          Quote from: banzai at Apr 28, 2014, 09:53 PM

          - Does not work to install Templates (tpl)
          If I'm right there was an issue in your makeinstall module (https://github.com/Nicola1971/makeinstall-plugin/pull/1).

          I know that issue, but the problem still exist with @category template

          NOTE: i'm not the author of this plugin (i'm not a coder) it's extracted from Pubkit packages

          This an example of error when i try to istall templates:
          « MODX Parse Error »
          MODX encountered the following error while attempting to parse the requested resource:
          « Execution of a query to the database failed - Unknown column 'name' in 'where clause' »
          SQL > SELECT * FROM `dev2domain_db`.`modx_site_templates` WHERE name = "START"
          Basic info
          REQUEST_URI : 	http://dev2.domain.com/manager/index.php?a=112&id=2
          Manager action : 	112 - Execute module
          Referer : 	http://dev2.domain.com/manager/index.php?a=112&id=2
          User Agent : 	Mozilla/5.0 (Windows NT 6.3; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
          IP : 	xx.xx.x.xxx
          Benchmarks
          MySQL : 	0.0036 s (7 Requests)
          PHP : 	0.0773 s
          Total : 	0.0808 s
          Memory : 	2.84537887573 mb
          
          Backtrace
          1	include_once()
          manager/index.php on line 560
          2	evalModule()
          manager/processors/execute_module.processor.php on line 69
          3	eval()
          manager/processors/execute_module.processor.php on line 82
          4	include_once()
          manager/processors/execute_module.processor.php(82) : eval()'d code on line 13
          5	PackageManager->run()
          assets/modules/packagemanager/packagemanager.module.php on line 35
          6	PackageManager->getLocalPackages()
          assets/modules/packagemanager/classes/packagemanager.class.php on line 167
          7	PackageManager->installLocalPackage()
          assets/modules/packagemanager/classes/packagemanager.class.php on line 379
          8	PackageInstaller->installPackage()
          assets/modules/packagemanager/classes/packagemanager.class.php on line 683
          9	PackageInstaller->installTemplates()
          assets/modules/packagemanager/classes/packageinstaller.class.php on line 71
          10	PackageInstaller->installType()
          assets/modules/packagemanager/classes/packageinstaller.class.php on line 155
          11	DBAPI->select()
          assets/modules/packagemanager/classes/packageinstaller.class.php on line 444
          12	DBAPI->query()
          manager/includes/extenders/dbapi.mysql.class.inc.php on line 231


          Quote from: Jako at May 12, 2014, 06:55 PM
          Quote from: banzai at Apr 28, 2014, 09:53 PM

          Quote from: banzai at Apr 28, 2014, 09:53 PM

          - sometimes fails to install packages (blank page)

          If you send me this package (i.e. by mail or by dropbox) I could look for issues in the module or in the package.

          initially I thought it was a problem of my packages, but it also happens with packages downloaded from github, like multitv [ed. note: banzai last edited this post 9 years, 11 months ago.]
            Free MODx Graphic resources and Templates www.tattoocms.it
            -----------------------------------------------------

            MODx IT  www.modx.it
            -----------------------------------------------------

            bubuna.com - Web & Multimedia Design
            • 16278
            • 928 Posts
            Re makeinstall error - correct - perils of copy & paste! wink

            The SQL error looks familiar. I think I came across it when updating the MODX installer for Clipper, and it's a fault in the installer code (maybe PM has inherited something?).
            Unknown column 'name'
            Templates don't have a 'name' column like other elements, they have a 'templatename' column.

            Also, is the parameter "templatenamename" in PM packageinstaller.class.php correct?
            if (count($docblock)) {
            				$fields = array(
            					'templatename' => $docblock['name'],
            					'description' => (!empty($docblock['version']) ? '<strong>' . $docblock['version'] . '</strong> ' : '') . $docblock['description'],
            					'category' => $this->getCategoryId($docblock['modx_category']),
            					'content' => $code,
            					'locked' => (isset($docblock['lock_template']) && $docblock['lock_template']) ? 1 : 0
            				);
            				$result[] = $this->installType('templates', 'templatenamename', $fields, $docblock['version'], $backup);
            			}
            


            :) KP
            • Fixed with 1.0-RC4.
                • 9995
                • 1,613 Posts
                Will PackageManager be default in the next Evo?
                  Evolution user, I like the back-end speed and simplicity smiley
                  • 2762
                  • 1,198 Posts
                  I have a strange issue with RC4: Does not load english language (see screenshot).
                  Works with my native language (italian), with german, russian....
                    Free MODx Graphic resources and Templates www.tattoocms.it
                    -----------------------------------------------------

                    MODx IT  www.modx.it
                    -----------------------------------------------------

                    bubuna.com - Web & Multimedia Design
                  • Stupid combination of include_once and array declaration fixed.
                      • 2762
                      • 1,198 Posts
                      Thanks Jako - now works in english too. smiley


                      I still have problems with the installation of templates.

                      MODX encountered the following error while attempting to parse the requested resource:
                      « Execution of a query to the database failed - Unknown column 'templatenamename' in 'where clause' »
                      SQL > SELECT * FROM `dev2domain_db`.`modx_site_templates` WHERE templatenamename = "" 
                      


                      I've created a test template (based on old modx host) - the package includes only the template tpl
                      (You can download from here: https://www.dropbox.com/s/g5bmt773xvl86zj/testinstalltemplate.zip)

                      this is the "template description":

                      /**
                       * MODxTestPackageManager
                       *
                       * <strong>1.0</strong> test install template with package manager
                       *
                       * @category	template
                       * @internal	@modx_category Demo Content
                       */
                      .......
                      

                      Whats wrong?





                        Free MODx Graphic resources and Templates www.tattoocms.it
                        -----------------------------------------------------

                        MODx IT  www.modx.it
                        -----------------------------------------------------

                        bubuna.com - Web & Multimedia Design