CI_Exceptions::show_exception() must be an instance of Exception - php

I got error in codeigniter 3.0 with php7. please look below error and help me.
Can you please let me know what wrong with my code and system library of codeigniter 3.o.
PHP Fatal error: Uncaught TypeError: Argument 1 passed to CI_Exceptions::show_exception() must be an instance of Exception, instance of Error given, called in /var/www/html/vsports/cron/system/core/Common.php on line 663 and defined in /var/www/html/vsports/cron/system/core/Exceptions.php:190
Stack trace:
#0 /var/www/html/vsports/cron/system/core/Common.php(663): CI_Exceptions->show_exception(Object(Error))
#1 [internal function]: _exception_handler(Object(Error))
#2 {main}
thrown in /var/www/html/vsports/cron/system/core/Exceptions.php on line 190
Fatal error: Uncaught TypeError: Argument 1 passed to CI_Exceptions::show_exception() must be an instance of Exception, instance of Error given, called in /var/www/html/vsports/cron/system/core/Common.php on line 663 and defined in /var/www/html/vsports/cron/system/core/Exceptions.php:190
Stack trace:
#0 /var/www/html/vsports/cron/system/core/Common.php(663): CI_Exceptions->show_exception(Object(Error))
#1 [internal function]: _exception_handler(Object(Error))
#2 {main}
thrown in /var/www/html/vsports/cron/system/core/Exceptions.php on line 190
A PHP Error was encountered
Severity: ErrorMessage: Uncaught TypeError: Argument 1 passed to CI_Exceptions::show_exception() must be an instance of Exception, instance of Error given, called in /var/www/html/vsports/cron/system/core/Common.php on line 663 and defined in /var/www/html/vsports/cron/system/core/Exceptions.php:190
Stack trace:
#0 /var/www/html/vsports/cron/system/core/Common.php(663): CI_Exceptions->show_exception(Object(Error))
#1 [internal function]: _exception_handler(Object(Error))
#2 {main}
thrownFilename: /var/www/html/vsports/cron/system/core/Exceptions.phpLine Number: 190

Related

I have problem in eikra after update it give this problem

Fatal error: Uncaught Error: Class 'RDTheme' not found in /home/bkucedup/public_html/staging/wp-content/themes/eikra/page.php:9 Stack trace: #0 /home/bkucedup/public_html/staging/wp-includes/template-loader.php(106): include() #1 /home/bkucedup/public_html/staging/wp-blog-header.php(19): require_once('/home/bkucedup/...') #2 /home/bkucedup/public_html/staging/index.php(17): require('/home/bkucedup/...') #3 {main} thrown in /home/bkucedup/public_html/staging/wp-content/themes/eikra/page.php on line 9
Fatal error: Uncaught Error: Class 'RDTheme' not found in /home/bkucedup/public_html/staging/wp-content/themes/eikra/page.php:9 Stack trace: #0 /home/bkucedup/public_html/staging/wp-includes/template-loader.php(106): include() #1 /home/bkucedup/public_html/staging/wp-blog-header.php(19): require_once('/home/bkucedup/...') #2 /home/bkucedup/public_html/staging/index.php(17): require('/home/bkucedup/...') #3 {main} thrown in /home/bkucedup/public_html/staging/wp-content/themes/eikra/page.php on line 9

Why is there an error like this when I install inoerp?

I am trying to install inoerp and am getting the following error:
Fatal error: Uncaught Error: Call to undefined function create_function() in C:\xampp\htdocs\inoerp\www\includes\engine\install\steps\complete_install.php:78
Stack trace:
#0 C:\xampp\htdocs\inoerp\www\includes\engine\install\steps\complete_install.php(20): getQueriesFromSQLFile('C:\\xampp\\htdocs...')
#1 C:\xampp\htdocs\inoerp\www\includes\engine\install\steps\complete_install.php(115): importSQL('C:\\xampp\\htdocs...', Object(dbc))
#2 C:\xampp\htdocs\inoerp\www\includes\engine\install\install_template.php(40): require_once('C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\inoerp\www\install.php(44): include_once('C:\\xampp\\htdocs...')
#4 {main} thrown in C:\xampp\htdocs\inoerp\www\includes\engine\install\steps\complete_install.php on line 78

Fatal error: Uncaught Error: Call to undefined function get_post_datetime()

When I try to open article it shows the following error:
Fatal error: Uncaught Error: Call to undefined function get_post_datetime() in C:\xampp\htdocs\wp-content\plugins\td-cloud-library\state\single\tdb_state_single.php:1666 Stack trace:
#0 C:\xampp\htdocs\wp-content\plugins\td-cloud-library\wp_templates\tdb_view_single.php(89): tdb_state_single->{closure}()
#1 C:\xampp\htdocs\wp-content\plugins\td-cloud-library\wp_templates\tdb_view_single.php(89): Closure->__invoke()
#2 C:\xampp\htdocs\wp-includes\template-loader.php(78): include('C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\wp-blog-header.php(19): require_once('C:\\xampp\\htdocs...')
#4 C:\xampp\htdocs\index.php(17): require('C:\\xampp\\htdocs...')
#5 {main} thrown in C:\xampp\htdocs\wp-content\plugins\td-cloud-library\state\single\tdb_state_single.php on line 1666
Anyone know the issue?
get_post_datetime() was introduced in WordPress version 5.3. You need to update to that version in order to correct the error you are seeing.
https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/

