Jump to content

[SOLVED] Dissapearing of TinyMce in BO on product page


Recommended Posts

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 15 Apr 2010 15:00:18 UTC


Message: 'tinyMCE_GZ' is undefined
Line: 1318
Char: 5
Code: 0
URI: http://www.trgovina-figura.si/admin2002/index.php?tab=AdminCatalog&id_product=9&updateproduct&token;=d059364ee69e4b29f626c356d65d06fe


Message: 'tinyMCE' is undefined
Line: 1329
Char: 5
Code: 0
URI: http://www.trgovina-figura.si/admin2002/index.php?tab=AdminCatalog&id_product=9&updateproduct&token;=d059364ee69e4b29f626c356d65d06fe

Link to comment
Share on other sites

See here and here. Others have solved this problem by completely reinstalling Prestashop or by using a different computer. Make sure that all of the files in js uploaded correctly and that security settings in your browser aren't preventing TinyMCE from loading.

  • Confused 1
Link to comment
Share on other sites

I also have this problem, due to a JS error, on Ffox 3.6 and IE8, local install (xampp) on Win XP SP3.


Erreur : syntax error
Fichier Source : http://localhost/PS1.3RC3/admin/index.php?tab=AdminModules&configure=editorial&token=5238423da722c08517bea8582eebb87d
Ligne : 0, Colonne : 1
Code Source :
=var tinymce={majorVersion:"3",minorVersion:"2.5",releaseDate:"2009-06-29",_init:function(){var o=this,k=document,l=window,j=navigator,b=j.userAgent,h,a,g,f,e,m;o.isOpera=l.opera&&opera;.buildNumber;o.isWebKit=/WebKit/.test(;o.isIE=!o.isWebKit&&!o.isOper

Erreur : tinymce is not defined
Fichier Source : http://localhost/PS1.3RC3/js/tinymce/jscripts/tiny_mce/jquery.tinymce.js
Ligne : 1




I have 3 installs, on 3 diff DB, one is 1.2.5, one 1.3 RC2, and last 1.3 RC3... all same problem, same errors...

Problem with local install on Windows ?

Link to comment
Share on other sites

I'm not sure what's causing the problem. It might be an issue with your configuration. Try posting your problem in the bug tracker with as much detail on your configuration as possible. Hopefully, the Prestashop team will be able to fix it before the v1.3 final release.

Link to comment
Share on other sites

I have noticed this problem too and found the problem. There are some files which are missing the last character of the file name (all though they are correct in the rar package..)

Go to (in FTP/filemanager) domain.com/js/tinymce/jscripts/tiny_mce/themes/advanced/

and

Go to (in FTP/filemanager) domain.com/js/tinymce/jscripts/tiny_mce/themes/advanced/js/

and check if the file names are correct. You might notice "editor_template.j" and "source_editor.j"

Adding the "s" at the end resolves the problem. Do not ask me why this happens but I noticed this on 5(!) prestashop installations.

Link to comment
Share on other sites

I have noticed this problem too and found the problem. There are some files which are missing the last character of the file name (all though they are correct in the rar package..)

Go to (in FTP/filemanager) domain.com/js/tinymce/jscripts/tiny_mce/themes/advanced/

and

Go to (in FTP/filemanager) domain.com/js/tinymce/jscripts/tiny_mce/themes/advanced/js/

and check if the file names are correct. You might notice "editor_template.j" and "source_editor.j"

Adding the "s" at the end resolves the problem. Do not ask me why this happens but I noticed this on 5(!) prestashop installations.


Hello,
Thank you for the reply, but I checked and there no problem with that in my files.

Can't find where it comes from... -_-
Link to comment
Share on other sites

If you use firefox, you can use a program called "Fiddler". With Fiddler you can check which files are called by the page when opening it. If one is missing or corrupt it will give an error message.

http://www.fiddler2.com/fiddler2/


Thank you, installed Fiddler2 and checked, but no file is missing, only '200' requests results...
Btw, the error tool from Ffox is showing a syntax error, so it seems to be a missing char or don't know what, but the line is sooo long that I can't find this...

Erreur : syntax error
Fichier Source : http://localhost/PS/admin/index.php?tab=AdminModules&configure=editorial&token=d0af90120a22de69f75465afdf843c43
Ligne : 0, Colonne : 1
Code Source :
=var tinymce={majorVersion:"3",minorVersion:"2.5",releaseDate:"2009-06-29",_init:function(){var o=this,k=document,l=window,j=navigator,b=j.userAgent,h,a,g,f,e,m;o.isOpera=l.opera&&opera;.buildNumber;o.isWebKit=/WebKit/.test(;o.isIE=!o.isWebKit&&!o.isOper

Link to comment
Share on other sites

Yes absolutely.

To make clear some points, TinyMCE is working fine on my linux install on a remote web server, but not on my local install with xampp on Win XP SP3 32 bits, Ffox 3.6 or IE8. I tried on another computer from my LAN, but same result, so it is not my browser or computer.

It is like if Apache (or browser or I don't know what...) can't read the entire line code because it is too long, because of a windows limitation, or something like that... I don't know, just an assumption.

I installed again the TinyMCE files from official source, but same errors again.

I'll post this line code here to compare...

Link to comment
Share on other sites

Line code for error "tinymce is not defined":

(function({var c,a=[];function e(g,f,i){var h;h=b.fn[f];b.fn[f]=function(){var j;if(g!=="after"){j=i.apply(this,arguments);if(j!==undefined){return j[spam-filter]j=h.apply(this,arguments);if(g!=="before"){i.apply(this,arguments)}return j[spam-filter]b.fn.tinymce=function(i){var h=this,g,j="",f;if(!h.length){return}if(!i){return tinyMCE.get(this[0].id)}function k(){if(d){d();d=null}h.each(function(m,p){var l,o=p.id||tinymce.DOM.uniqueId();p.id=o;l=new tinymce.Editor(o,i);l.render()})}if(!window.tinymce&&!c&&(g=i.script_url)){c=1;if(/_(src|dev)\.js/g.test(g)){j="_src"}window.tinyMCEPreInit={base:g.substring(0,g.lastIndexOf("/")),suffix:j,query:""};b.getScript(g,function(){tinymce.dom.Event.domLoaded=1;c=2;k();b.each(a,function(l,m){m()})})}else{if(c===1){a.push(k)}else{k()[spam-filter]};b.extend(b.expr[":"],{tinymce:function(f){return f.id&&!!tinyMCE.get(f.id)[spam-filter]);function d(){function f(){this.find("span.mceEditor,div.mceEditor").each(function(j,k){var h;if(h=tinyMCE.get(k.id.replace(/_parent$/,""))){h.remove()[spam-filter])}function g(i){var h;if(i!==undefined){f.call(this);this.each(function(k,l){var j;if(j=tinyMCE.get(l.id)){j.setContent(i)[spam-filter])}else{if(this.length>0){if(h=tinyMCE.get(this[0].id)){return h.getContent()[spam-filter][spam-filter]e("both","text",function(h){if(h!==undefined){return g.call(this,h)}if(this.length>0){if(ed=tinyMCE.get(this[0].id)){return ed.getContent().replace(/<[^>]+>/g,"")[spam-filter]});b.each(["val","html"],function(j,h){e("both",h,g)});b.each(["append","prepend"],function(j,h){e("before",h,function(i){if(i!==undefined){this.each(function(l,m){var k;if(k=tinyMCE.get(m.id)){if(h==="append"){k.setContent(k.getContent()+i)}else{k.setContent(i+k.getContent())[spam-filter]})[spam-filter])});e("both","attr",function(h,i){if(h&&h;==="value"){return g.call(this,i)[spam-filter]);b.each(["remove","replaceWith","replaceAll","empty"],function(j,h){e("before",h,f)})[spam-filter])(jQuery);




Line code for error "syntax error" pointing on "var" returned by the error console from Ffox:

=var tinymce={majorVersion:"3",minorVersion:"2.5",releaseDate:"2009-06-29",_init:function(){var o=this,k=document,l=window,j=navigator,b=j.userAgent,h,a,g,f,e,m;o.isOpera=l.opera&&opera;.buildNumber;o.isWebKit=/WebKit/.test(;o.isIE=!o.isWebKit&&!o.isOper



So, either this is a part of line code returned by the error console to show where the error is located, or the browser did not get the full code due to a limitation of memory, number of char or something else...


Here are the error returned by IE8:

Détails de l’erreur de la page Web

Agent utilisateur : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; FDM)
Horodateur : Mon, 26 Apr 2010 12:05:38 UTC

Message : Syntax error
Line : 91619545
Caractère : 65537
Code : 0
URI : http://localhost/PS/admin/index.php?tab=AdminModules&configure=editorial&token=d0af90120a22de69f75465afdf843c43


Message : 'tinymce' is undefined
Line : 1
Caractère : 660
Code : 0
URI : http://localhost/PS/js/tinymce/jscripts/tiny_mce/jquery.tinymce.js



Strange error: Line : 91619545 ... the line number is... huge !

Definitively don't understand what's going wrong...

Link to comment
Share on other sites

Well at least I found the solution ! .. after hundreds of threads in dozens of forums... ;)


As seen above, sometimes, the probleme is caused by files extracted from an archive with corrupted data, so, erase the TinyMce folder and extract it again, clear cache, and reload.

If it doesn't work and you are on a local install (with XAMPP, or WAMP or...) running Windows, as I thought, your problem may be caused by JS file returned in a bad way in Apache (truncated).

So, to solve this, edit the httpd.conf file from Apache:

FIND:

#EnableMMAP off
#EnableSendfile off



and remove the # at the begining of the lines to make this:

EnableMMAP off
EnableSendfile off



Here is the doc from the file (for info):

# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall is used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.



And from Apache:
http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile

Now your TinyMCE Editor should work. Don't forget to clear cache and restart Apache.

Hope it will help some people. :)

Link to comment
Share on other sites

  • 1 month later...

I lost my tinyMCE when i update my PS from 1.3.0.8 to 1.3F.
And I re-upload the js folder to FTP solve the problem(Chorme/winXP)

Link to comment
Share on other sites

  • 1 year later...

For me it was gzip compression. I couldn't even access the file directly by typing it's address. I had had added following in my .htaccess file to use gzib output:

 

php_value output_handler ob_gzhandler
<FilesMatch "\.(css)">
   ForceType application/x-httpd-php
   php_value auto_prepend_file "/gzip-css.php"
</FilesMatch>
<FilesMatch "\.(js)">
   ForceType application/x-httpd-php
   php_value auto_prepend_file "/gzip-js.php"
</FilesMatch>

 

 

 

Once I removed them, it worked fine.

Link to comment
Share on other sites

  • 1 year later...

I had a similar problem. But strange thing happened - my tiny_mce directory in domain.com/js was renamed to tiny_mce_old. I dont know what happened and how is possible that preste renamed my directory. But it all works fine now.

 

This forum discussion helped me, thanks folks.

Link to comment
Share on other sites

×
×
  • Create New...