Jump to content

howdytom

Members
  • Posts

    60
  • Joined

  • Last visited

Posts posted by howdytom

  1. Adam, Thank you for this fantastic module. It works great with PW 3.0.165 and Yubiykeys.

    Some additional thoughts:

    • I added three Yubikeys. In case of loss, how can I revoke one specific Yubikey? It looks like I have to turn off U2F and deactivate all keys. Then re-add all YubiKeys again, right?
    • How can I recover access due to PHP incompatibility or PW version issues? Can I remove TfaU2F from the site/modules directory?

    Feature Request:

    1. You should add some highlighting when a new security key has been added. The confirmation changes so quickly and could be easily missed.
    2. A summary with all active keys and description field would be great.

    Excellent work!

    • Like 2
  2. I do have a follow-up question:

    Why is PHP GD and Imagick creation so slow when calling the frontend page? I have to add a lot of images to a PW project. When I add 2 images with 500kb file size, it takes almost 30 seconds to generate 8 WebP/JPEG variations. 

    The Image-sizer log looks good to me:

    2021-08-16 14:16:19	username /projekte/corporate-design-test… IMagick Resized: testimage.jpg => testimage.800x0se.jpg (800x0) 1.4486 secs 516332 => 78717 bytes (quality=75, sharpening=soft)
    1 hour ago
    2021-08-16 14:16:17	username /projekte/corporate-design-test… IMagick Resized: testimage.jpg => testimage.500x0se.jpg (500x0) 0.8468 secs 516332 => 37217 bytes (quality=75, sharpening=soft)
    1 hour ago
    2021-08-16 14:16:17	username /projekte/corporate-design-test… IMagick Resized: testimage.jpg => testimage.1920x1080se.jpg (1920x1080) 4.7528 secs 516332 => 307819 bytes (quality=75, sharpening=soft)

    Update: I have tested the site on a production server and image variants are created much faster than in MAMP.

  3. @netcarver Thanks. PW Error/Exception logs are empty. Once I hit reload, the Image-sizer log looks good to me.

    IMagick Resized: 1_portfoliologo.png => 1_portfoliologo.1500x0se.png (1500x0) 2.7099 secs 31021 => 49210 bytes (quality=75, sharpening=soft)

    I have enabled PHP/Apache debug log. But there are no error message besides 

    [client ::1:51180] AH01964: Connection to child 11 established (server ___default___:443)
    [core:debug] [pid 1456] protocol.c(2338): [client ::1:51180] AH03155: select protocol from , choices=h2,http/1.1 for server pw-portfolio
    [ssl:debug] [pid 1456] ssl_engine_kernel.c(2351): [client ::1:51180] AH02043: SSL virtual host for servername pw-portfolio found
    [ssl:debug] [pid 1455] ssl_engine_kernel.c(2231): [client ::1:51179] AH02041: Protocol: TLSv1.2, Cipher: ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
    [Sun Aug 15 22:14:47.614382 2021] [ssl:info] [pid 1456] 

    Update: I have removed the webP properties from the image fields. However I am still getting 500 Internal Server Error when I add 4-10 files to an image field. Image creating is working fine when I add 1 image, though. 

    It looks like a MAMP specific limitation. Is there anything else I can look up? Not sure how can I debug this further.

  4. Hello,

    Adding more than 4 images to a repeater image field, Processwire crashes with 500 Internal Server Error. The Image file size is below 500 kb and ~2000px, 72dpi. Refreshing the page multiple times will generate and show the image variants at some point. There is no difference using GD or IMagick Image Sizer. Apache/PHP Logs does not show any errors. MAMP is set to 1024M memory_limit, max_execution_time 300 and upload_max_filesize 50MB. I guess this should be more than enough?

    Is this a PW or MAMP Pro issue? Any advised what is causing the Internal Server Error?

    Image Fieldtype settings:
        'quality' => 75,
        'upscaling' => true,
        'cropping' => 'southeast'
        
        4 JPEG image dimensions: 1920px, 1500px, 800px, 500px
        4 webP image dimensions: 1920px, 1500px, 800px, 500px

    ProcessWire 3.0.165
    MAMP Pro 6.4.2
    Apache2.4
    PHP7.4.16

    I really appreciate any replies. 

  5. That is a great and question. I do not know any European companion compared to Vimeo or YouTube. Most services are based on AWS or Akamai CDN. Vimeo ships with excellent customisation options and a great UI. To be honest, I have not used it so far. Usually I am hosting video files myself and preload the mp4 and webM files. In terms of playback performance and bandwidth, I have never experienced major slowness. Even with higher bitrates and scrubbing through the video, the playback is great on most recent devices. Todays smartphones are soo powerful. Using crippled shared servers could lead to slow progressive downloads, though. If you are looking for a full featured SasS video compression, Vimeo's and YouTube pricing and customisations are unbeatable. Otherwise you have to spend some time on tweaking the video compression before uploading. I guess this is not the answer you were looking for. ?

    • Like 1
  6. I have just started with this wonderful Menu Builder module.? 

    1. How can I set a rel="noopener noreferrer"" attribute
    2. How can I set title tag to my <a href menu links, which uses the menu item title?

    Is there a defaultOptions?

    • Like 1
  7. @kixe, Thank you for pointing me in the right direction. As a PW newbie the PHP resource is exactly I was looking for.

    PW's Page Reference is so beautiful implemented. Now I can easily select any internal page in a repeater item. Front images show up just fine with a headline and linked to the corresponding internal page. Perfect. Thanks!

    echo "<a href='{$item->front_productpage->url}'><img src='{$front_img_800->url}'></a>";
    echo "<h2><a href='{$item->front_productpage->url}'>{$item->front_productpage->title}</a></h2>";

     

    • Like 1
  8. Hi there,

    Newbie question: I would like to choose and link to an internal page within repeater items. I have created a repeater with an image and Page Reference field called front_repeater. Page Reference field value type is set to 'Single page'. How can I show the Page Reference title and link on a repeater? Here's what I tried so far.

      <?php if(count($page->front_repeater)) {
      foreach($page->front_repeater->find("limit=10") as $item) {
        $front_img_800 = $item->front_img_800->size(800,0,);
          echo "<img src='$front_img_800->url'>";
          echo "<a href='$item->front_productpage->url'";
          echo "<h2>$item->front_productpage->title</h2>";
          }
        }

    Unfortunately it still shows:

    1022->title
    1023->title

    I really appreciate any reply.

  9. @flydev ?? Is pwbs4 minimal profile still compatible with PW 3.0.148? I would love to test Bootstrap4 Carousel in PW. I am getting Syntax error on a fresh PW installation.

    SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'created'
    SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'created'
    SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pw-bootstrap4minimal.modules' doesn't exist

     

    • Like 1
  10. Hi there,

    sorry for asking such a dump newbie question. I am trying to create a really simple minimal blog. How I can load image(s) from a template blog-post in my home.php? I am able to print fields e.g. titles, body, however images won't show up. Also image scaling doesn't work. The Field: images is set to "array if items".

    I really appreciate any reply.

      	<!-- /.Load image from blog-blog template  -->
      	<?php $blogposts = $pages->find("template=blog-post");
        	foreach($blogposts as $blogpost){
          	$blogimages = $blogpost->images;
          	$imgthumb = $blogimages->size(500, 300); 	
            echo "<img src='{$imgthumb->url}' alt='{$imgthumb->description}'>";
          	echo "<h2><a href='{$blogpost->url}' >{$blogpost->title}</a></h2>";
            echo "<p>{$blogpost->body}</p>";
            echo "<br>";
          }
      	?>

     

  11. What is the best to way to structure my PW Template for long blogposts with repeating text paragraphs, images and custom code? I am looking for a flexible solution to add and rearrange text or images. A blogpost looks always different:

    --TEXT PARAGRAPH (CKEditor)
    --IMAGE
    --IMAGE
    --TEXT PARAGRAPH (CKEditor)
    --IMAGE
    --CUSTOM CODE FIELD
    --TEXT PARAGRAPH (CKEditor)

    Here's what I came up with so far...
    1. One approach could be using CKEditor along with ckeditor config.autoGrow. However I don't like the idea to add all content into one giant textfield and with one looooong  scrollbar.
    2. Repeater module seems to be the right choice. But text and image fields are always bundled within the repeater, even when no text field is required. Editing long post could be really confusing. 
    3. ProFields and Repeater Matrix looks like the right solution I am looking for. According to the ProFields description it is possible to add, combine, arrange different fields in one Repeater. Is that correct?

    Thank you for any help. 

  12. Hi there,

    I am a Drupal themer and sitebuilder for some time and consider switching to Processwire. In Drupal you can use Drush, a command-line shell for installing modules and clearing Cache… It really speeds up working with site projects. 

    As I found out you can also use git or composer to install Processwire. However it looks like it's limited to Core only. Is that correct? Is it possible to use composer to install Processwire modules?

    Thank your for your help and pointing me in the right direction.

×
×
  • Create New...