ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Error Message - Browser CSS Error?

February 07, 2014 4:46am

Subscribe [4]
  • #1 / Feb 07, 2014 4:46am

    Caymen14

    13 posts

    Hello,

    from time to time i get the folllowing error message:

    ##
    Severity: Notice
    Message: Undefined property: EE::$view
    Filename: libraries/File_field.php
    Line Number: 716

    Fatal error: Call to a member function head_link() on a non-object in /web/1/000/034/882/111881/htdocs/neueroeffnung/system/expressionengine/libraries/File_field.php
    on line 716
    ##

    The code there is

    ##
    private function _browser_css()
    {
    ee()->cp->add_to_head(ee()->view->head_link(‘css/file_browser.css’));
    }
    ##

    I’m not sure if there even is a css/file_browser.css (didn`t find one). Does anyone know if i need this?

    Thanks!
    Caymen

  • #2 / Feb 11, 2014 6:14pm

    Meadows Center

    3 posts

    Is this inside a matrix field?
    Is the file column inside the matrix field required? If so, try un-requiring it. Especially if the matrix field itself is not required.

  • #3 / Feb 24, 2014 5:38am

    Caymen14

    13 posts

    Is this inside a matrix field?
    Is the file column inside the matrix field required? If so, try un-requiring it. Especially if the matrix field itself is not required.

    Sorry, could you explain this in a little bit more detail?
    Thanks!
    Caymen

  • #4 / Feb 24, 2014 6:05pm

    Meadows Center

    3 posts

    Well, I just encountered this problem again.
    If you don’t have Matrix installed, ignore what I mentioned before.

    I’ve found this setting to be the culprit in failed attempts at editing other entries on the front-end, I believe in changing the status of an entry.

    In an instance similar to yours, I found out when logged in as a non super-admin that the user’s group must have the ‘Can change the author name when posting channel entries’ setting set to ‘yes’.

    And at least concerning changing the status, the original author’s group has to have “Include Members in PUBLISH page multi-author list?” set to “Yes.”
    So that might be true for file uploads as well.

  • #5 / Feb 25, 2014 3:34pm

    Caymen14

    13 posts

    The ‘Can change the author name when posting channel entries’ status was ‘yes’ already. And we don`t have pages with multiple authors. Each page is created by a single author an. No entry will change the author status.

  • #6 / Mar 18, 2014 3:22pm

    Meadows Center

    3 posts

    One more check: Assuming this error is coming up in a front-end channel form, are there fields required by the entry in the ‘channel fields group’ for that channel?

    If the channel field is required and nothing is given in the front-end form submit this can cause the error to be thrown as well.

    The previously stated issue concerning multiple authors is a weird bug I found that throws the same error. Can occur simply if a non-superuser tries to edit someone else’s entry.

  • #7 / Apr 11, 2014 4:55am

    amityweb

    162 posts

    I also get this, quite strange.

    I have a Wygwam field, which also has Channel Images added it to it. If I remove this field, which is required, I dont get the error, I do get the errors telling me all my required fields are required. So I thought it was related.

    Following on from your suggestions, I filled the form in completely, and it saves OK. I then left some and all the required fields empty, and it seems this error only occurs when a required field is empty. But also when using this Wygwam field.

    So error occurs when required fields are left blank whilst also having a wygwam field (dont know if channel images icon affects it).

    In the short term I think I will add some Javascript to check if the required fields are empty, to force users to fill them in, and so avoiding this error. But thats not a solution of course.

  • #8 / Jul 02, 2014 7:06pm

    ipixel (Australia)

    158 posts

    Did anyone get to the bottom of this one? I to am getting this error now - but not sure what has triggered it as it has been working totally fine before. This is under ExpressionEngine v2.5.5 (it’s a big MSM site so upgrading is not an easy affair).

    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined property: EE::$view
    
    Filename: libraries/File_field.php
    
    Line Number: 618
    
    Fatal error: Call to a member function head_link() on a non-object in /path/to/website/production/system/expressionengine/libraries/File_field.php on line 618
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases