Error occured while integrating Codeigniter with Sentry 2 - php

I simply followed the instruction of the following link but am getting this error while integrating Sentry 2 with Codeigniter 3.
Link: https://cartalyst.com/manual/sentry/2.1#configuration
A PHP Error was encountered
Severity: Warning
Message: Class 'Cartalyst\Sentry\Facades\CI\Sentry' not found
Filename: config/config.php
Line Number: 513
Backtrace:
File: C:\wamp\www\codeigniter2\application\config\config.php
Line: 513
Function: class_alias
File: C:\wamp\www\codeigniter2\index.php
Line: 292
Function: require_once

Try It
Add autoload.php to your Codeigniter’s index.php before require_once BASEPATH.’core/CodeIgniter.php’;
include_once './vendor/autoload.php';

you must run
composer dump-autoload
first

Hey in case someone is still looking for a solution try to implement as such - https://thephpx.wordpress.com/2018/04/25/setup-sentry-on-codeigniter-3-1/

Related

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.

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 ?

Issue with PHPSpreadsheet

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.

Upgrading codeigniter from 3.0.6 to 3.1.0

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

Categories