Page 1 of 1

content_en edit area is hidden after upgrade to 2.2.11

Posted: Sun Sep 15, 2019 10:52 pm
by TFcroft4
I made a long overdue upgrade to v2.2.11 from v2.1.6

In the back end the text areas used to edit content, news etc. are hidden. Inspecting the html shows the textarea has a hidden attribute.

Code: Select all

<textarea name="content_en" id="content_en" class="cms_textarea content_en MicroTiny" data-cms-lang="html" cols="80" rows="10" style="visibility: hidden;">.....</textarea>
As content editor is hidden I can't create or edit content! :(

Thanks
Ted

Re: content_en edit area is hidden after upgrade to 2.2.11

Posted: Sun Sep 15, 2019 10:57 pm
by DIGI3
Anything unusual in the javascript console?
Cleared browser cache?

Re: content_en edit area is hidden after upgrade to 2.2.11

Posted: Sun Sep 15, 2019 11:02 pm
by TFcroft4
Thanks for the reply

From Chrome browser Console:

Code: Select all

dirtyform dirty = true
jquery.cmsms_dirtyform.js:104 dirtyform dirty = false
/modules/MicroTiny/lib/js/tinymce/plugins/tabfocus/plugin.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/modules/MicroTiny/lib/js/tinymce/plugins/hr/plugin.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/modules/MicroTiny/lib/js/tinymce/plugins/lists/plugin.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
tinymce.min.js:3 Failed to load: http://www.kitst.co.uk/modules/MicroTiny/lib/js/tinymce/plugins/tabfocus/plugin.min.js
tinymce.min.js:3 Failed to load: http://www.kitst.co.uk/modules/MicroTiny/lib/js/tinymce/plugins/hr/plugin.min.js
jquery.cmsms_lock.js:90 creating initial lock
tinymce.min.js:3 Failed to load: http://www.kitst.co.uk/modules/MicroTiny/lib/js/tinymce/plugins/lists/plugin.min.js
plugin.min.js:1 Uncaught module [e] returned undefined
jquery.cmsms_lock.js:176 lock succeeded
cleared cache --- no change

Re: content_en edit area is hidden after upgrade to 2.2.11

Posted: Sun Sep 15, 2019 11:06 pm
by TFcroft4
For reference System Information
----------------------------------------------

Cms Version: 2.2.11

Installed Modules:

AdminSearch: 1.0.4
CGExtensions: 1.53.15
CMSContentManager: 1.1.8
CMSMailer: 6.2.14
Captcha: 1.0
CmsJobManager: 0.1.3
DesignManager: 1.1.6
FileManager: 1.6.8
FilePicker: 1.0.4.1
FormBuilder: 0.8.1.6
Gallery: 2.3.3
MenuManager: 1.50.3
MicroTiny: 2.2.4
ModuleManager: 2.1.7
Navigator: 1.0.9
News: 2.51.6
Search: 1.51.7
SiteMapMadeSimple: 1.2.8
ThemeManager: 1.1.8

Config Information:

php_memory_limit:
max_upload_size: 2000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: UTC
permissive_smarty: false

Php Information:

phpversion: 7.3.9
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 32767
E_STRICT: 2048
E_DEPRECATED: 8192
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 30
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /opt/alt/php73/var/lib/php/session (0700)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 5
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)
Server Information:

Server Software: LiteSpeed
Server Api: litespeed
Server Os: Linux 2.6.32-896.16.1.lve1.4.53.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.1.41
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:

tmp: /home/tedfinch/public_html/kitst/tmp (0755)
tmp_cache: /home/tedfinch/public_html/kitst/tmp/cache (0755)
templates_c: /home/tedfinch/public_html/kitst/tmp/templates_c (0755)
modules: /home/tedfinch/public_html/kitst/modules (0755)
uploads: /home/tedfinch/public_html/kitst/uploads (0755)
File Creation Mask (umask): /home/tedfinch/public_html/kitst/tmp/cache (0755)
config_file: 0444
----------------------------------------------

Re: content_en edit area is hidden after upgrade to 2.2.11

Posted: Sun Sep 15, 2019 11:07 pm
by DIGI3
Are the files it's reporting as 404 actually there? If so, then perhaps a mod_security issue. If not, then you'll need to find out why not - failed upgrade, antivirus, or other issue.

Re: content_en edit area is hidden after upgrade to 2.2.11

Posted: Mon Sep 16, 2019 7:32 am
by TFcroft4
The files listed in the error message:

/modules/MicroTiny/lib/js/tinymce/plugins/tabfocus/plugin.min.js:1
/modules/MicroTiny/lib/js/tinymce/plugins/hr/plugin.min.js:1
/modules/MicroTiny/lib/js/tinymce/plugins/lists/plugin.min.js:1

don't seem to exist.

I also tried a new test clean install also using a cmsms-2.2.11-install.php. This installation also does not have these files.

