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
Related
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
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 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.
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/