Jump to:

520 Posts in 248 Topics by 263 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » server error in upload image field

Forum for content editors and CMS users.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1109 Views
  • KimK
    Avatar
    Community Member
    7 Posts

    server error in upload image field Link to this post

    Hello,

    I have a strange error: It all works fine locally, but now on the webserver I get a server error message instead of the uploading field for the image. It only happens for the last image..

    I have a couple of images:

    static $has_one = array(
    'Logo' => 'Image',
    'QRCode_img' => 'Image',
    'Image_1' => 'Image',
    'Image_2' => 'Image',
    'SponsoredBYImage' => 'Image',
    'SponsorOfImage' => 'Image',
    'fakeImage' => 'Image',
    'Author' => 'Member'
    );

    function getCMSFields() {
    $fields = new FieldSet(....

    new ImageField('Logo'),
    new ImageField('Image_1'),
    new ImageField('Image_2'),
    new ImageField('QRCode_img'),
    new ImageField('SponsoredBYImage'),
    new ImageField('SponsorOfImage'),
    ...);

    as I mentioned I have no problems locally (wamp), but on the webserver where I really need it, I don't get the normal uploading field. Instead I have the server error message...

    Has anybody an idea how that can be? Exactly the same code local and there...

    Any help really appreciated!

  • KimK
    Avatar
    Community Member
    7 Posts

    Re: server error in upload image field Link to this post

    Does nobody else have the problem?

    Any hint why it works on my local server (wamp) and not on the webserver out there? Is there any configuration or version of anything I have to look for?

    I still use SS2.4

    Any help would be really appreciated.

    Thanks

  • martimiz
    Avatar
    Forum Moderator
    1086 Posts

    Re: server error in upload image field Link to this post

    Hi KimK,
    The reason nobody replied to your question might be that this is the section devoted to the content editor = the TinyMCE editor used in the CMS...

    No, I've not had this problem, but it might have something to do with the server settings - memory even. Did you get any other error or just the 500 server error. In that case setting your site to dev mode might help. In your _config.php:

    Director::set_environment_type("dev");

    Also the Firebug extension in FireFox might give you some clue...

    You say the error only happens on the last image. Does it make any difference if you change the sequence of the ImageFields in your getCMSFields function?

    1109 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.