syntax error when uploading

It's when I'm in WYSIWYG that I'm having the problem. I was working on creating a page using WYSIWYG, clicked on the picture icon to insert an image. I have to say it looked a little strange what with the root thing and all. But there was a place I could click to upload from the computer but when I did, I got a syntax error.

Any ideas?

http://fotosbyerika.com

Comments

  • and ther error you got was...?
  • Oh, this is the first window I see.
    http://i70.photobucket.com/albums/i100/erika_conn/uploadpics.jpg

    I hope that helped.
  • Well, no. The image is too small to be useful. Why can't you just list the error? Would that be too much to ask, or do you need us to work for your support?
  • The error says SyntaxError:syntax error

    That's all. I know, there should be more

    Uploading photos, otherwise, no problem, just with the wysiwyg
  • acrylian Administrator, Developer
    That file manager is an basically untouched third party script that sometimes throws this error I could swear we had a troubleshooting entry but seems I am wrong... But it was topic on the forum before. Will try to find it.

    If I remember correctly it was related to the `zp-core/zp-extensions/tiny_mce/plugins/ajaxfilemanager/sessions` directory. You have to check the permissions on that.
  • acrylian Administrator, Developer
    Found it but that might be something else: http://www.zenphoto.org/support/topic.php?id=4399#post-26030

    I just tried and uploading seems to work for me. The first window you saw is normal. It shows the content of the root "uploaded" folder of your installation (using that manager is not about uploading images to the gallery!).
  • I changed all those files and folders as suggested,
    1. tiny_mce / plugins / session - Folder (777)
    2. tiny_mce / plugins / session - gc_counter.ajax.php - File (777)
    3. tiny_mce / plugins / session - gc_log.ajax.php.php - File (777)

    And

    4. tiny_mce / plugins / ajaxfilemanager / session - Folder (777)
    5. tiny_mce / plugins / ajaxfilemanager / session - gc_counter.ajax.php - File (777)
    6. tiny_mce / plugins / ajaxfilemanager / session - gc_log.ajax.php.php - File (777)

    to 777 and now the Admin on the top right of my page has disappeared and I can't sign in.

    Also, my tree isn't set up the same as others have said. eg:
    /zp-core/plugins/tiny_mce/plugins/ajaxfilemanager/inc/config.tinymce.php
    chmod -R 777 zp-core/plugins/tiny_mce/plugins/ajaxfilemanager/session

    Mine is ...../zp-core/zp-extensions/tiny_mce/plugins/ajaxfilemanager etc. That's what I downloaded.

    Does that make a difference?

    http://fotosbyerika.com
  • acrylian Administrator, Developer
    Actually that should not log you out. Try to login again.

    That thread is older and before Zenphoto 1.2.8 the `zp-extensions` folder was named `plugins`.
  • I know it makes no sense. Maybe it's something else. You know how it is with computers. You change something or do something and it shows up as a problem next week. By that time you can't remember what you did.

    Can't log back in. The login has disappeared. Is there a back way in?
  • acrylian Administrator, Developer
    Sure you can login: Type`/admin` or `/zp-core/admin.php`
  • Thanks. I got logged in and found that if I upload a picture to Photobucket, get the url from there and enter it into wysiwyg, I can successfully download it. That's a lot of steps when I could get it right from my computer.

    This brings me to the next question - The image in question is 600 x 476px. However, when I enter the dimensions into wysiwyg, the picture is distorted and, well, ugly. It wants to make it 319 x 253px. As you can see, it's quite small but I wanted it big enough to make a statement in "About".
  • acrylian Administrator, Developer
    Sorry, as said I can't reproduce the "syntax error" you got. Maybe hte filename was contains special chars.

    I upload a picture to Photobucket, get the url from there and enter it into wysiwyg, I can successfully download it.
    That is not really downloading but pasting an external url. You know the difference, do you?

    Generally, the WYSIWYG editor is named TinyMCE btw and not our product. It normally does not size any images. You can do that manually. Please look at TinyMCE's own site for info about http://tinymce.moxiecode.com/
  • Sorry about improper use of how I was able to get a picture into tinymce. What I tried to explain was, while in tinymce, wysiwyg, the only way i can insert a picture is if I use the url. The picture icon gives me a syntax error. I'm sorry if I wasn't clear.

    I think I'd better go to the tinymce site. Thanks. I will let you know what they say.
  • acrylian Administrator, Developer
    Well, there is no real "improper" use. If it works for you it is kind of proper. As said I sadly can't reproduce the error. What browser are you using?

    Btw, there is also the "zp" button to insert images from the gallery itself.
  • I'm using IE8. What's that about a zp button?

    I'm on the tinymce site and hopefully get the problem resolved there.
  • acrylian Administrator, Developer
    Please see here, it's only available on Zenpage pages and articles:
    http://www.zenphoto.org/zp/screenshots/zenpage-tinyzenpage/start-page.jpg.php
  • I have just tried the upload using IE8. I get no syntax errors. So it must be something specific to your installation.
  • Really sbillard? You're probably right. i wonder where I screwed up? I tried posting on tinymce but I guess it's not a very active site. No response.
  • It's not necessarily that you screwed up. It might be a rare, latent bug somewhere. It can be hard to fix bugs that you can't reproduce for yourself.
  • Also, I just tried it myself and can't reproduce it either.
  • I'm just wondering, does this log mean anything to you? Probably nothing. I see I can upload images in tinymce using zp button. It works.

    {Thu, 04 Mar 2010 22:34:23 GMT}

    Backtrace: Bad filename suffix in newImage(advanced.html)

    newImage called

    from zp_load_image (functions-controller.php [342])

    from zp_load_request (functions-controller.php [435])

    from require_once (controller.php [43])

    from index.php [23]

    {Fri, 05 Mar 2010 01:08:54 GMT}

    Backtrace: Bad filename suffix in newImage(advanced.html)

    newImage called

    from zp_load_image (functions-controller.php [342])

    from zp_load_request (functions-controller.php [435])

    from require_once (controller.php [43])

    from index.php [23]

    {Fri, 05 Mar 2010 01:16:24 GMT}

    Backtrace: Bad filename suffix in newImage(advanced.html)

    newImage called

    from zp_load_image (functions-controller.php [342])

    from zp_load_request (functions-controller.php [435])

    from require_once (controller.php [43])

    from index.php [23]

    {Fri, 05 Mar 2010 01:17:17 GMT}

    Backtrace: Bad filename suffix in newImage(advanced.html)

    newImage called

    from zp_load_image (functions-controller.php [342])

    from zp_load_request (functions-controller.php [435])

    from require_once (controller.php [43])

    from index.php [23]

    {Fri, 05 Mar 2010 10:05:02 GMT}

    Backtrace: Bad filename suffix in newImage(advanced.html)

    newImage called

    from zp_load_image (functions-controller.php [342])

    from zp_load_request (functions-controller.php [435])

    from require_once (controller.php [43])

    from index.php [23]

    {Fri, 05 Mar 2010 13:59:05 GMT}

    Backtrace: Bad filename suffix in newImage(advanced.html)

    newImage called

    from zp_load_image (functions-controller.php [342])

    from zp_load_request (functions-controller.php [435])

    from require_once (controller.php [43])

    from index.php [23]

    {Sat, 06 Mar 2010 11:14:46 GMT}

    Backtrace: Bad filename suffix in newImage(advanced.html)

    newImage called

    from zp_load_image (functions-controller.php [342])

    from zp_load_request (functions-controller.php [435])

    from require_once (controller.php [43])

    from index.php [23]

    {Sun, 07 Mar 2010 12:20:15 GMT}

    Backtrace: Bad filename suffix in newImage(advanced.html)

    newImage called

    from zp_load_image (functions-controller.php [342])

    from zp_load_request (functions-controller.php [435])

    from require_once (controller.php [43])

    from index.php [23]

    {Sun, 07 Mar 2010 15:15:36 GMT}

    Backtrace: Bad filename suffix in newImage(advanced.html)

    newImage called

    from zp_load_image (functions-controller.php [342])

    from zp_load_request (functions-controller.php [435])

    from require_once (controller.php [43])

    from index.php [23]

    {Sun, 07 Mar 2010 15:55:43 GMT}

    Backtrace: Bad filename suffix in newImage(advanced.html)

    newImage called

    from zp_load_image (functions-controller.php [342])

    from zp_load_request (functions-controller.php [435])

    from require_once (controller.php [43])

    from index.php [23]

    {Sun, 07 Mar 2010 15:55:46 GMT}

    Backtrace: Bad filename suffix in newImage(advanced.html)

    newImage called

    from zp_load_image (functions-controller.php [342])

    from zp_load_request (functions-controller.php [435])

    from require_once (controller.php [43])

    from index.php [23]

    {Sun, 07 Mar 2010 15:55:47 GMT}

    Backtrace: Bad filename suffix in newImage(advanced.html)

    newImage called

    from zp_load_image (functions-controller.php [342])

    from zp_load_request (functions-controller.php [435])

    from require_once (controller.php [43])

    from index.php [23]
  • acrylian Administrator, Developer
    Bad filename suffix in newImage gives an idea. What exactly did you try to upload?
  • Oh, you know, a photo through tinymce. The other uploads went fine.

    Not important. I thank you for being there for me. We can probably close this now. I don't think we'll be able to figure out the problem with uploading when clicking on the tree icon in tinymce.
  • This error indicates that somewhere a URL was created that had the form <site>/<album>/advanced.html. Given that there was no such advanced.html file found on the path zenphoto would treat this as a request to load an image of that name.

    Do you use the class-textobject plugin and have html "imges"?
  • acrylian Administrator, Developer
    Well, I have an suspicion now. "advanced" is the tinyMCE theme that is used for zenpage items. Now Safari and other webkit based browsers have a bug that sometime displays js source code where it should not. It looks that this maybe happened with this form. In that case there is nothing we can do than to suggest to use Firefox...
  • It could also be a folder (or file) permissions problem that does not let the WEB browser access this file. The mod_rewrite rules will assume the file is an "image" if it is not "present" on the server.

    Try disabling mod_rewrite and see if the problem goes away.
Sign In or Register to comment.