Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

U

ujarak

@ujarak
About
Posts
8
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Delete unused media
    U ujarak

    Hi! I'm interested in this. Has this situation changed? Or is there any other way to clean the media library to remove unused media?
    Thank you!

    General Discussion

  • qTranslate-XT title rendering
    U ujarak

    Thanks a lot! :) <3

    Bug Reports

  • qTranslate-XT title rendering
    U ujarak

    When using qTranslate-XT for multilingual support, the global site title renders as raw encoded text (e.g. [:en]My Site[:es]Mi Sitio[:]) instead of the translation for the active language.

    You can see an example here https://delunesadomingo.es/

    Bug Reports

  • 502 errors when saving a post — broken recursive call in update_thumbnails.php for 'stack' elements
    U ujarak

    That's ok, thank you :)

    Bug Reports

  • 502 errors when saving a post — broken recursive call in update_thumbnails.php for 'stack' elements
    U ujarak

    Thanks for the quick response and for looking into it so fast :)

    Bug Reports

  • 502 errors when saving a post — broken recursive call in update_thumbnails.php for 'stack' elements
    U ujarak

    Hi,

    I've been getting 502 errors when saving certain projects in the WordPress admin. After digging into the nginx error logs I traced the issue to a PHP warning cascade in wp-content/themes/lay/updatejson/update_thumbnails.php, lines 428–444:

    PHP Warning: Trying to access array offset on int in update_thumbnails.php on line 428
    PHP Warning: Trying to access array offset on int in update_thumbnails.php on line 429
    ... (repeats for every line in the unpack block)
    

    The warnings flood the FastCGI response headers until nginx rejects the response with a 502.

    Bug cause

    update_thumbnail_in_json_recursive() accepts a single $thumb_data array as its third parameter. However, the stack branch calls it passing individual positional arguments instead:

    else if ($array[$i]['type'] == 'stack' ) {
        LayUpdateThumbnails::update_thumbnail_in_json_recursive(
            $array[$i]['cont'], $needsUpdate, $post_id, $permalink, $title,
            $featuredImgId, $featuredImgUrl, $ar, $sizesArr, ...
        );
    }
    

    This means $thumb_data receives the value of $post_id (an integer) inside the recursive call. When the function then tries to unpack $thumb_data['post_id'], $thumb_data['permalink'], etc., PHP fires a warning on every single line of the unpack block.

    For reference, the carousel and elementgrid branches in the same function call it correctly:

    else if ($array[$i]['type'] == 'carousel') {
        LayUpdateThumbnails::update_thumbnail_in_json_recursive(
            $array[$i]['carousel'], $needsUpdate, $thumb_data
        );
    }
    

    Hope this helps. Happy to provide any additional info if needed.

    Bug Reports

  • carousel height, min, max and clamp
    U ujarak

    Ok! Thanks for answering :)
    I'll try writing a custom css class for now...

    Addons

  • carousel height, min, max and clamp
    U ujarak

    Hello!
    I'm trying to adjust the carousel sizes in my site and It would be great being able to use min, max and clamp in the fixed height option inside Carousel Size. Is there any current workaround for achieving this or it should be added as a new feature in the addon?
    Thanks a lot in advance <3

    Addons
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Search