Menu

error when exporting csv

Help
2020-08-08
2020-11-10
  • charles gen

    charles gen - 2020-08-08

    Having this problem

    ``Notice (1024): Undefined property: VouchersController::$tmpDir in /usr/share/nginx/html/cake3/rd_cake/src/Controller/AppController.php on line 143 [CORE/src/Controller/Controller.php, line 388]
    Notice (1024): Undefined property: VouchersController::$tmpDir in /usr/share/nginx/html/cake3/rd_cake/src/Controller/VouchersController.php on line 59 [CORE/src/Controller/Controller.php, line 388]
    Warning (512): Unable to emit headers. Headers sent in file=/usr/share/nginx/html/cake3/rd_cake/vendor/cakephp/cakephp/src/Error/Debugger.php line=853 [CORE/src/Http/ResponseEmitter.php, line 51]
    Code Context
    Cake\Core\Plugin::{closure}() - ROOT/vendor/cakephp/debug_kit/config/bootstrap.php, line 42
    Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 51
    Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
    require - ROOT/webroot/index.php, line 37
    [main] - ROOT/index.php, line 16
    Warning (2): Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/cake3/rd_cake/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 152]
    Warning (2): Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/cake3/rd_cake/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 185]
    Code Context
    Cake\Core\Plugin::{closure}() - ROOT/vendor/cakephp/debug_kit/config/bootstrap.php, line 42
    header - [internal], line ??
    Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 185
    Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 58
    Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
    require - ROOT/webroot/index.php, line 37
    [main] - ROOT/index.php, line 16
    Warning (2): Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/cake3/rd_cake/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 185]
    Code Context
    Cake\Core\Plugin::{closure}() - ROOT/vendor/cakephp/debug_kit/config/bootstrap.php, line 42
    header - [internal], line ??
    Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 185
    Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 58
    Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
    require - ROOT/webroot/index.php, line 37
    ~~~

    ~~~ [main] - ROOT/index.php, line 16

     
  • Gunnar Rangøy

    Gunnar Rangøy - 2020-11-10

    Hi,

    I don't know if this is fixed in newer versions and how what the tmpDir should contain.

    I fixed it temporarily by inserting this at line 143 in /usr/share/nginx/html/cake3/rd_cake/src/Controller/AppController.php:

            if(!isset($this->tmpDir)) $this->tmpDir  = "csvtmp/";
    
     

    Last edit: Gunnar Rangøy 2020-11-10

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.