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.

PHP error using Safecracker / images not deleted from directory

July 29, 2011 7:01pm

Subscribe [6]
  • #31 / Aug 29, 2011 2:56pm

    Kevin Smith

    4784 posts

    Hi FarmBoy,

    Got word back from the devs on this, and it looks like we’ve got a fix. If you’re comfortable doing so, open up system/expressionengine/libraries/Filemanager.php and look at line 875:

    $vars = array(
        'base_url'    => BASE.AMP.'C=content_files_modal'
    );

    Replace that block with those one:

    $base = (defined('BASE')) ? BASE : $this->EE->functions->fetch_site_index(0,0).QUERY_MARKER; 
            
    $vars = array(
        'base_url'    => $base.AMP.'C=content_files_modal'
    );

    Does that take care of your issues?

  • #32 / Aug 29, 2011 5:33pm

    FarmBoy

    24 posts

    Yes that fixes the PHP error, thank you very much sir.

    Should I expect this change in a future EE release, or expect to carry this fix over to the next version?

    I would like to thank everyone that helped me in this thread.  Support has been awesome. I’m really glad I chose to use EE.

    Plus-one for everybody!

  • #33 / Aug 29, 2011 6:54pm

    Dan Decker

    7338 posts

    FarmBoy,

    I imagine this would be rolled into the next EE release as a bug fix. Have a read through the next change log to be sure.

    Thank you for choosing ExpressionEngine and let us know when we can be of assistance in the future.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases