Jump to content

Custom CMS Info Block default icons disappear on edit, how to add


Recommended Posts

Fresh install of latest 1.6. After I changed text in the Custom CMS Information Block, none of the icons appear, nor formatting. The UI shows bullets, no images, but then does not appear on site. Now just a paragaph. Even reset.

 

How is this done and how to readd the icons?

Edited by Dougadanny (see edit history)
Link to comment
Share on other sites

Fresh install of latest 1.6. After I changed text in the Custome CMS Information Block, none of the icons appear, nor formatting. The UI shows bullets, no images, but then does not appear on site. Now just a paragaph. Even reset.

 

How is this done and how to readd the icons?

Same for me.

Source code is still there

 

<ul>
<li><em class="icon-truck" id="icon-truck"></em>
<div class="type-text">
<h3>Lorem Ipsum</h3>
<p>Lorem ipsum dolor sit amet conse ctetur voluptate velit esse cillum dolore eu</p>
</div>
</li>
<li><em class="icon-phone" id="icon-phone"></em>
<div class="type-text">
<h3>Dolor Sit Amet</h3>
<p>Lorem ipsum dolor sit amet conse ctetur voluptate velit esse cillum dolore eu</p>
</div>
</li>
<li><em class="icon-credit-card" id="icon-credit-card"></em>
<div class="type-text">
<h3>Ctetur Voluptate</h3>
<p>Lorem ipsum dolor sit amet conse ctetur voluptate velit esse cillum dolore eu</p>
</div>
</li>
</ul>

but no more formatting or icons. Module updated to version 1.1 ...

  • Like 1
Link to comment
Share on other sites

Lethal how u doing Bro?
I've downloaded the PS Install from there website and removed the module folder from there.

I've also edited the blockcmsinfo.php to make the prestashop think that the older version is the new one.

Open the blockcmsinfo.php with the notepad and find the line:

$this->version = '1.0';

and change to:

$this->version = '1.1';

I hope it helps
 

Link to comment
Share on other sites

I have now downgraded by replacing with files from original PrestaShop installation.

 

However now I can't edit - the edit button is now replaced by an update button....

 

PrestaShop: This is really not optimal that we're FORCED to update - in this case forced to update to a version with major bugs.

Link to comment
Share on other sites

Open the blockcmsinfo.php which is located inside the module folder with a notepad and find the line:

 

$this->version = '1.0';

 

and change to:

 

$this->version = '1.1';

 

after that the update mesage will desapear :)

 

 

Thanks I'll do that for now. However I think that PrestaShop need to redesign this behavior, thus not forcing users to update immediately if editing is required.

Link to comment
Share on other sites

Regaring the fix work around... I can confirm:

  1. In Admin, uninstall the updated module, then delete it
  2. Delete the module files from server
  3. In the original Prestashop install files or your backup, go to [root]/modules/blockcmsinfo module and change the version number in the blockcmsinfo.php file.
    $this->version = '1.0';
    and change to:
    $this->version = '1.1';
  4. Upload this original (previous version) module blockcmsinfo to your server modules folder
  5. Go to Admin and install and edit as necessary

Previous version works with 1.6, not the latest, so don't update, change the version number.

 

Just as others above have mentioned, I too had already posted another forum topic about this issue, beign forced to update. We should have the option not to update and still be able to configure modules without this version trick.

Edited by Dougadanny (see edit history)
Link to comment
Share on other sites

Problem solved:

 

Just edit /modules/blockcmsinfo/blockcmsinfo.php and make the following change to line 194

 

Change this:

foreach ($content as $key => $value)
    $content[$key]['text'] = substr(strip_tags($value['text']), 0, 200);

 

To this:

foreach ($content as $key => $value)
    $content[$key]['text'] = $value['text'];
Edited by xavigibert (see edit history)
  • Like 1
Link to comment
Share on other sites

 

Problem solved:

 

Just edit /modules/blockcmsinfo/blockcmsinfo.php and make the following change to line 194

 

Change this:

foreach ($content as $key => $value)
    $content[$key]['text'] = substr(strip_tags($value['text']), 0, 200);

 

To this:

foreach ($content as $key => $value)
    $content[$key]['text'] = $value['text'];

 

 

Worked like a charm! Thanks xavigibert

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

I have noticed that every time I edit the module adds a  " so that the php code is:

 

<li><em class="""icon-truck"""></em>
<div class="""type-text""">

 

when it should be like this:

<li><em class="icon-truck"></em>
<div class="type-text">
 

You can erase a thousand times &quote; (meaning " in ascii) because every time you give will add you to save that damn code again

Can that be the problem?

Link to comment
Share on other sites

 

Problem solved:

 

Just edit /modules/blockcmsinfo/blockcmsinfo.php and make the following change to line 194

 

Change this:

foreach ($content as $key => $value)
    $content[$key]['text'] = substr(strip_tags($value['text']), 0, 200);

 

To this:

foreach ($content as $key => $value)
    $content[$key]['text'] = $value['text'];

 

Didn't work for me unfortunately.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

I have an issue with the custom cms info block as well.

When i try to edit a page or add a new one and try to save it nothing happens.

I have already tried to clear cache but thats not the problem.

 

Console gives me the following error:

 

Uncaught Error: Attempting to use a disconnected port object

 

Also interesting is the following screenshot.

 

Why is it showing 0 pages?

 

gFurWhr.png

Link to comment
Share on other sites

×
×
  • Create New...