• I have a clean installation without any plugins or configuration yet. When I want to edit the Sample Page with the Visual editor I get a 500 error message on loading the tinymce.min.js file

    When I look in the error log I get the following:

    Thu Jul 30 16:01:31 2015] [error] [client some ip address] PHP Parse error: syntax error, unexpected '",s(t),"' (T_CONSTANT_ENCAPSED_STRING) in path-to-wordpress-installation/wp-includes/js/tinymce/tinymce.min.js on line 5, referer: http://www.somedomain.com/subdirectory/wp-admin/post.php?post=7&action=edit

    The only topic related to my issue was this. I tried the suggestion but that did not work for me…

    Can someone help me?

    Kind regards,

    Pim

Viewing 15 replies - 1 through 15 (of 29 total)
  • Moderator James Huff

    (@macmanx)

    Try downloading WordPress again and delete then replace your copies of everything except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings. Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    Thread Starter pimd1988

    (@pimd1988)

    Hi,

    I have tried that multiple times already, even switched to a lower version of WordPress but the problem still occurs πŸ™

    Thread Starter pimd1988

    (@pimd1988)

    I’ve seen alot of topics here from uses who have the same or similar problem but there seems no generic solution for this…?

    What I have done so far:
    – clean wordpress (4.2.3) installation
    – update tinymce editor files
    – check .htaccess configuration
    – read/write specs checked
    – concatenate_script boolean set in wp-config

    I am using the default theme so my installation is as clean as it can be…

    Maybe more information:
    I have installed it in a subdirectory (which has been done before in the same database) and in the other installation (which is wordpress 4.0) it works fine. I compared htaccess settings and they all have no strange things…

    Someone who can help?

    Moderator James Huff

    (@macmanx)

    Ok, subdirectory installations can be problematic if there’s an installation above it, depending on the server configuration.

    Try a subdomain instead, like newsite.example.com.

    Thread Starter pimd1988

    (@pimd1988)

    Hi,

    It is done before on our server. This is the 2nd WordPress installation in a subfolder so it can be done. I have compared everything but I cannot find any strange things what is causing this 500 error message.

    According on what I’ve seen on this forum so far is that there is not a real generic solution for this…

    Moderator James Huff

    (@macmanx)

    Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

    Thread Starter pimd1988

    (@pimd1988)

    The error message I posted in the opening post is always coming back when I get the 500 error from tinymce so more details I do not have.

    Moderator James Huff

    (@macmanx)

    Whoops, sorry.

    I guess, if you really have freshly installed the files, and really have no plugins or third-party themes to conflict, I have nothing more to suggest.

    If there really were an error in the file (and not one introduced by a plugin, theme, or server misconfiguration), then there would be far more than this one report of this specific issue:

    unexpected ‘”,s(t),”‘ (T_CONSTANT_ENCAPSED_STRING) in path-to-wordpress-installation/wp-includes/js/tinymce/tinymce.min.js on line 5

    My only suggestion is to try the installation in a subdomain, not a subdirectory.

    Thread Starter pimd1988

    (@pimd1988)

    Don’t get me wrong but that is not a solution for me. It has been done before so I don’t see why it cannot be done again. Because I saw alot of topics on this subject I also did a downgrade to older WP versions but that all did not seem to solve my issue

    Moderator James Huff

    (@macmanx)

    Ok, maybe someone else will have a different solution for you.

    Moderator keesiemeijer

    (@keesiemeijer)

    The tinymce.min.js file seems to be parsed as PHP. Try turning off PHP short tags in your PHP INI if you have access to this file. Otherwise ask your host to turn it off.

    http://stackoverflow.com/questions/6518126/why-is-the-javascript-file-parsed-as-php-in-my-cake-plugin

    Thread Starter pimd1988

    (@pimd1988)

    I’ve unminified the tinymce js file and changed this line:

    pi: function(e, t) {
                        t ? r.push("<?php", e, " ", s(t), "?>") : r.push("<?php", e, "?>"), i && r.push("\n")
                    },

    with <?php instead <? but it still gives an error on the same line…

    Moderator James Huff

    (@macmanx)

    Please, don’t modify core files. You’ll lose the modifications when you update, and you’ll likely cause conflicts elsewhere.

    Just try turning off PHP short tags as keesiemeijer suggested.

    Thread Starter pimd1988

    (@pimd1988)

    I am aware of the consquences… I changed it just to see if it solved the issue but no luck with <?php either…

    Thread Starter pimd1988

    (@pimd1988)

    and… short_open_tag is on … soooo that is not cause of the problem it seems… πŸ™

Viewing 15 replies - 1 through 15 (of 29 total)

The topic ‘Tinymce causes 500 error message’ is closed to new replies.