Viewing 3 replies - 16 through 18 (of 18 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Also, if you call the get_locale() function on a system showing the problem, what do you get back? Just call it in a theme’s index.php or something.

    I tried calling get_locale() from our theme’s index.php file but I didn’t see any result (not sure where I’d expect to see it.) Tried writing the result to error_log and got no result, so maybe index.php is cached somewhere (I cleared our hosting company’s cache to no avail.) To be honest, I’m not a php guy and don’t have any sort of debug environment set up for the php side.

    I managed to call the function from wp-tinymce.php by adding the following code that I found on stackoverflow for pulling in references to wordpress core code:

    require_once(‘../../../wp-blog-header.php’);
    header(“HTTP/1.0 200 OK”);
    error_log(get_locale());

    That got around the “Call to undefined function” error I was getting prior to that. Here’s what I got in the error log:

    [Wed Mar 13 15:04:00 2013] [error] [client xxx.xxx.xxx.xxx] en_US, referer: https://OURSITE/wp-admin/post.php?post=XXXX&action=edit

    So, en_US locale.

    I might be in a good position to help debug this problem, because it occurs on our staging server but not on our production server, although both are running the same set of plugins and plugin versions and are configured essentially identically. (We host at WPEngine and use their staging capability to take a snapshot of our site to staging for testing out changes.) I wish I knew when the problem first surfaced on our staging site, but I don’t. I don’t have tons of cycles to spend, but I’m happy to help get to the bottom of it with some assistance.

    Thanks for your help.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    I doubt I can walk you through a debug session. Unless you can give me access to the site so that I can see it in my browser, probably no easy way to figure it out.

    Email me at [email protected] and I’ll take a look at it, if you like.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Tinymce Error – Missing JS files, breaks on every upgrade.’ is closed to new replies.