Issue with PHPSpreadsheet - php

I'm trying to build a script that will write data to an excel file before sending an email. I'm using PHPSpreadsheet for this, but the initial example is throwing an error. Can someone please let me know where I'm going wrong and how I can fix it.
A PHP Error was encountered
Severity: Warning
Message: ZipArchive::close(): Failure to create temporary file: Permission denied
Filename: Writer/Xlsx.php
Line Number: 374
Backtrace:
File: /Library/WebServer/Documents/Projects/app/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php
Line: 374
Function: close
File: /Library/WebServer/Documents/Projects/app/application/controllers/Login.php
Line: 52
Function: save
File: /Library/WebServer/Documents/Projects/app/index.php
Line: 323
Function: require_once
An uncaught Exception was encountered
Type: PhpOffice\PhpSpreadsheet\Writer\Exception
Message: Could not close zip file helloworld.xlsx.
Filename: /Library/WebServer/Documents/Projects/app/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php
Line Number: 375
Backtrace:
File: /Library/WebServer/Documents/Projects/app/application/controllers/Login.php
Line: 52
Function: save
File: /Library/WebServer/Documents/Projects/app/index.php
Line: 323
Function: require_once
P.S. I'm using Codeigniter and my dev machine is a macbook and server is Ubuntu16.04 on AWS.

Related

i have installed CodeIgniter but some error displayed in installation process that's why i am ask for you

A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_URI::$config is deprecated
Filename: core/URI.php
Line Number: 102
Backtrace:
File: C:\xampp\htdocs\ci3\index.php
Line: 315
Function: require_once
i have install but some error

Issue with uploading ci project on server

I am receiving the below error when I am uploading my CI3 project on to the server:
ini_set(): Headers already sent. You cannot change the session
module's ini settings at this timeFilename: Session/Session.php
Line Number: 375
Backtrace:
File:
/home/adityanamansingh/rkvd1.adityanamansingh.com/application/controllers/Home.php
Line: 9 Function: library
File: /home/adityanamansingh/rkvd1.adityanamansingh.com/index.php
Line: 315 Function: require_once
What should be the way to remove such error from my project?
I am not receiving the same error on my localhost.

A PHP Error was encountered when I create a website in 000webhost

Hi can you help me with my website, I'm just learning at the moment. I've downloaded a sample of website with database and I uploaded it to 000webhost.com. I've come up with problems like this. Here is what it's saying:
A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): (HY000/2002): Connection refused
Filename: mysqli/mysqli_driver.php
Line Number: 201
Backtrace:
File: /storage/ssd4/463/8701463/public_html/application/controllers/Login.php
Line: 9
Function: __construct
File: /storage/ssd4/463/8701463/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at
/storage/ssd4/463/8701463/public_html/system/core/Exceptions.php:271)
Filename: core/Common.php
Line Number: 570
Backtrace:
File: /storage/ssd4/463/8701463/public_html/application/controllers/Login.php
Line: 9
Function: __construct
File: /storage/ssd4/463/8701463/public_html/index.php
Line: 315
Function: require_once
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: controllers/Login.php
Line Number: 9
(HY000/2002): Connection refused indicates that the client is unable to connect to your MySQL server.
Is the server running?
Is it running at the specified address (host/port)?

How to solve this error, my project is working on linux server?

Actually, my project is not working on the server, I have Linux based server and I got this error and one more this project working on local properly without any error.
set_error_handler
An uncaught Exception was encountered
Type: Error
Message: Class 'CI_Controller' not found
Filename: /home/madan16393/public_html/recallhotel/system/core/CodeIgniter.php
Line Number: 366
Backtrace:
File: /home/madan16393/public_html/recallhotel/application/config/routes.php
Line: 62
Function: get
File: /home/madan16393/public_html/recallhotel/index.php
Line: 629
Function: require_once

Error after install SSL Codeigniter

For the first time I see this message error after I put https in my codeigniter website.
Message: Call to undefined function iconv()
Filename: /home/admedica/public_html/admedicall_v1/application/views/admin/billing/bill/centro/bill.php
Line Number: 45
Backtrace:
File: /home/admedica/public_html/admedicall_v1/application/controllers/Admin.php
Line: 3981
Function: view
File: /home/admedica/public_html/admedicall_v1/index.php
Line: 315
Function: require_once
Before without https it works.
How can i solve this problem ?

Categories