We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44064
    • 185 Posts
    Quote from: paulbohman at Jan 15, 2014, 04:32 PM
    Is there documentation for how this is supposed to work? I still haven't had success getting it to create any files.

    When I first went into Statiker, I wasn't sure what I was supposed to do. I clicked on Create Site, and put in a name, context and path, but it rejected the path, even though it was a legitimate path. I tried a few options, then after several attempts, I decided to try creating a new directory in the assets/components/statiker folder, and Statiker finally accepted that. I then clicked on build all, and it showed the progress bar, and said that it successfully finished, but there aren't any files anywhere that I can find. Since there is no documentation that I can find, I don't know what to do next or where to look for the files. The process took only a few seconds for 1000 pages, so I'm thinking that the process actually failed, even though it said it finished successfully.

    What is supposed to happen? Where do I find the files?

    The same issues, are there any updates? This component will be very helpful for many people I suppose.
      Anton Tarasov
      MODX Developer

      Email: [email protected]
      Web: antontarasov.com
      • 17301
      • 932 Posts
      Bump.

      If anyone can shed any light on this I'd be very grateful.
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 3749
        • 24,544 Posts
        I notice that some of the files on GitHub have Windows line terminators (\M). That could be causing problems.

        https://github.com/oleics/Statiker/blob/master/core/components/statiker/processors/mgr/site/create.php

        The code for the files is from 2011, so it may not be compatible with current MODX versions.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 17301
          • 932 Posts
          Thanks for investigating Bob very much appreciated.
          I did suspect that it may not work with the latest version of MODX, but I also tried to revert back to a version that was available at the time of the last commit but unfortunately still had no luck. From previous forum posts and comments on github I assume it does work though (though may be limited to older versions of MODX).

          Unfortunately the documentation is really scare and vague though with no explination as to what 'statiker.farm_url' refers to or if you need to create the system settings yourself. I've gone ahead and created the system setting keys myself anyway to test as there was nothing under the statiker area, but I still have no idea what the farm_url refers to but I think this may be where it's failing

          [2017-10-04 22:36:39] (ERROR @ /home/***/***/nimrod/core/components/statiker/lib/statikerbuilder.class.php : 296) User warning: <url> malformed
          [2017-10-04 22:36:39] (ERROR @ /home/***/***/nimrod/core/components/statiker/lib/statikerbuilder.class.php : 168) Got a  from /nimrod/assets/components/statiker/farm/?ctx=web&id=1


          If anyone can give any assistance I'd be really grateful and happy to pay for your time to get this figured out.
            ■ email: [email protected] | ■ website: https://alienbuild.uk

            The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
            • 3749
            • 24,544 Posts
            I'm pretty sure that's a cURL failure from a bad URL.

            These lines in that file might be the issue:

            $path = $modx->makeUrl($resource->get('id'), $context->get('key'), '', 'full');
            #$path = $context->makeUrl($resource->get('id'), '', 'full');
            $path = array_pop(explode($modx->getOption('site_url', $context->config), $path, 2));



            Try commenting them all out adding the first line below:

            $path = $modx->makeUrl($resource->get('id'), '', '', 'full');
            
            // $path = $modx->makeUrl($resource->get('id'), $context->get('key'), '', 'full');
            // #$path = $context->makeUrl($resource->get('id'), '', 'full');
            // $path = array_pop(explode($modx->getOption('site_url', $context->config), $path, 2));
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 17301
              • 932 Posts
              Thanks,

              That did seem to do something as the progress bar came up and progressed along all the files, however nothing has been generated anywhere.
                ■ email: [email protected] | ■ website: https://alienbuild.uk

                The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.