Jump to content

Claus

Members
  • Posts

    82
  • Joined

  • Last visited

Posts posted by Claus

  1. I’m getting this when I try to go to the Duplicator module:

    Fatal Error: Uncaught Error: Call to undefined function shell_exec() in site/modules/Duplicator/Duplicator.module:1439
    
    #0 [internal function]: Duplicator::getModuleConfigInputfields(Array)
    #1 wire/core/Modules.php (4130): call_user_func(Array, Array)
    #2 wire/core/Wire.php (419): Modules->___getModuleConfigInputfields('Duplicator', Object(InputfieldForm))
    #3 wire/core/WireHooks.php (952): Wire->_callMethod('___getModuleCon...', Array)
    #4 wire/core/Wire.php (484): WireHooks->runHooks(Object(Modules), 'getModuleConfig...', Array)
    #5 wire/modules/Process/ProcessModule/ProcessModule.module (1680): Wire->__call('getModuleConfig...', Array)
    #6 wire/modules/Process/ProcessModule/ProcessModule.module (1415): ProcessModule->renderEdit('Duplicator', Array)
    #7 wire/core/Wire.php (413): ProcessModule->___executeEdit()
    #8 wire/core/WireHooks.php (952): Wire->_callMethod('___executeEdit', Array)
    #9 wire/core/Wire.php (484): WireHooks->runHooks(Object(ProcessModule), 'executeEdit', Array)
    #10 wire/core/ProcessController.php (350): Wire->__call('executeEdit', Array)
    #11 wire/core/Wire.php (413): ProcessController->___execute()
    #12 wire/core/WireHooks.php (952): Wire->_callMethod('___execute', Array)
    #13 wire/core/Wire.php (484): WireHooks->runHooks(Object(ProcessController), 'execute', Array)
    #14 wire/core/admin.php (160): Wire->__call('execute', Array)
    #15 wire/modules/AdminTheme/AdminThemeDefault/controller.php (13): require('/customers/a/0/...')
    #16 site/templates/admin.php (15): require('/customers/a/0/...')
    #17 wire/core/TemplateFile.php (328): require('/customers/a/0/...')
    #18 wire/core/Wire.php (413): TemplateFile->___render()
    #19 wire/core/WireHooks.php (952): Wire->_callMethod('___render', Array)
    #20 wire/core/Wire.php (484): WireHooks->runHooks(Object(TemplateFile), 'render', Array)
    #21 wire/modules/PageRender.module (575): Wire->__call('render', Array)
    #22 wire/core/Wire.php (416): PageRender->___renderPage(Object(HookEvent))
    #23 wire/core/WireHooks.php (952): Wire->_callMethod('___renderPage', Array)
    #24 wire/core/Wire.php (484): WireHooks->runHooks(Object(PageRender), 'renderPage', Array)
    #25 wire/core/WireHooks.php (1060): Wire->__call('renderPage', Array)
    #26 wire/core/Wire.php (484): WireHooks->runHooks(Object(Page), 'render', Array)
    #27 wire/modules/Process/ProcessPageView.module (184): Wire->__call('render', Array)
    #28 wire/modules/Process/ProcessPageView.module (114): ProcessPageView->renderPage(Object(Page), Object(PagesRequest))
    #29 wire/core/Wire.php (416): ProcessPageView->___execute(true)
    #30 wire/core/WireHooks.php (952): Wire->_callMethod('___execute', Array)
    #31 wire/core/Wire.php (484): WireHooks->runHooks(Object(ProcessPageView), 'execute', Array)
    #32 index.php (55): Wire->__call('execute', Array)
    #33 {main}
    thrown (line 1439 of site/modules/Duplicator/Duplicator.module) 
    
    This error message was shown because: you are logged in as a Superuser. Error has been logged.

     

    • Thanks 1
  2. Hi Jürgen

    I was configuring the module, and after turning asterisks off, I got this:

    Fatal Error: Uncaught TypeError: Cannot assign string to property FrontendForms\Label::$enableAsterisk of type int in site/modules/FrontendForms/Formelements/Textelements/Label.php:30
    
    #0 site/modules/FrontendForms/Formelements/Inputelements/Inputfields.php (53): FrontendForms\Label->__construct()
    #1 site/modules/FrontendForms/Formelements/Inputelements/Inputs/Input.php (26): FrontendForms\Inputfields->__construct('captcha')
    #2 site/modules/FrontendForms/Formelements/Inputelements/Inputs/InputRadioMultiple.php (34): FrontendForms\Input->__construct('captcha')
    #3 site/modules/FrontendForms/Formelements/Captcha/AbstractImageCaptcha.php (32): FrontendForms\InputRadioMultiple->__construct('captcha')
    #4 site/modules/FrontendForms/Formelements/Captcha/variants/DefaultImageCaptcha.php (27): FrontendForms\AbstractImageCaptcha->__construct()
    #5 site/modules/FrontendForms/FrontendForms.module (1686): FrontendForms\DefaultImageCaptcha->__construct()
    #6 wire/core/Modules.php (4112): FrontendForms->getModuleConfigInputfields(Object(InputfieldWrapper))
    #7 wire/core/Wire.php (419): Modules->___getModuleConfigInputfields('FrontendForms', Object(InputfieldForm))
    #8 wire/core/WireHooks.php (952): Wire->_callMethod('___getModuleCon...', Array)
    #9 wire/core/Wire.php (484): WireHooks->runHooks(Object(Modules), 'getModuleConfig...', Array)
    #10 wire/modules/Process/ProcessModule/ProcessModule.module (1680): Wire->__call('getModuleConfig...', Array)
    #11 wire/modules/Process/ProcessModule/ProcessModule.module (1415): ProcessModule->renderEdit('FrontendForms', Array)
    #12 wire/core/Wire.php (413): ProcessModule->___executeEdit()
    #13 wire/core/WireHooks.php (952): Wire->_callMethod('___executeEdit', Array)
    #14 wire/core/Wire.php (484): WireHooks->runHooks(Object(ProcessModule), 'executeEdit', Array)
    #15 wire/core/ProcessController.php (350): Wire->__call('executeEdit', Array)
    #16 wire/core/Wire.php (413): ProcessController->___execute()
    #17 wire/core/WireHooks.php (952): Wire->_callMethod('___execute', Array)
    #18 wire/core/Wire.php (484): WireHooks->runHooks(Object(ProcessController), 'execute', Array)
    #19 wire/core/admin.php (160): Wire->__call('execute', Array)
    #20 wire/modules/AdminTheme/AdminThemeDefault/controller.php (13): require('/customers/a/0/...')
    #21 site/templates/admin.php (15): require('/customers/a/0/...')
    #22 wire/core/TemplateFile.php (328): require('/customers/a/0/...')
    #23 wire/core/Wire.php (413): TemplateFile->___render()
    #24 wire/core/WireHooks.php (952): Wire->_callMethod('___render', Array)
    #25 wire/core/Wire.php (484): WireHooks->runHooks(Object(TemplateFile), 'render', Array)
    #26 wire/modules/PageRender.module (575): Wire->__call('render', Array)
    #27 wire/core/Wire.php (416): PageRender->___renderPage(Object(HookEvent))
    #28 wire/core/WireHooks.php (952): Wire->_callMethod('___renderPage', Array)
    #29 wire/core/Wire.php (484): WireHooks->runHooks(Object(PageRender), 'renderPage', Array)
    #30 wire/core/WireHooks.php (1060): Wire->__call('renderPage', Array)
    #31 wire/core/Wire.php (484): WireHooks->runHooks(Object(Page), 'render', Array)
    #32 wire/modules/Process/ProcessPageView.module (184): Wire->__call('render', Array)
    #33 wire/modules/Process/ProcessPageView.module (114): ProcessPageView->renderPage(Object(Page), Object(PagesRequest))
    #34 wire/core/Wire.php (416): ProcessPageView->___execute(true)
    #35 wire/core/WireHooks.php (952): Wire->_callMethod('___execute', Array)
    #36 wire/core/Wire.php (484): WireHooks->runHooks(Object(ProcessPageView), 'execute', Array)
    #37 index.php (55): Wire->__call('execute', Array)
    #38 {main}
    thrown (line 30 of site/modules/FrontendForms/Formelements/Textelements/Label.php) 
    
    This error message was shown because: you are logged in as a Superuser. Error has been logged.

    … and I can no longer edit the module settings. What do I do?

  3. I just upgraded from 0.60 to 0.63, and now I’m getting the following error:

      ["ERRORS"] array(1) 
      {
        [0]      string(126) "authenticated mechanism password may not be used: it was not requested any of the authentication mechanisms that are supported"
      }
    }
    array(1) 
    {
      ["DEBUGLOG"] string(811) "
    
    Resolving SMTP server domain "mailout.one.com"...
    Connecting to SMTP server "mailout.one.com" port 587...
    Connected to SMTP server "mailout.one.com".
    S 220 mailout2 ESMTP
    C EHLO mysite.local
    S 250-mailout2
    S 250-PIPELINING
    S 250-CHUNKING
    S 250-SIZE 104857600
    S 250-STARTTLS
    S 250-AUTH LOGIN PLAIN
    S 250-ENHANCEDSTATUSCODES
    S 250 8BITMIME
    C STARTTLS
    S 220 2.0.0 Ready to start TLS
    Starting TLS cryptographic protocol
    TLS started: STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT
    C EHLO forthehearts.local
    S 250-mailout2
    S 250-PIPELINING
    S 250-CHUNKING
    S 250-SIZE 104857600
    S 250-AUTH LOGIN PLAIN
    S 250-ENHANCEDSTATUSCODES
    S 250 8BITMIME
    "
    }

    And this is what my provider lists as the settings it likes

    Outgoing server: mailout.one.com
    Port and encryption:
    - 587 with STARTTLS (recommended)
    - 465 with TLS
    - 25 with STARTTLS or none
    Authentication: your email address and password

    I have it set up using 587, START-TLS and STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT

    Any ideas? Fixed – see below.

  4. 9 minutes ago, flydev ?? said:

    If you create this file on the root directory and navigate to https://mysite.xyz/test_disk.php it should work.

     

    ps: Please re-read my edited post above.

    Alright, it worked, and it returns nothing. The hosting provider is One.com

    I found a way to enable PHP debug in the One.com interface, and now I get:

    Fatal error: Uncaught Error: Call to undefined function disk_total_space() in /customers/a/0/5/website.com/httpd.www/test_disk.php:1 Stack trace: #0 {main} thrown in /customers/a/0/5/website.com/httpd.www/test_disk.php on line 1

     

    • Like 1
  5. 4 minutes ago, flydev ?? said:

    @Claus this issue is quite strange as it's a core PHP function.  

     

    Could you test to create a file test_disk.php containing the following code

    <?php echo phpversion() . "  -  " . disk_total_space(__DIR__); ?> 

    and navigate to this php page to check result ?

    I don’t think I can(?) The server is my ‘production’ server, and is using the PW .htaccess to deny such things. If you have an idea on how to do it please let me know!

  6. Just installed this module on the DEV version. But my hosting didn’t like it:

    Fatal Error: Uncaught Error: Call to undefined function disk_total_space() in site/modules/Duplicator/Duplicator.module:1135
    
    #0 site/modules/Duplicator/Duplicator.module (1230): Duplicator::getLocalFolderInfo()
    #1 [internal function]: Duplicator::getModuleConfigInputfields(Array)
    #2 wire/core/Modules.php (4110): call_user_func(Array, Array)
    #3 wire/core/Wire.php (420): Modules->___getModuleConfigInputfields('Duplicator', Object(InputfieldForm))
    #4 wire/core/WireHooks.php (951): Wire->_callMethod('___getModuleCon...', Array)
    #5 wire/core/Wire.php (485): WireHooks->runHooks(Object(Modules), 'getModuleConfig...', Array)
    #6 wire/modules/Process/ProcessModule/ProcessModule.module (1665): Wire->__call('getModuleConfig...', Array)
    #7 wire/modules/Process/ProcessModule/ProcessModule.module (1399): ProcessModule->renderEdit('Duplicator', Array)
    #8 wire/core/Wire.php (414): ProcessModule->___executeEdit()
    #9 wire/core/WireHooks.php (951): Wire->_callMethod('___executeEdit', Array)
    #10 wire/core/Wire.php (485): WireHooks->runHooks(Object(ProcessModule), 'executeEdit', Array)
    #11 wire/core/ProcessController.php (337): Wire->__call('executeEdit', Array)
    #12 wire/core/Wire.php (414): ProcessController->___execute()
    #13 wire/core/WireHooks.php (951): Wire->_callMethod('___execute', Array)
    #14 wire/core/Wire.php (485): WireHooks->runHooks(Object(ProcessController), 'execute', Array)
    #15 wire/core/admin.php (160): Wire->__call('execute', Array)
    #16 wire/modules/AdminTheme/AdminThemeDefault/controller.php (13): require('/customers/a/0/...')
    #17 site/templates/admin.php (15): require('/customers/a/0/...')
    #18 wire/core/TemplateFile.php (327): require('/customers/a/0/...')
    #19 wire/core/Wire.php (414): TemplateFile->___render()
    #20 wire/core/WireHooks.php (951): Wire->_callMethod('___render', Array)
    #21 wire/core/Wire.php (485): WireHooks->runHooks(Object(TemplateFile), 'render', Array)
    #22 wire/modules/PageRender.module (575): Wire->__call('render', Array)
    #23 wire/core/Wire.php (417): PageRender->___renderPage(Object(HookEvent))
    #24 wire/core/WireHooks.php (951): Wire->_callMethod('___renderPage', Array)
    #25 wire/core/Wire.php (485): WireHooks->runHooks(Object(PageRender), 'renderPage', Array)
    #26 wire/core/WireHooks.php (1059): Wire->__call('renderPage', Array)
    #27 wire/core/Wire.php (485): WireHooks->runHooks(Object(Page), 'render', Array)
    #28 wire/modules/Process/ProcessPageView.module (184): Wire->__call('render', Array)
    #29 wire/modules/Process/ProcessPageView.module (114): ProcessPageView->renderPage(Object(Page), Object(PagesRequest))
    #30 wire/core/Wire.php (417): ProcessPageView->___execute(true)
    #31 wire/core/WireHooks.php (951): Wire->_callMethod('___execute', Array)
    #32 wire/core/Wire.php (485): WireHooks->runHooks(Object(ProcessPageView), 'execute', Array)
    #33 index.php (55): Wire->__call('execute', Array)
    #34 {main}
    thrown (line 1135 of site/modules/Duplicator/Duplicator.module) 
    
    This error message was shown because: you are logged in as a Superuser. Error has been logged.

     

    • Like 1
  7. I could see I needed to split my ‘news’ page (that I use the Blog Module for) into multiple pages, so I entered ‘10’ in the field ‘Blog Homepage: Total Posts’ and pressed enter. Now the latest 10 posts are missing from the webpage, but they still exits in the database. What happened and how do I get the posts to show again?

    A further look around the database reveals that the pages_id of the six latest blog-posts are now used by other pages id.

  8. Hello people. I want to inject some ad hoc SVG objects into a page using Hanna code. The code is sanitised SVG + some JS to run the animations in it. However I can’t get my Hanna-code snippet to just be inserted into the relevant page. If I set ‘Code type’ to ‘Text/HTML’ I get this:

    1789189377_Screenshot2022-03-07at14_13_41.png.406f54826c437e6aee0af05075a313c8.png

    When I choose JS I get:

    <script type='text/javascript'>var attr = { }; 
            <object type="image/svg+xml"><svg xmlns="http://www …

    What do I do?

  9. Sorry, I am not a developer and it has been years since I looked at PW last – so please excuse my ignorance. This is just for my personal website where I am the only user. I have no idea where to put this code. Which file? I’m trying to put these SVGs in my `basic-page` and `blog-post` templates. In the `basic-page` there is just `$content = $page->body;` (and then some navigation).

    At least the `sth` field works, and I can upload the SVGs to it, and then place them in a page.

  10. 11 hours ago, aagd said:

    Do you output the SVG in an img-tag? Probably you need to output them as inline SVG, directly in the HTML with something like:

    file_get_contents($page->image->filename);

    Edit: I'd recommend an extra image field called sth. like "svg" that only allows svg format. You don't want JPGs end up inline like that. Also you probably don't need the XML declaration in the SVG.

    Seems like you are right. I have created the STH-field, and added it to the ‘basic-page’ template, set it to accept SVGs, but where do I put your code-snippet?

  11. 6 minutes ago, adrian said:

    image.png.2768521dc5f9a5df1108f28f25fd6cdf.png

    Bingo! Thank you very much Adrian! I was feeling that this SVG thing felt very un-Ryanesque. Of course he thought of that, it was just a matter of finding the switch.

    So now I am down to the new issue: How do I make these SVGs animate? See if any of this rings a bell: I can now upload the SVGs, and I can place them in a post, but only the first frame will show – no animation. Goes for all browsers, also after emptying the cache, re-opening the browsers. The SVGs in question will animate correctly when I right-click on one of them in the page, and open it in a new tab. The SVGs are animating using internal JavaScript, so can PW hinder this JS to fire?

  12. 2 minutes ago, adrian said:

    Ok, so I assume you have clicked the "Refresh" button at the top right of the upgrades module?

    Oh, several times. But just now I went to the Upgrades interface again, and now the DEV is listed. Apparently PW needed to have a think and a soak first. Also – having just done it now – the PW versions disappear from the list when I press ‘Refresh’!

    And now with the DEV version installed PW still refuse SVGs, and does not offer any hints about what to do.

×
×
  • Create New...