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.
Related
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)?
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
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 ?
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.
Hy, I have a site based on codeigniter 3.0.6 which I am going to upgrade to 3.1.0,
I downloaded the codeigniter 3.1.0 and copy my files (view, model. controller). I changed my routes.php, database.php and config.php.
I am facing an error:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Travels::$db
Filename: core/Model.php
Line Number: 77
Backtrace:
File: D:\xamp\htdocs\update\application\models\Travel.php
Line: 95
Function: __get
File: D:\xamp\htdocs\update\application\controllers\Travels.php
Line: 29
Function: all_des
File: D:\xamp\htdocs\update\application\controllers\Travels.php
Line: 41
Function: main_header
File: D:\xamp\htdocs\update\index.php
Line: 315
Function: require_once
what should I do ??
Try just replace the system folder with the new one.
Please refer to: Upgrading from 3.0.6 to 3.1.0