views:

477

answers:

1

When using TinyMCE's "Ajax File Manager" plugin file upload, I get the following error when I hit the upload button:

"Syntax error: missing ; before statement"

Everything else seems to be working okay. Any ideas? (Permission settings somewhere maybe?)

image: http://www.oddrealm.com/ebay/tinymce.jpg

EDIT: Here's some more info: If the uploaded folder is left in the original structure there is no problem... When I move the uploaded folder (and make the appropriate changes to config.base.php) the error occurs. Why would changing the location of the upload folder cause that error?

tinymce
|
|   jscripts
    |
    |    tiny_mce
         |
         |   plugins
             |
             |     ajaxfilemanager
             |     |
             |     |     inc
             |           |
             |           |    config.base.php        (the CONFIG_SYS_DEFAULT_PATH and CONFIG_SYS_ROOT_PATH need to be '../uploaded/')
             |     
             |     uploaded             (chmod to 777 - placement of folder any other place causes errors, even if changed in config.base.php)

EDIT: I just learned that the problem started happening when mod_security was added to Apache and recompiled. Has anyone come across this problem?

+1  A: 

Figured it out: Our host had just added mod_security and recompiled Apache. They had to white list ajaxfilemanager to get it to work properly again.

kylex