• 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 14 replies - 16 through 29 (of 29 total)
  • Moderator James Huff

    (@macmanx)

    Which is why keesiemeijer suggested turning *off* PHP short tags, not on.

    Thread Starter pimd1988

    (@pimd1988)

    well as short_tags are on I don’t understand what this can cause this error… sorry I’m too confused atm right now

    Thread Starter pimd1988

    (@pimd1988)

    Oke…. I also tried to set the read/write permissions for the tinymce folder and the folders above but no luck at all

    Navigating in the browser to http://www.domain.com/subfolder/wp-includes/js/tinymce/wp-tinymce.php works fine and gives me a minified js file.

    Moderator keesiemeijer

    (@keesiemeijer)

    It’s probably the PHP short tags or something wrong on your server. Did you ask your host about this?

    Can you post your .htaccess file here.

    Thread Starter pimd1988

    (@pimd1988)

    This is the htaccess in the subdir:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /agenda/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /agenda/index.php [L]
    </IfModule>
    
    # END WordPress
    Moderator keesiemeijer

    (@keesiemeijer)

    I don’t see anything wrong with that.

    Ask your host if they can turn PHP short tags off.

    Thread Starter pimd1988

    (@pimd1988)

    What difference would that make?

    Moderator keesiemeijer

    (@keesiemeijer)

    For one thing, it might solve your problem.

    The error occurs in line 5. There you’ll find this:

    t?r.push("<?",e," ",s(t),"?>"):r.push("<?",e,"?>")

    Your server tries to parse the lines after “<?” as PHP code.

    As this is probably server specific you should ask your host.

    Thread Starter pimd1988

    (@pimd1988)

    jup true but as I said before it it are short opening tags and they are on soo what should solve it in turning it off?

    Moderator keesiemeijer

    (@keesiemeijer)

    what should solve it in turning it off?

    Your problem πŸ™‚

    As I suspect this is server specific you should ask your host if it has anything to do with the server setup.

    Thread Starter pimd1988

    (@pimd1988)

    Well I have contacted my host and they suggest not because it is just a software error. Maybe can you explain me how this should be configured on host level?

    Thread Starter pimd1988

    (@pimd1988)

    @keesiemeijer why do you think how this can be host related and not software related?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Please don’t bump your thread. If you’re not satisfied with the answers you’ve received then the alternative might be to hire someone: http://jobs.wordpress.net

    I had exactly the same problem as you, and after almost 4 hours figured out that I had JavaScript files configured to be able to execute PHP by using

    AddType application/x-httpd-php .php .js

    in a local .htaccess file. After I changed this to

    AddType application/x-httpd-php .php.js

    in the .htaccess file, the problem went away.

    Hope this helps,
    Allison

Viewing 14 replies - 16 through 29 (of 29 total)

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