Jump to content

Autofahrn

Members
  • Posts

    328
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by Autofahrn

  1. Just in case I am not the only one trying to use this great (thanks @owzim!) module inside a repeater with dynamic (AJAX) load of items, it indeed works using the "current" (Oct 2017) dev version along with a tiny fix in ace-extended.js:

    The issue is, that acefy is invoked multiple times for the same inputfield, which finally seems to trash the JS engine. Just add two lines of code right before $textarea.each (in acefy):

    		:
    		//Fix: Avoid duplicate and recursive invocation of acefy
            if($textarea.hasClass(ACE_INITIALIZED_CLASS))
                return;
            $textarea.addClass(ACE_INITIALIZED_CLASS);    // Mark wrapper as initialized
            //FixEnd
            
            $textarea.each(function() {
    		:

    and add an appropriate initialization for ACE_INITIALIZED_CLASS at the head of the module:

            ACE_INITIALIZED_CLASS        = 'AceInitialized'
    • Like 1
  2. 1 hour ago, uiui said:

    Wouldn't you want to not have the same content available multiple times?

    At least in my setups I prefer to see the same content, regardless if I come from the international domain (i.e. www.domain.com/pagename) or use the language sub-path (www.domain.de/en/pagename).

    1 hour ago, uiui said:

    Shouldn't you rather redirect the old URLs to the new domain?

    Sure you could, with this setup its just not necessary.

  3. @GhostRider, what's wrong with the 'Custom excluded files and paths' box? To exclude a path simply enter it without a file pattern like:

    /site/assets/pwpw/
    /vendorOrAnyCustomDirectoryAtThisLevel/

    To exclude the ProCache stuff using a regular expression should do:

    %/ProCache-[^/]+$%  # Ignore ProCache directory

    To exclude image variants you may try this:

    %\.\d+x\d+\.[^/]+$%  # Ignore variants created by PW

    • Like 2
  4. Sorry, I somehow missed the FTP part since already the package build seems to fail. And there should be the name of the zipfile in the "package build failed, <ZipNameExpectedHere> doesn't exist" message.

    Seems to be a Windows system, guess there could be an issue with the backslash path separator.

    Edit: The attached version 1.3.13 fixes the (false) package build error, supports custom package name and allows prefixing local path with ~/ to refer to webroot.

     

    Duplicator-ATO1.3.13.zip

    • Like 1
  5. @dragan: are you working on a shared server or do you indeed have a /public_html directory right at filesystem's root?

    "absolute path" relates to filesystem not webroot, so you are free to locate the backup destination somewhere else.

    It probably would be a good idea to support the regular home prefix, so path may be entered relative to webroot (something like "~/backup-folder"), at the moment you have to prefix the path with the location of your webroot.

    • Like 2
  6. 20 minutes ago, bernhard said:

    I can remember that there has been some discussion about that already in the forum, but unfortunately I could not find the topic. Maybe someone has a link for me?

    Not sure if you refer to my experimental tweak to get a read-only demo view for the RepeaterFlex in admin: https://pwflex.team-tofahrn.de/?preview=PG132107923

    There only was a miniature "discussion" in closed RepeaterMatrix section:

     

  7. 17 hours ago, bernhard said:

    But I'm not sure how I should/could do that to get a helpful output?

    At least it would tell you, from where your hook was called. For example, if its a pageSave hook, you'll see who is actually invoking $page->save. In this case you probably had seen, that the hook was invoked twice from the same originator.

    If that was a technical question, you'll either do this, to get a preformatted trace of the stack (not sure why I needed DEBUG_BACKTRACE_IGNORE_ARGS in my quick test):

    	ob_start();
    	debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
    	$preformattedCallStack = '<pre>' . ob_get_clean() . '</pre>';

    Or dump the full trace data array using tracy:

    	bd(debug_backtrace());

     

    • Like 1
×
×
  • Create New...