• mkdes

    (@mkdes)


    WordPress close tags in uploaded SVG files.

    Example: https://i.imgur.com/ikixoQP.png

    Enable Media Replace don’t do it.

    It occurs errors on website created into Bricks Builder.

    Fatal error: Uncaught TypeError: stripslashes(): Argument #1 ($string) must be of type string, stdClass given in /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/elements/slider-nested.php:1324 Stack trace: #0 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/elements/slider-nested.php(1324): stripslashes(Object(stdClass)) #1 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/elements/base.php(2316): Bricks\Element_Slider_Nested->render() #2 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/frontend.php(523): Bricks\Element->init() #3 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/elements/container.php(942): Bricks\Frontend::render_element(Array) #4 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/elements/base.php(2316): Bricks\Element_Container->render() #5 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/frontend.php(523): Bricks\Element->init() #6 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/elements/container.php(942): Bricks\Frontend::render_element(Array) #7 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/elements/base.php(2316): Bricks\Element_Container->render() #8 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/frontend.php(523): Bricks\Element->init() #9 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/elements/container.php(942): Bricks\Frontend::render_element(Array) #10 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/elements/base.php(2316): Bricks\Element_Container->render() #11 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/frontend.php(523): Bricks\Element->init() #12 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/frontend.php(622): Bricks\Frontend::render_element(Array) #13 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/frontend.php(872): Bricks\Frontend::render_data(Array) #14 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/page.php(7): Bricks\Frontend::render_content(Array) #15 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-includes/template-loader.php(106): include('/home/lehad/dom...') #16 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-blog-header.php(19): require_once('/home/lehad/dom...') #17 /home/lehad/domains/[WEBSITEDOMAIN]/public_html/index.php(17): require('/home/lehad/dom...') #18 {main} thrown in /home/lehad/domains/[WEBSITEDOMAIN]/public_html/wp-content/themes/bricks/includes/elements/slider-nested.php on line 1324
    • This topic was modified 5 months ago by mkdes.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter mkdes

    (@mkdes)

    Sorry. This Bricks Builder replaces the tags.

    Unfortunately Enable Media Replace is not compatible with Bricks.

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi mkdes,

    Could you please send us the particular SVG file so we can do a few tests?

    Thank you!

    Thread Starter mkdes

    (@mkdes)

    I don’t know what is going on. Now work fine. I can not reproduce problem.

    Plugin Support Gerard Blanco

    (@sixaxis)

    No problem, we’ll be around if you need further assistance ??

    Thread Starter mkdes

    (@mkdes)

    Now we know, there is no problem with SVG files.

    This is problem with all files replaced by Enable Media Replace pligin on Brick Builder page.

    This is documentation: https://forum.bricksbuilder.io/t/no-bug-nested-slider-options-sanitization-error/23780/2

    Can You adapt Your plugin plugin to Bricks Builder?

    If You need access to website with brick builder, I can give You full access. Mail me at [email protected]

    • This reply was modified 3 months, 4 weeks ago by mkdes.
    • This reply was modified 3 months, 4 weeks ago by mkdes.
    • This reply was modified 3 months, 4 weeks ago by mkdes.
    Thread Starter mkdes

    (@mkdes)

    Enable Media Replace plugin replace page post_meta value (_bricks_page_content_2) from this:

    https://i.imgur.com/YXVnfKE.png

    to this:

    https://i.imgur.com/UH37ote.png

    This is only part of code.

    If you want test this is the export only this one post meta _bricks_page_content_2:

    https://test.militaryshop24.eu/post_id_8_wp_postmeta.sql

    Media file name is slide-01.webp

    Problem is with private function replaceContent into Replacer.php

    I think your plugin shouldn’t replace post meta at all.

    • This reply was modified 3 months, 2 weeks ago by mkdes.
    • This reply was modified 3 months, 2 weeks ago by mkdes.
    • This reply was modified 3 months, 2 weeks ago by mkdes.
    • This reply was modified 3 months, 2 weeks ago by mkdes.
    • This reply was modified 3 months, 2 weeks ago by mkdes.
    • This reply was modified 3 months, 2 weeks ago by mkdes.
    Thread Starter mkdes

    (@mkdes)

    This is a big mistake that apart from replacing the file, other things are changed. You do it WRONG.

    Plugin Support Gerard Blanco

    (@sixaxis)

    mkdes,

    We’ve done some testing and it does look like there is an integration issue between Enable Media Replace and Bricks. We are working on fixing this bug, but unfortunately I don’t have a timeline yet, so I recommend you keep an eye on the updates and changelog to see when the bug is fixed.

    Thanks for your patience and understanding.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.