CodeIgniter 3 Error: Creation of dynamic property CI_URI::$config is deprecated - codeigniter

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\sin\index.php
Line: 315
Function: require_once
codeigniter version 3.1.12
How to fix the error?

Set the baseurl by opening the application/config/config.php file with a text editor.
Change:
$config['base_url'] = '';
to
$config['base_url'] = ‘http://localhost’;

Related

Magento when enabling log through command line getting error

In my Magento application when I try to enable logging in command line using below code
# bin/magento setup:config:set –enable-debug-logging=true
I am getting the error
PHP Fatal error: Declaration of Magenest\SagePay\Helper\Logger::debug($message, array $context = []) must be compatible with Monolog\Logger::debug($message, array $context = []): void in /vendor/magenest/module-sage-pay-basic/Helper/Logger.php on line 49

Type: Error Message: Class 'CI_Controller' not found Filename: F:\wamp64\www\varient-v1.6.1\system\core\CodeIgniter.php Line Number: 369

Facing a strange error while using Codeigniter with wamp + php 7.1.16 + mysql 5.7.21 version
Type: Error
Message: Class 'CI_Controller' not found
Filename: F:\wamp64\www\varient-v1.6.1\system\core\CodeIgniter.php
Line Number: 369
I already checked database.php and its credentials, it's all correct...
Please help...

TCPDF ERROR joomla virtuemart does not create the invoice

I use joomla 3.9.6, virtuemart 3.4.2, and tcpdf 1.0.7
When i try to view the invoice(pdf) or when i change order status to confirmed i get the TCPDF ERROR: Unable to create output file: \vmorders\invoices\invoice_190522TIXG01.pdf
i already have created the folders vmorders\invoices and gave it the proper permissions. (the site runs locally with wamp)
Php Error log
[22-May-2019 16:11:21 UTC] PHP Warning: fopen(): remote host file access not supported, file://\vmorders\invoices\invoice_190522TIXG01.pdf in C:\wamp64\www\byzantinemusic\libraries\vendor\tecnickcom\tcpdf\include\tcpdf_static.php on line 1854
I think i have found the solution. Edit "libraries\vendor\tecnickcom\tcpdf\include\tcpdf_static.php". At line 1850 remove code
$filename = 'file://'.$filename;
and substitute with this
$absPath = getcwd();
$filename = str_replace("\\administrator","",$absPath) .$filename;
For Virtuemart 3.6.10:
Edit "libraries\vendor\tecnickcom\tcpdf\include\tcpdf_static.php".
At line 1817 remove code:
$filename = 'file://'.$filename;
and replace with:
$filename = $filename;
$absPath = getcwd();
$filename = str_replace("\\administrator","",$absPath)."/".$filename;

codeigniter logging function not generate message

page show this error in codeigniter project but log file not generate error
its me first experience with logging function
so i do not know how to generate error
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: bottomstatus
Filename: views/template.php
Line Number: 65
Backtrace:
File: D:\xampp\htdocs\timehubzone\application\views\template.php
Line: 65
Function: _error_handler
codeigniter error status
$config['log_threshold'] = 1;
$config['log_path'] = '';
$config['log_file_extension'] = '';
In order to get notices logged too - you've to increase your threshold value
Instead of
$config['log_threshold'] = 1;
you simply have to change that to
$config['log_threshold'] = 2;
Be aware, this isn't useful for production environments - because your log file will get to big. You will find more information at the Codeigniter Documentation and at this SO post answered by Narf: CodeIgniter 3 - configuring log_threshold

opencart Notice: Trying to get property of non-object in

I installed opencart in my server hosting. But the site shows the lines given below.
My site is http://fruitsclubbd.com/
Is it problem of server or opencart?
Notice: Trying to get property of non-object in /home8/fruitscl/public_html/index.php on line 52
Notice: Trying to get property of non-object in /home8/fruitscl/public_html/index.php on line 61
Warning: Invalid argument supplied for foreach() in /home8/fruitscl/public_html/index.php on line 61
Notice: Trying to get property of non-object in /home8/fruitscl/public_html/index.php on line 69
Here is the lines of index.php form line 40 to 70.
// Application Classes
require_once(DIR_SYSTEM . 'library/customer.php');
require_once(DIR_SYSTEM . 'library/affiliate.php');
require_once(DIR_SYSTEM . 'library/currency.php');
require_once(DIR_SYSTEM . 'library/tax.php');
require_once(DIR_SYSTEM . 'library/weight.php');
require_once(DIR_SYSTEM . 'library/length.php');
require_once(DIR_SYSTEM . 'library/cart.php');
// Registry
$registry = new Registry();
// Loader
$loader = new Loader($registry);
$registry->set('load', $loader);
Are you trying to use mysqli? If so, edit both of your config files on the DB_DRIVER line and change it from mysql to mysqli. All what probably happened was choosing mysqli instead of mysql during the installation.

Resources