Code doesn't stay visible after edition

Permalink Browser Info Environment
Hi,
I've started a ticket athttps://www.concrete5.org/community/forums/usage/code-display... about this problem.

Thanks !

V.Le Mieux

Type: Discussion
Status: In Progress
vlemieux
View Replies:
mesuva replied on at Permalink Reply
mesuva
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
vlemieux
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
mesuva
That sounds like something is going wrong on the server when it tries to save.

You're welcome to email me at ryan@mesuva.com.au with your login details and I can try and spot the issue.
vlemieux replied on at Permalink Reply
vlemieux
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
vlemieux
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
vlemieux
Trying on an other page :http://laboiteaphysique.fr/site2/index.php/programmation-et-logicie...

A little piece of the whole code (just 11 lines) and it remains
vlemieux replied on at Permalink Reply 1 Attachment
vlemieux
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 ?

Thanks

Vincent
mesuva replied on at Permalink Reply
mesuva
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
vlemieux
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 (seehttp://laboiteaphysique.fr/site/la-boite-outils/logiciels/rigolinux... (I'm rewritting my old site with concrete5 8 version))
With the old version, Code Display is using the whole width of page...

Vincent
mesuva replied on at Permalink Reply
mesuva
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 (3.3.0.8), Cloneamental (0.9.3), Code Display (1.0.1), Customize Editing Interface (1.0.1), EU Cookie Law (1.0.0.4), 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 (2.5.7.9), Whale Sky Tabs (1.1.7)

# concrete5 Overrides
None

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

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.6.33

# 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
.