Invalid Parameter – yii\base\InvalidParamException The file or directory to be published does not exist: /frontend/web

Moved the site from one server to another with postgresql database. Db has been connected. Then I used this command:
composer install
While loading the site, yii debugger shows an error
What is more, composer update shows many errors in console:
PHP Fatal error: Uncaught Error: Call to undefined method Composer\Package\RootPackage::getConfig() in /var/www/907-irbis/data/www/site.ru/vendor/fxp/composer-asset-plugin/Config/ConfigBuilder.php:111
Stack trace:
#0 /var/www/907-irbis/data/www/site.ru/vendor/fxp/composer-asset-plugin/Config/ConfigBuilder.php(74): Fxp\Composer\AssetPlugin\Config\ConfigBuilder::getConfigBase(Object(Composer\Composer), Object(Composer\IO\ConsoleIO))
#1 /var/www/907-irbis/data/www/site.ru/vendor/fxp/composer-asset-plugin/FxpAssetPlugin.php(82): Fxp\Composer\AssetPlugin\Config\ConfigBuilder::build(Object(Composer\Composer), Object(Composer\IO\ConsoleIO))
#2 /usr/share/php/Composer/Plugin/PluginManager.php(215): Fxp\Composer\AssetPlugin\FxpAssetPlugin->activate(Object(Composer\Composer), Object(Composer\IO\ConsoleIO))
#3 /usr/share/php/Composer/Plugin/PluginManager.php(188): Composer\Plugin\PluginManager->addPlugin(Object(Fxp\Composer\AssetPlugin\FxpAssetPlugin))
#4 /usr/share/php/Composer/Installer/PluginInstaller.php(62): Composer\Pl in /var/www/907-irbis/data/www/site.ru/vendor/fxp/composer-asset-plugin/Config/ConfigBuilder.php on line 111
Fatal error: Uncaught Error: Call to undefined method Composer\Package\RootPackage::getConfig() in /var/www/907-irbis/data/www/site.ru/vendor/fxp/composer-asset-plugin/Config/ConfigBuilder.php:111
Stack trace:
#0 /var/www/907-irbis/data/www/site.ru/vendor/fxp/composer-asset-plugin/Config/ConfigBuilder.php(74): Fxp\Composer\AssetPlugin\Config\ConfigBuilder::getConfigBase(Object(Composer\Composer), Object(Composer\IO\ConsoleIO))
#1 /var/www/907-irbis/data/www/site.ru/vendor/fxp/composer-asset-plugin/FxpAssetPlugin.php(82): Fxp\Composer\AssetPlugin\Config\ConfigBuilder::build(Object(Composer\Composer), Object(Composer\IO\ConsoleIO))
#2 /usr/share/php/Composer/Plugin/PluginManager.php(215): Fxp\Composer\AssetPlugin\FxpAssetPlugin->activate(Object(Composer\Composer), Object(Composer\IO\ConsoleIO))
#3 /usr/share/php/Composer/Plugin/PluginManager.php(188): Composer\Plugin\PluginManager->addPlugin(Object(Fxp\Composer\AssetPlugin\FxpAssetPlugin))
#4 /usr/share/php/Composer/Installer/PluginInstaller.php(62): Composer\Pl in /var/www/907-irbis/data/www/site.ru/vendor/fxp/composer-asset-plugin/Config/ConfigBuilder.php on line 111

Laravel 5.1 Composer install error

When running composer install I get the following error:
php artisan clear-compiled
PHP Fatal error: Uncaught TypeError: Argument 1 passed to App\Exceptions\Handler::report() must be an instance of Exception, instance of Error given, called in /home/vagrant/Code/courtesy-sys/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php on line 73 and defined in /home/vagrant/Code/courtesy-sys/app/Exceptions/Handler.php:25
Stack trace:
#0 /home/vagrant/Code/courtesy-sys/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(73): App\Exceptions\Handler->report(Object(Error))
#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Error))
#2 {main}
thrown in /home/vagrant/Code/courtesy-sys/app/Exceptions/Handler.php on line 25
[Symfony\Component\Debug\Exception\FatalErrorException]
Uncaught TypeError: Argument 1 passed to App\Exceptions\Handler::report() must be an instance of Exception, instance of Error given, called in /home/vagrant/Code/courtesy-sys/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php on line 73 and defined in /home/vagrant/Code/courtesy-sys/app/Exceptions/Handler.php:25
Stack trace:
#0 /home/vagrant/Code/courtesy-sys/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(73): App\Exceptions\Handler->report(Object(Error))
#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Error))
#2 {main}
thrown
Script php artisan clear-compiled handling the post-install-cmd event returned with error code 255
Is there someone with a similar problem and can provide me with the solution. I tried Google without any results...
Try it:
composer install --no-scripts

Categories