Code doesn't stay visible after edition

Permalink Browser Info Environment
I've started a ticket at about this problem.

Thanks !

V.Le Mieux

Type: Discussion
Status: In Progress
View Replies:
mesuva replied on at Permalink Reply
That's a strange one.

I can't see the actual code on the page at all, so it's either not saving correctly or something else is going wrong.

After you have added it to the page can you see the code while in edit mode?

What happens if you go back and edit this page, does the code re-appear?
vlemieux replied on at Permalink Reply
Thanks for your answer Mesuva.

The code disappear when I click the button "Save" : no more in the editor and not on the page...
mesuva replied on at Permalink Reply
That sounds like something is going wrong on the server when it tries to save.

You're welcome to email me at with your login details and I can try and spot the issue.
vlemieux replied on at Permalink Reply
May be something about text format ?
When I type directly in the editor the code remains
When I copy/paste the code it disappears.
vlemieux replied on at Permalink Reply
You can go back on the page : I set the number of lines to 100, and now there is a lot of (100 ?) blank lines...
vlemieux replied on at Permalink Reply
Trying on an other page :

A little piece of the whole code (just 11 lines) and it remains
vlemieux replied on at Permalink Reply 1 Attachment
When adding some code it sometimes remains or not.

In the ;zip attached, there is the .py file that I want to put in Code Display : could you try it ?


mesuva replied on at Permalink Reply
I was able to add that code to an v8 site and have it display correctly.

When you add it to the page, can you view in Chrome's Developer console any javascript errors, or any errors under the Network tab?
vlemieux replied on at Permalink Reply 2 Attachments
In fact the problem comes when in the original code there is a line wrap (see file code1.png) and how it's pasted in Code Editor (file code2.png).
I'v tried copying the code from two different text editor (gedit and geany (I'm working with Linux).
Could it be a problem related to text format ?
I didn't have the problem with concrete5 5.6 (see (I'm rewritting my old site with concrete5 8 version))
With the old version, Code Display is using the whole width of page...

mesuva replied on at Permalink Reply
It could line-ending encoding, you could try changing the line endings used in your code editor before cutting and pasting.

What is strange though is that it works on one page, but not another.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.2
Version Installed - 8.3.2
Database Version - 20180122213656

# concrete5 Packages
Backup Pro (, Cloneamental (0.9.3), Code Display (1.0.1), Customize Editing Interface (1.0.1), EU Cookie Law (, Magic Tabs (7.1.2), Manual Nav (2.2.0), More Block Templates (0.9.6), PDF Viewer (1.0.1), Simple Audio Player (0.9.1), Spacer (0.9.4), Whale OWL Carousel (, Whale Sky Tabs (1.1.7)

# concrete5 Overrides

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software

# Server API

# PHP Version

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imagick, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, memcache, mhash, mongo, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, redis, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 300
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 16000
memory_limit - 512M
post_max_size - 130M
sql.safe_mode - Off
upload_max_filesize - 128M
memcache.max_failover_attempts - 20
mysql.max_links - Unlimited
mysql.max_persistent - 0
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

Click below to request a refund for License #8053876. Assigned to laboiteaphysique.
Created on Jun 29 2017 at 9:40 pm