I’ve noticed that the WYSIWYG (rich text) editor is broken when GET-A-POST is enabled.
Firefox tells me
Erreur : realTinyMCE is not defined
Fichier source : https://***/wordpress/wp-includes/js/tinymce/tiny_mce_gzip.php?ver=20070326
Ligne : 43
It’s really strange becauses the plugins seems very simple; no javascript, one single file, etc.
Here’s the code. I can’t find what is the matter…
function get_a_post($id='GETPOST') {
global $post, $tableposts, $wp_version, $wpdb;
if($wp_version < 1.5)
$table = $tableposts;
else
$table = $wpdb->posts;
$now = current_time('mysql');
$name_or_id = '';
if(!$id || 'GETPOST' == $id) {
if($wp_version < 2.1)
$query_suffix = "post_status = 'publish'";
else
$query_suffix = "post_type = 'post' AND post_status = 'publish'";
} elseif ('GETPAGE' == $id) {
if($wp_version < 2.1)
$query_suffix = "post_status = 'static'";
else
$query_suffix = "post_type = 'page' AND post_status = 'publish'";
} elseif ('GETSTICKY' == $id) {
if($wp_version < 1.5)
$table .= ', ' . $tablepostmeta;
else
$table .= ', ' . $wpdb->postmeta;
$query_suffix = "ID = post_id AND meta_key = 'sticky' AND meta_value = 1";
} else {
$query_suffix = "(post_status = 'publish' OR post_status = 'static')";
if(is_numeric($id)) {
$name_or_id = "ID = '$id' AND";
} else {
$name_or_id = "post_name = '$id' AND";
}
}
$post = $wpdb->get_row("SELECT * FROM $table WHERE $name_or_id post_date <= '$now' AND $query_suffix ORDER BY post_date DESC LIMIT 1");
get_post_custom($post->ID);
if($wp_version < 1.5)
start_wp();
else
setup_postdata($post);
}
]]>The errors thrown:
This is consistently thrown
Line: 46
Char: 2
Error: ‘realTinyMCE is undefined’
Code: 0
URL: …wp-admin/post-new.php
Got this once, too.
Line 100
Char 2
Error: Obect not defined
Code: 0
URL: …wp-admin/post-new.php
i use win xp & ie v6
wordpress 2.2
I get the titular error when trying to write a post or page with the ‘Visual Editor’ on.
I’m fairly sure it’s something to do with the GZIPing of the relevant JS file(s), but changing the GZIP option makes no difference to this problem.
GZIP option does affect the main blog as it should (confirmed via whatismyip.org).
Same problem in IE6/7/Firefox2.
I’ve not done anything to the .htaccess file, nor any server settings.
Host is Dreamhost. Blog address: https://blog.carbon-360.com/
Any help will be much appreciated.
]]>The error says: ‘realTinyMCE’ is undefined.
How do I fix this?
Thanks.
Desdichado
]]>