Can I get the MicroTiny package directly?

Cheers
Ted

Re: content_en edit area is hidden after upgrade to 2.2.11

Posted: Mon Sep 16, 2019 7:54 am
by TFcroft4
I have also tried a test install using Softaculous - same result - these file do not exist and the content areas are not visible in the admin area.

Code: Select all

dirtyform dirty = true
jquery.cmsms_dirtyform.js:104 dirtyform dirty = false
/finchhouse/modules/MicroTiny/lib/js/tinymce/plugins/tabfocus/plugin.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/finchhouse/modules/MicroTiny/lib/js/tinymce/plugins/hr/plugin.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
/finchhouse/modules/MicroTiny/lib/js/tinymce/plugins/lists/plugin.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
So using an upgrade, clean install and Softaculous I have sites with no content editing.

Can anyone make a suggestion?
Ted

Re: content_en edit area is hidden after upgrade to 2.2.11

Posted: Mon Sep 16, 2019 10:11 am
by TFcroft4
I have copied from a tinymce download the set of plugin folders and the errors listed have gone.
However my content panel remains hidden and I now have this error reported in the js console:

Code: Select all

plugin.min.js:9 Uncaught TypeError: Cannot read property 'registry' of undefined
    at t (plugin.min.js:9)
    at new <anonymous> (plugin.min.js:9)
    at Array.e (tinymce.min.js:9)
    at n (tinymce.min.js:2)
    at k.init (tinymce.min.js:9)
    at n.<anonymous> (tinymce.min.js:9)
    at Array.<anonymous> (tinymce.min.js:3)
    at n (tinymce.min.js:2)
    at p (tinymce.min.js:3)
    at tinymce.min.js:3
???????????

Ted

Re: content_en edit area is hidden after upgrade to 2.2.11

Posted: Mon Sep 16, 2019 10:55 am
by Jo Morg
DIGI3 wrote:Are the files it's reporting as 404 actually there? If so, then perhaps a mod_security issue. If not, then you'll need to find out why not - failed upgrade, antivirus, or other issue.
TFcroft4 wrote:The files listed in the error message:

/modules/MicroTiny/lib/js/tinymce/plugins/tabfocus/plugin.min.js:1
/modules/MicroTiny/lib/js/tinymce/plugins/hr/plugin.min.js:1
/modules/MicroTiny/lib/js/tinymce/plugins/lists/plugin.min.js:1

don't seem to exist.

I also tried a new test clean install also using a cmsms-2.2.11-install.php. This installation also does not have these files.

Can I get the MicroTiny package directly?
To answer your last question: no! MicroTiny is a customized install of tinymce. To overwrite this with a normal package is asking for troubles.
So, as DIGI3 mentioned, the issue is with your system... and I'm willing to bet it's an antivirus of some sort giving false positives and deleting the files. In my installs those files are NOT missing and if it were an issue with the installer, there would be a whole lot people having it.
I would contact the host and try to sort the missing files with them. Also, if you have the possibility and just to check, try to install CMSMS in a local environment such as a development server in your PC or something similar. I bet the files are there...
HTH

Re: content_en edit area is hidden after upgrade to 2.2.11

Posted: Mon Sep 16, 2019 1:22 pm
by TFcroft4
Thanks for the observation.

I am not clear how a local antivirus will prevent a server based application installing files on to that server.

I am also intrigued that there is an error of missing plugin files even though these plugins are not part of the trunk distribution.

So far I have made no real progress on this.

I will struggle on.

Re: content_en edit area is hidden after upgrade to 2.2.11

Posted: Mon Sep 16, 2019 7:26 pm
by Dr.CSS
I believe he was speaking of an anti-virus on the server not a local one...

Re: content_en edit area is hidden after upgrade to 2.2.11

Posted: Thu Oct 10, 2019 9:06 pm
by Lew
Had same behavior (in 2.2.12), and also the sidebar menus wouldn't open, etc.

Was using Chrome, so hit PF12 to bring up Chrome DevTools ... loading the admin page it hit a Javascript error saying "$.cookie is not a function".

Researching that error on StackOverflow suggested that it is because the JQuery cookie plugin was not being loaded, and/or JQuery was getting loaded a second time which would lose all the previously loaded plugins.

On a hunch, went to DevTools Network tab, and discovered that if I checked the "Disable cache" setting at the top (just below the tabs), then went back to the admin browser page and hit Refresh, suddenly all the functions worked as expected. Going back to the Network tab and unchecking "Disable cache" again, then refreshing the admin page still worked.

This suggests that it is some kind of Javascript caching problem.

Re: content_en edit area is hidden after upgrade to 2.2.11

Posted: Thu Oct 10, 2019 9:08 pm
by DIGI3
You're overthinking it. Just a force-refresh would likely fix it.

Chances are you had an older version of the script cached in your browser from pre-upgrade.