Recent Topics

1 Apr 02, 2015 13:33    

I recently upgraded b2evo from V506 to V522. Since then all codes enclosed inside [ codeblock] do not display properly on the site, espcially where there are html codes within the codeblock. Instead of converting chars like '<' and '>' to the correct code so that it will be displayed properly as is on the blog, it seems to parse the code and break the layout.

Here's an example of what it looks like in V506 and in V522:
http://imgur.com/IVBqA21

The code as follows: (space added to '[codeblock......' and '[/code.....' show that it shows up here)

[ codeblock lang=html line=1]
<div class="video-container">
<iframe width="640" height="480" src="//link-to-video" frameborder="0" allowfullscreen></iframe>
</div>
[ /codeblock]

Any ideas why?

2 Apr 03, 2015 00:18

There is a new plugin specifically for escaping code. Can you fiddle with it? (I'm on my iphone, I can't look into details now)

3 Apr 03, 2015 11:40

Is it Short Codes plugin? I tried to enable and disable this plugin, the result is the same for both.

5 Apr 04, 2015 02:40

No, I'm talking about the plugin named "Escape code" which has the description "Escapes html tags in code blocks" and which should be installed by default with priority 8.

Do you have this plugin installed and enabled (as "stealth") on your blog?

6 Apr 04, 2015 02:43

You should have this on your blog.

7 Apr 04, 2015 05:32

It's an existing blog so it wasn't enabled. It's now enabled and the setting is the same as screenshot, but still not showing the codeblock section correctly.

8 Apr 05, 2015 00:42

Once you have enabled the plugin, please go to the maintenance tools in the backoffice and click "clear pre-rendered content cache" to make sure that the plugin actually gets applied.

9 Apr 05, 2015 17:24

that fixed it! thanks!

10 Apr 05, 2015 18:27

Argh... so it worked on my dev server. When I copied the upgraded files to production, did the same to the admin - enabled escape code plugin and clear pre-rendered cache (and all other caches). The codeblock sections do not render properly. :(
Anything else I need to do?

11 Apr 05, 2015 21:48

There has to be a difference between your dev and prod server setup.

You can try making a new post to see if the plugin works. If yes then it's a cache issue for the old posts. If even the new posts doesn't work, then it's a plugin issue.

Is the plugin set to stealth on all blogs where you need it?

12 Apr 06, 2015 11:12

I thought there could be different settings on the servers, but I don't have in-depth skill to see what they are, other than the versions - both Ubuntu, V14.04.2 LTS (dev, hosted at home) and V14.04.1 LTS (prod, hosted on AWS). I'm not sure what to check.

The plugin is automatically set to stealth when enabled, and it's stealth on all blogs.

Here's what I tried. The output is fine when created a new post. When go to edit existing post, preview is also fine. Editing existing post and save, then output is fine.

Does this have to do with pre-rendered content not fully cleared (even though I tried to clear all of them via sysem > maintenance)?

13 Apr 06, 2015 20:10

Apparently it's only a caching issue. Maybe even a browser cache issue. Try clearing the cache from your browser.

In addition you may also try the maintenance tool that delete the full page caches.

14 Apr 08, 2015 17:58

It's not browser issue as it looks the same across various browsers. I have clear all the caches under maintenance.
I'll just go to individual posts to save them to fix this problem.


Form is loading...