0

I have 1.9.0.3 Magento website, everything was fine, website wasnt edited in a year and when I tried to edit some existing static block and save or save and continue editing I am returned in CMS/Static Blocks panel and no changes are made. It allows me to create new static block, but when I copy paste code from existing old block same happened. What I noticed when playing with blocks when I copy/paste code from existing block in new block for example:

 <div id="banner-slider-demo-2-new" class="owl-carousel owl-theme owl-middle-narrow owl-banner-carousel">
    <div class="item" style="background:url({{media url="wysiwyg/porto/homepage/slider/02/13_new.jpg"}}) 

Cant save the new created block. When I remove word "style" everything is ok and block is saved. It happen with all lines with "style". Code is not proper without "style" but block is saved. I flushed everything, deleted cache, same happened. In system.log I found error that repeats 20 times per day in last 12 months:

2019-05-20T16:27:25+00:00 ERR (3): Warning: Invalid argument supplied for foreach() in /home/fedorsoaps/public_html/app/code/local/Smartwave/Socialfeeds/Helper/Data.php on line 79

And, line 79 in Data.php is:

 79    foreach ($doc->getElementsByTagName('ul')->item(0)->childNodes as $child) {
        $raw = $doc->saveXML($child);
        $li = preg_replace("/<li[^>]+\>/i", "", $raw);
        $peopleList[$i] = preg_replace("/<\/li>/i", "", $li);
        $i++;

Meanwhile website frontend is working normally but I cant make any changes. I am not coder, just basic Magento installer, thanks for any help.

0

Have you tried without the smart tag (or whatever magento calls it). So..

secure

style="background:url('https://www.domain.name.com/media/wysiwyg/porto/homepage/slider/02/13_new.jpg')"

or non-secure

style="background:url('http://www.domain.name.com/media/wysiwyg/porto/homepage/slider/02/13_new.jpg')"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.