Error after install SSL Codeigniter - php

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 ?

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

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.

codeigniter doctrine getRepository() working on local but not on server

I am user CodeIgniter 3 and Doctrine2. Now, when I tried to find record it works on my local server but its not woking on my web server; here is my find code
$user = $this->em->getRepository('entities\AdminAuth')->findBy(
array(
'username' => $data['username'], 'password' => $pwd
)
);
Its showed me following error on my web server,
An uncaught Exception was encountered
Type: Error
Message: Access to undeclared static property: Modules::$loader
Filename:
/home/tiffintom/public_html/mgt/Master_Panel/application/third_party/Doctrine/Common/ClassLoader.php
Line Number: 228
Backtrace:
File:
/home/tiffintom/public_html/mgt/Master_Panel/application/third_party/Doctrine/ORM/Mapping/ClassMetadataInfo.php
Line: 904 Function: classExists
File:
/home/tiffintom/public_html/mgt/Master_Panel/application/third_party/Doctrine/ORM/Mapping/ClassMetadataFactory.php
Line: 189 Function: validateAssocations
File:
/home/tiffintom/public_html/mgt/Master_Panel/application/third_party/Doctrine/ORM/Mapping/ClassMetadataFactory.php
Line: 171 Function: validateRuntimeMetadata
File:
/home/tiffintom/public_html/mgt/Master_Panel/application/third_party/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php
Line: 302 Function: doLoadMetadata
File:
/home/tiffintom/public_html/mgt/Master_Panel/application/third_party/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php
Line: 205 Function: loadMetadata
File:
/home/tiffintom/public_html/mgt/Master_Panel/application/third_party/Doctrine/ORM/EntityManager.php
Line: 268 Function: getMetadataFor
File:
/home/tiffintom/public_html/mgt/Master_Panel/application/third_party/Doctrine/ORM/EntityManager.php
Line: 682 Function: getClassMetadata
File:
/home/tiffintom/public_html/mgt/Master_Panel/application/modules/admin/controllers/Authentication.php
Line: 21 Function: getRepository
File: /home/tiffintom/public_html/mgt/Master_Panel/index.php Line: 322
Function: require_once**
Please help me
It was happening for the version of the doctrine classLoader. I used old version classLoader from my previous project thats why it was showing error.

Codeigniter Severity warning

Problem
I am trying to use file_get_contents However that gives me error
A PHP Error was encountered
I tried to change in php.ini allow_url_fopen = 1 however no result.
A PHP Error was encountered
Severity: Warning
Message: file_get_contents(https://api.telegram.org/bot [number token]/getUpdates):
Filename: controllers/lifeChange.php
Line Number: 19
Backtrace:
File: C:\OpenServer\domains\localhost\admin\application\controllers\lifeChange.php
Line: 19
Function: file_get_contents
File: C:\OpenServer\domains\localhost\admin\index.php
Line: 315
Function: require_once

Categories