Tinymce problem - does not appear on /management/settings/context OJS 3.2

Hello to all - I hope you are well… I installed OJS 3.2 and selected en_US (primary) and sr_RS@cyrillic … After installation, I was unable to enter into fields to fill journal info, and Tinymice does not appear:

Uncaught Error: Syntax error, unrecognized expression: #masthead-description-control-sr_RS@cyrillic
at Function.St.error (tinymce.min.js?v=3.2.0.3:2)
at St.tokenize (tinymce.min.js?v=3.2.0.3:2)
at St.select (tinymce.min.js?v=3.2.0.3:2)
at St (tinymce.min.js?v=3.2.0.3:2)
at Object.select (tinymce.min.js?v=3.2.0.3:2)
at tinymce.min.js?v=3.2.0.3:2
at Object.e (tinymce.min.js?v=3.2.0.3:2)
at C (tinymce.min.js?v=3.2.0.3:2)
at d (tinymce.min.js?v=3.2.0.3:2)
at a (tinymce.min.js?v=3.2.0.3:2)

can you help me with this issue?

Note:

User Home > Site Administrator > Administrative Function: click Clear Data Caches. Then press Ctrl + F5 button on your browser. - does not help

@aotero ( https://forum.pkp.sfu.ca/u/aotero ) posted that the problem solved ( Tinymce problem - #4 by aotero )by permission issues to run java script - but did not explaned how

I just installed version 3.1.1.4 and it works there without any problem.

Hi @Vaso_Manojlovic,

Are there any errors in php logs?

Hi @Vitaliy, there are some, but i think - not relevant for the problem:

[Thu May 28 17:23:01.143782 2020] [php7:error] [pid 14216:tid 1888] [client ::1:57371] PHP Fatal error: Uncaught → Smarty: unable to write file C:\xampp\htdocs\ojs32\cache\t_compile\bf55cdacf2ffe85d44012b49527ff3bfcc912179^4f065f79ce9f12ef974cd073de14c3fdb7589018_0.app.linkActionlinkActionOptio.php ← \n thrown in C:\xampp\htdocs\ojs32\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_runtime_writefile.php on line 90, referer: http://localhost/ojs32/index.php/index/admin/contexts
[Thu May 28 17:24:07.900851 2020] [core:error] [pid 14216:tid 1868] (20025)The given path contained wildcard characters: [client ::1:57424] AH00036: access to //api/v1/contexts failed (filesystem path 'C:/xampp/htdocs/’), referer: http://localhost/ojs32/index.php/index/admin/contexts
[Thu May 28 17:25:04.148253 2020] [php7:warn] [pid 14216:tid 1868] [client ::1:57424] PHP Warning: mkdir(): File exists in C:\xampp\htdocs\ojs32\lib\pkp\classes\file\FileManager.inc.php on line 311, referer: http://localhost/ojs32/index.php/index/admin/contexts
[Thu May 28 17:25:04.175103 2020] [php7:warn] [pid 14216:tid 1868] [client ::1:57424] PHP Warning: mkdir(): File exists in C:\xampp\htdocs\ojs32\lib\pkp\classes\file\FileManager.inc.php on line 311, referer: http://localhost/ojs32/index.php/index/admin/contexts
[Thu May 28 17:25:04.201713 2020] [php7:warn] [pid 14216:tid 1868] [client ::1:57424] PHP Warning: mkdir(): File exists in C:\xampp\htdocs\ojs32\lib\pkp\classes\file\FileManager.inc.php on line 311, referer: http://localhost/ojs32/index.php/index/admin/contexts
[Thu May 28 17:37:20.218363 2020] [php7:error] [pid 14216:tid 1904] [client ::1:57548] PHP Fatal error: Uncaught Exception: DB Error: Duplicate entry ‘xxx’ for key ‘users_username’ Query: INSERT INTO users\n\t\t\t\t(username, password, email, url, phone, mailing_address, billing_address, country, locales, date_last_email, date_registered, date_validated, date_last_login, must_change_password, disabled, disabled_reason, auth_id, auth_str, inline_help, gossip)\n\t\t\t\tVALUES\n\t\t\t\t(?, ?, ?, ?, ?, ?, ?, ?, ?, null, ‘2020-05-28 17:37:19’, null, ‘2020-05-28 17:37:19’, ?, ?, ?, ?, ?, ?, ?) in C:\xampp\htdocs\ojs32\lib\pkp\classes\db\DAO.inc.php:703\nStack trace:\n#0 C:\xampp\htdocs\ojs32\lib\pkp\classes\db\DAO.inc.php(231): DAO->handleError(Object(ADODB_mysqli), ‘INSERT INTO use…’)\n#1 C:\xampp\htdocs\ojs32\lib\pkp\classes\user\UserDAO.inc.php(348): DAO->update(‘INSERT INTO use…’, Array)\n#2 C:\xampp\htdocs\ojs32\lib\pkp\classes\install\PKPInstall.inc.php(252): UserDAO->insertObject(Object(User))\n#3 C:\xampp\htdocs\ojs32\lib\pkp\classes\install\Installer.inc.php(417): PKPInstall->createData(Object(Install), Array)\n#4 C in C:\xampp\htdocs\ojs32\lib\pkp\classes\db\DAO.inc.php on line 703, referer: http://localhost/ojs32/index.php/index/install
[Thu May 28 18:14:19.274407 2020] [core:error] [pid 14216:tid 1888] (20025)The given path contained wildcard characters: [client ::1:57980] AH00036: access to //api/v1/contexts failed (filesystem path 'C:/xampp/htdocs/’), referer: http://localhost/ojs32/index.php/index/admin/contexts
[Thu May 28 18:29:57.568922 2020] [core:error] [pid 14216:tid 1888] (20025)The given path contained wildcard characters: [client ::1:58122] AH00036: access to //api/v1/contexts failed (filesystem path 'C:/xampp/htdocs/’), referer: http://localhost/ojs32/index.php/index/admin/contexts
[Thu May 28 18:32:24.817702 2020] [core:error] [pid 14216:tid 1904] (20025)The given path contained wildcard characters: [client ::1:58248] AH00036: access to //api/v1/contexts failed (filesystem path 'C:/xampp/htdocs/’), referer: http://localhost/ojs32/index.php/index/admin/contexts
[Thu May 28 18:41:30.449986 2020] [core:error] [pid 14216:tid 1904] (20025)The given path contained wildcard characters: [client ::1:58381] AH00036: access to //api/v1/contexts failed (filesystem path 'C:/xampp/htdocs/’), referer: http://localhost/ojs32/index.php/index/admin/contexts
[Thu May 28 18:41:58.686370 2020] [core:error] [pid 14216:tid 1904] (20025)The given path contained wildcard characters: [client ::1:58384] AH00036: access to //api/v1/contexts failed (filesystem path 'C:/xampp/htdocs/’), referer: http://localhost/ojs32/index.php/index/admin/contexts
[Thu May 28 19:23:09.424391 2020] [core:error] [pid 14216:tid 1904] (20025)The given path contained wildcard characters: [client ::1:58637] AH00036: access to //api/v1/contexts failed (filesystem path 'C:/xampp/htdocs/’), referer: http://localhost/ojs32/index.php/index/admin/contexts

This error is probably related to the permissions for the cache folder: How should file permissions be set? - #2 by ctgraham

It looks like there was a try to insert new username in the users table during upgrade or installation that failed because of duplicate (it’s referenced from the installation page)

I’, using Windows OS (also, tried on Linux - with permission 755, same problem)
I tried to install it again and same issue apear.

Permission 755 may not be enough. Does apache (or other server that you are using) have permission to write files in the cache folder?

I just try Russian with English, and it works… Maybe something with ‘@’ character in sr_RS@cyrillic and sr_RS@latin - other locales doesn’t have ‘@’ character
@asmecher changed here pkp/pkp-lib#3873 Extend locale regexp to support extended locale spec… · pkp/pkp-lib@88cacfc · GitHub for importexport plugin - maybe the same should be set for tinyMCE ?

Thanks for reporting this @Vaso_Manojlovic. It looks like you’re right: this error occurs when TinyMCE is asked to mount to an element with an id that contains an @ character. I’ve filed this as a bug we’ll need to work around by sanitizing the locale component of the field’s id: