Jump to:

517 Posts in 247 Topics by 260 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » Error when inserting image

Forum for content editors and CMS users.

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

Page: 1
Go to End
Author Topic: 942 Views
  • pecos_red
    Avatar
    Community Member
    7 Posts

    Error when inserting image Link to this post

    I'm getting a website error when attempting to insert an image into the content of my site.

    It used to work, and I haven't made any code changes since the last time I updated the site content. I'm still using v. 2.3.0, so maybe I should upgrade, but still it's hard to understand why it would just quit working.

    I switched to dev mode and received the following error message:

    [User Error] Object::__call() Method 'insertimage' not found in class 'Form'
    POST /admin/EditorToolbar/ImageForm

    Line 133 in /home/mavacati/public_html/sapphire/core/Object.php
    Source
    124
    125          } else if($config['function_str']) {
    126             $function = Object::$extraMethods[$this->class][strtolower($methodName)]['function'] = create_function('$obj, $args', $config['function_str']);
    127             return $function($this, $args);
    128
    129          } else {
    130             user_error("Object::__call() Method '$methodName' in class '$this->class' an invalid format: " . var_export(Object::$extraMethods[$this->class][$methodName],true), E_USER_ERROR);
    131          }
    132       } else {
    133          user_error("Object::__call() Method '$methodName' not found in class '$this->class'", E_USER_ERROR);
    134       }
    135    }
    136
    137    /**
    138     * This function allows you to overload class creation methods, so certain classes are
    139     * always created correctly over your system.
    Trace
    Object::__call() Method 'insertimage' not found in class 'Form'
    Line 133 of Object.php
    Object->__call(insertimage,Array)
    Form->insertimage(Array,Form,HTTPRequest)
    Line 232 of Form.php
    Form->httpSubmission(HTTPRequest)
    Line 107 of RequestHandler.php
    RequestHandler->handleRequest(HTTPRequest)
    Line 121 of RequestHandler.php
    RequestHandler->handleRequest(HTTPRequest)
    Line 121 of RequestHandler.php
    RequestHandler->handleRequest(HTTPRequest)
    Line 122 of Controller.php
    Controller->handleRequest(HTTPRequest)
    Line 262 of Director.php
    Director::handleRequest(HTTPRequest,Session)
    Line 106 of Director.php
    Director::direct(admin/EditorToolbar/ImageForm)
    Line 115 of main.php

    Any help is appreciated!

  • pecos_red
    Avatar
    Community Member
    7 Posts

    Re: Error when inserting image Link to this post

    Hmm, switched to Firefox and am no longer receiving the error. But I could swear that I edited the site with Opera before. I could be mistaken, though.

    Still don't understand why Opera, but not Firefox, would generate an error in the code. However, the CMS is not completely functional in Opera, at least not in 2.3.0.

    So, yeah, guess I'll try to update soon and see if Opera works any better in 2.3.4.

    942 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.