Replacing a template file generates an error in admin
  • In themes, I tried to use the replacement feature in Newscoop but I encountered an error.
    I selec the file, and click on Replace button and I get:

    Error ID: 2:Newscoop:4.0.2:Loader.php:146
    Error String: include_once(finfo.php) [function.include-once]: failed to open stream: No such file or directory
    Time: Fri, 30 Nov 2012 12:13:04 -0600
    Backtrace:

    {closure}() called at [/home/ns/public_html/portal/library/Zend/Loader.php:146]
    Zend_Loader::loadFile() called at [/home/ns/public_html/portal/library/Zend/Loader.php:146]
    Zend_Loader::loadFile() called at [/home/ns/public_html/portal/library/Zend/Loader.php:94]
    Zend_Loader::loadClass() called at [:]
    call_user_func() called at [/home/ns/public_html/portal/library/Zend/Loader/Autoloader.php:472]
    Zend_Loader_Autoloader::_autoload() called at [:]
    call_user_func() called at [/home/ns/public_html/portal/library/Zend/Loader/Autoloader.php:124]
    Zend_Loader_Autoloader::autoload() called at [:]
    spl_autoload_call() called at [/home/ns/public_html/portal/library/Newscoop/Storage.php:392]
    Newscoop\Storage::getMimeType() called at [/home/ns/public_html/portal/library/Newscoop/Service/Template.php:207]
    Newscoop\Service\Template::replaceItem() called at [/home/ns/public_html/portal/application/modules/admin/controllers/TemplateController.php:223]
    Admin_TemplateController::editAction() called at [/home/ns/public_html/portal/library/Zend/Controller/Action.php:513]
    Zend_Controller_Action::dispatch() called at [/home/ns/public_html/portal/library/Zend/Controller/Dispatcher/Standard.php:295]
    Zend_Controller_Dispatcher_Standard::dispatch() called at [/home/ns/public_html/portal/library/Zend/Controller/Front.php:954]
    Zend_Controller_Front::dispatch() called at [/home/ns/public_html/portal/library/Zend/Application/Bootstrap/Bootstrap.php:97]
    Zend_Application_Bootstrap_Bootstrap::run() called at [/home/ns/public_html/portal/library/Zend/Application.php:366]
    Zend_Application::run() called at [/home/ns/public_html/portal/public/index.php:5]
    require_once() called at [/home/ns/public_html/portal/admin.php:4]


    Thank you!


    Post edited by Oscar at 2012-11-30 14:24:24
  • 3 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    Could you try to reproduce it on newscoop demo site? Thanks.
  • Hi:

    I tried to replace one tpl file on demo site and I when I click on Save I got:

    Not Found

    The requested URL /admin/template/edit/path/_tpl/file/_banner-sidebar.tpl/next/%252Fadmin%252Fthemes%252Fadvanced-theme-settings%252Fid%252F1721544697%252Fpath%252F_tpl/id//admin/themes/advanced-theme-settings/id/1721544697/path/_tpl was not found on this server.

    Thanks
    Post edited by Oscar at 2012-12-04 22:56:22
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    just checked - it works for me w/o any issue
    it seems you have local antivirus filter or something like this