We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18373 ☆ A M B ☆
    • 3,141 Posts
    As the topic title might reveal - I have no idea where to find my error.

    I’m working on wrapping up VersionX in a package, and created some build files. Running it works fine:
    [2011-01-05 18:58:00] (INFO @ /versionx/_build/build.transport.php)
    
    Created new transport package with signature: versionx-1.0-alpha1
    
    [2011-01-05 18:58:00] (INFO @ /versionx/_build/build.transport.php)
    
    Registered package namespace as: versionx
    
    [2011-01-05 18:58:00] (INFO @ /versionx/_build/build.transport.php)
    
    Packaged namespace "versionx" into package.
    
    [2011-01-05 18:58:00] (INFO @ /versionx/_build/build.transport.php)
    
    Packaged in 1 Plugin Events for VersionX.
    
    [2011-01-05 18:58:01] (INFO @ /versionx/_build/build.transport.php)
    
    
    Package Built.
    
    Execution time: 0.6368 s


    and there appears a package.zip in the core/packages folder.

    Nothing seems to be wrong so far.

    But then, when I copy the transport package to my clean try out install’s core/packages folder and search locally... This is what happens:
    - License & readme shows up perfectly fine
    - There’s no set up options, so it goes on to the Console. Funny thing is (well, it aint actually funny), the console is hidden behind the Setup Options screen.
    - When I drag the setup options away, or the install finished and it is being closed, this is what’s in the console:
    Console running...
    Attempting to install package with signature: versionx-1.0-alpha1
    Package found...now preparing to install.
    Grabbing package workspace...
    Workspace environment initiated, now installing package...
    PHP warning: Illegal offset type
    Successfully installed package versionx-1.0-alpha1

    Okay, so it gives a warning but yet it claimed it’s installed.

    As it’s not working properly (see below) this is what happens when I uninstall the package completely:
    Finding package with signature: versionx-1.0-alpha1
    Package found. Preparing to uninstall.
    Removed modCategoryClosure instance with primary key Array ( [0] => 6 [1] => 6 )
    Removed modCategoryClosure instance with primary key Array ( [0] => 0 [1] => 6 )
    Removed modCategory instance with primary key 6
    Removing files in file resolver: H:/xampp/htdocs/clean/core/components/versionx
    Removing files in file resolver: H:/xampp/htdocs/clean/assets/components/versionx
    PHP warning: Illegal offset type
    Removed modMenu instance with primary key new_document
    Skipping modAction object (data object does not exist and cannot be removed): 0
    Removed modAction instance with primary key 74
    Removed modNamespace instance with primary key versionx
    Package successfully uninstalled with signature: versionx-1.0-alpha1


    When checking what happened this is what I find/miss:
    - The CMP is installed, but it’s taking over other menu items (eg, instead of showing "VersionX", it’s taken over the "site" menu or "clear cache" depending on how often I’ve tried to reinstall the addon without reinstalling/running upgrade on the clean install.
    - Clicking the menu item loads the CMP as expected.
    - The Category which should be installed exists.
    - The plugin, however, is missing.

    I’ve based my build from the RTFM and Quip source from Github.


    I’ve attached the (failing) package and a .rar of my build files.

    If there’s any pointers on where to look at to fix this (simply have no idea how to debug the install>build) it would be greatly appreciated.. If there’s any info that might help, please ask.


    FF 3.6 / Windows Vista
      Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

      Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
      • 11055 ☆ A M B ☆
      • 3,112 Posts
      You’re using Quip’s build.transport.php
      Clean up the codes, please.
        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.
        • 18373 ☆ A M B ☆
        • 3,141 Posts
        It’s based off the examples in the RTFM, which indeed mean top comments of Quip... I prefer to comment out what I’m not using rather then deleting it all, to look back when needed. Top comment.. dunno why I left it, but can’t harm either.

        Besides that, the only reference to Quip is something I missed on line 83, which is the name of the plugin. As there’s no plugin being generated (with any name) that doesn’t seem like a plausible reason for the whole thing failing.


        Just noticed it doesn’t seem to write the database structure.. do I need something else for that?
          Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

          Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
          • 21257 MODX Staff
          • 730 Posts
          Are you using bleeding edge MODx by chance, off the develop branch?
            Mike Schell
            Lead Developer, MODX Cloud
            Email: [email protected]
            GitHub: https://github.com/netProphET/
            Twitter: @mkschell
            • 18373 ☆ A M B ☆
            • 3,141 Posts
            No I’m not - it’s a 2.0.6 basic install.

            The version I’ve been coding on runs Codemirror (remote server), and on the version I try to install the package (locally, xampp) I have no other addons at all. (Both are 2.0.6 basic)
              Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

              Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.