I am using a extension of import/export products in OpenCart but there is an error when i used it on window.
Fatal error: Uncaught exception 'Exception' with message 'Could not
open C:\Windows\Temp\php479C.tmp for reading! File does not exist.' in
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\Reader\Excel2007.php:168
Stack trace: #0
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\IOFactory.php(269):
PHPExcel_Reader_Excel2007->canRead('C:\Windows\Temp...') #1
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\IOFactory.php(207):
PHPExcel_IOFactory::createReaderForFile('C:\Windows\Temp...') #2
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\admin\model\catalog\productimportexport.php(1208):
PHPExcel_IOFactory::identify('C:\Windows\Temp...') #3
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\admin\controller\catalog\productimportexport.php(352):
ModelCatalogProductImportExport->upload('C:\Windows\Temp...', '1') #4
[internal function]: ControllerCatalogProductImportExport->bulk() #5
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\vqmod\ in
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\Reader\Excel2007.php
on line 168 Fatal Error: Uncaught exception 'Exception' with message
'Could not open C:\Windows\Temp\php479C.tmp for reading! File does not
exist.' in
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\Reader\Excel2007.php:168
Stack trace: #0
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\IOFactory.php(269):
PHPExcel_Reader_Excel2007->canRead('C:\Windows\Temp...') #1
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\IOFactory.php(207):
PHPExcel_IOFactory::createReaderForFile('C:\Windows\Temp...') #2
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\admin\model\catalog\productimportexport.php(1208):
PHPExcel_IOFactory::identify('C:\Windows\Temp...') #3
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\admin\controller\catalog\productimportexport.php(352):
ModelCatalogProductImportExport->upload('C:\Windows\Temp...', '1') #4
[internal function]: ControllerCatalogProductImportExport->bulk() #5
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\vqmod\ in
C:\Inetpub\vhosts\webwhisperer.com.au\watermark\system\PHPExcel\Classes\PHPExcel\Reader\Excel2007.php
on line 168
Does anyone know what's the Problem here ..thanks in advance
The top of the stack trace tells you the answer:
Could not open C:\Windows\Temp\php479C.tmp for reading! File does not exist.
The PHPExcel class is unable to open that file as it does not exist. Looking at the stack trace, this is being uploaded by the 'upload' method of the ModelCatalogProductImportExport object. I would ensure that this function is correctly importing the file, and saving it to the correct directory before running the PHPExcel class functions over the file.
Related
after i vitited my nginx website i will get the following error:
Fatal error: Uncaught UnexpectedValueException: There is no existing directory at "/var/www/html/bootstrap/../storage/logs" and it could not be created: Permission denied in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:216 Stack trace: #0 /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(135): Monolog\Handler\StreamHandler->createDir('/var/www/html/b...') #1 /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(48): Monolog\Handler\StreamHandler->write(Array) #2 /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php(327): Monolog\Handler\AbstractProcessingHandler->handle(Array) #3 /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php(500): Monolog\Logger->addRecord(500, 'Uncaught Except...', Array) #4 /var/www/html/vendor/monolog/monolog/src/Monolog/ErrorHandler.php(194): Monolog\Logger->log(500, 'Uncaught Except...', Array) #5 /var/www/html/vendor/monolog/monolog/src/Monolog/ErrorHandler.php(94): Monolog\ErrorHandler->handl in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 216
Fatal error: Uncaught UnexpectedValueException: There is no existing directory at "/var/www/html/bootstrap/../storage/logs" and it could not be created: Permission denied in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:216 Stack trace: #0 /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php(135): Monolog\Handler\StreamHandler->createDir('/var/www/html/b...') #1 /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(48): Monolog\Handler\StreamHandler->write(Array) #2 /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php(327): Monolog\Handler\AbstractProcessingHandler->handle(Array) #3 /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php(500): Monolog\Logger->addRecord(550, 'Fatal Error (E_...', Array) #4 /var/www/html/vendor/monolog/monolog/src/Monolog/ErrorHandler.php(250): Monolog\Logger->log(550, 'Fatal Error (E_...', Array) #5 [internal function]: Monolog\ErrorHandler->handleFatalError() #6 {main} thrown in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 216
Does anyone know how do i fix this?
thank you and best regards
When I run my PHP Yii framework file, It results in the following error.
PHP Compile Error 'yii\base\ErrorException' with message 'Cannot redeclare GuzzleHttp\Psr7\str() (previously declared in /Applications/XAMPP/xamppfiles/htdocs/PLATO/framework/vendor/guzzlehttp/psr7/src/functions.php:19)' in /Applications/XAMPP/xamppfiles/htdocs/PLATO/protected/extensions/aws/GuzzleHttp/Psr7/functions.php:18 Stack trace: #0 [internal function]: yii\base\ErrorHandler->handleFatalError() #1 {main}
How to fix this issue?
I have a project with Laravel 4.
I use an helper in config/database.php
I get this error:
PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class log does not exist' in /var/app/current/vendor/laravel/framework/src/Illuminate/Container/Container.php:741
Stack trace:
#0 /var/app/current/vendor/laravel/framework/src/Illuminate/Container/Container.php(741): ReflectionClass->__construct('log')
#1 /var/app/current/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\Container\Container->build('log', Array)
#2 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('log', Array)
#3 /var/app/current/vendor/laravel/framework/src/Illuminate/Container/Container.php(842): Illuminate\Foundation\Application->make('Psr\\Log\\LoggerI...')
#4 /var/app/current/vendor/laravel/framework/src/Illuminate/Container/Container.php(805): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 /var/app/current/vendor/laravel/framework/src/Illuminate/Container/Container.php(776): Illuminate\Container\C in /var/app/current/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 741
I checked and the class name thats passed to make on /var/app/current/vendor/laravel/framework/src/Illuminate/Container/Container.php(842)
is Psr\Log\LoggerInterface.
I assume the log class gets called before it is loaded and thats why it breaks.
If I remove the use of the helper in config/database.php all works, even if I simulate errors.
Is there a way to resolve it?
I need the Helper there.
I upgraded my prestashop website from 1.6.0.13 to 1.6.1.23 . And it successfully upgraded. But i cant see my front end now . It always shows some error messages. But my backoffice is running smoothly.
error log is given below
Fatal error: Uncaught exception 'Exception' with message
'DateTimeZone::__construct(): Unknown or bad timezone ()' in
C:\xampp\htdocs\preproduction.bt.nl\modules\ph_simpleblog\models\SimpleBlogHelper.php:19
Stack trace: #0
C:\xampp\htdocs\preproduction.bt.nl\modules\ph_simpleblog\models\SimpleBlogHelper.php(19):
DateTimeZone->__construct('') #1
C:\xampp\htdocs\preproduction.bt.nl\modules\ph_simpleblog\models\SimpleBlogPost.php(317):
SimpleBlogHelper::now(false) #2
C:\xampp\htdocs\preproduction.bt.nl\modules\ph_simpleblog\controllers\front\list.php(59):
SimpleBlogPost::getPosts(1, 5) #3
C:\xampp\htdocs\preproduction.bt.nl\classes\controller\Controller.php(189):
PH_SimpleBlogListModuleFrontController->initContent() #4
C:\xampp\htdocs\preproduction.bt.nl\classes\Dispatcher.php(367):
ControllerCore->run() #5
C:\xampp\htdocs\preproduction.bt.nl\index.php(28):
DispatcherCore->dispatch() #6 {main} thrown in
C:\xampp\htdocs\preproduction.bt.nl\modules\ph_simpleblog\models\SimpleBlogHelper.php
on line 19
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