I am creating 2 sub-domains like gateway.domain.com and hp.domain.com
I have installed 2 separate projects name gateway and HP in my local machine,
I upload gateway to gateway.domain.com
It’s working fine.
I upload hp to hp.domain.com
But I got a issue like
Fatal error: Uncaught exception 'ReflectionException' with message 'Class RFID4U_HP\Http\Kernel does not exist' in /var/www/clients/client1/web1/web/subdomains/Gateway/vendor/laravel/framework/src/Illuminate/Container/Container.php:738 Stack trace: #0 /var/www/clients/client1/web1/web/subdomains/Gateway/vendor/laravel/framework/src/Illuminate/Container/Container.php(738): ReflectionClass->__construct('RFID4U_HP\Http...') #1 /var/www/clients/client1/web1/web/subdomains/Gateway/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Container\Container->build('RFID4U_HP\Http...', Array) #2 /var/www/clients/client1/web1/web/subdomains/Gateway/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(697): Illuminate\Container\Container->make('RFID4U_HP\Http...', Array) #3 /var/www/clients/client1/web1/web/subdomains/Gateway/vendor/laravel/framework/src/Illuminate/Container/Container.php(230): Illuminate\Foundation\Application->make('RFID4U_HP\Http...', Array) #4 /var/www/clients/client1/ in /var/www/clients/client1/web1/web/subdomains/Gateway/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 738
Also hp will going to read gateway fw path, I am not able to understand why this happen. In my lcl it’s working fine.
Some time it will reverse functioning hp working gateway will find the path in hp folder.
Fatal error: Uncaught exception 'ReflectionException' with message 'Class RFID4U_GW\Http\Kernel does not exist' in
/var/www/clients/client1/web1/web/subdomains/hp/vendor/laravel/framework/src/Illuminate/Container/Container.php:738 Stack trace: #0
/var/www/clients/client1/web1/web/subdomains/hp/vendor/laravel/framework/src/Illuminate/Container/Container.php(738): ReflectionClass->__construct('RFID4U_GW\Http...') #1
/var/www/clients/client1/web1/web/subdomains/hp/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Container\Container->build('RFID4U_GW\Http...', Array) #2
/var/www/clients/client1/web1/web/subdomains/hp/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(697): Illuminate\Container\Container->make('RFID4U_GW\Http...', Array) #3
/var/www/clients/client1/web1/web/subdomains/hp/vendor/laravel/framework/src/Illuminate/Container/Container.php(230): Illuminate\Foundation\Application->make('RFID4U_GW\Http...', Array) #4
/var/www/clients/client1/web1/web/subdomains/hp/ve in /var/www/clients/client1/web1/web/subdomains/hp/vendor/laravel/framework/src/Illuminate/Container/Container.php on line
Related
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
I'm creating an application that on the front end will run a SPA with VueJS and in the back end a webservice with Phalcon. I'm having a problem when I make two asynchronous calls simultaneously to the API (located on my test machine) I receive the following error on the second call:
<br />
<b>Fatal error</b>: Uncaught Error: Access to undeclared static property:
Phalcon\Di::$_default in D:\wamp64\www\web-service\public_html\index.php:19
Stack trace:
#0 [internal function]: Phalcon\Di->__construct()
#1 D:\wamp64\www\web-service\public_html\index.php(19):
Phalcon\Di\FactoryDefault->__construct()
#2 {main}
Next Error: Access to undeclared static property: Phalcon\Di::$_default in
D:\wamp64\www\web-service\public_html\index.php:19
Stack trace:
#0 [internal function]: Phalcon\Di->__construct()
#1 D:\wamp64\www\web-service\public_html\index.php(19):
Phalcon\Di\FactoryDefault->__construct()
#2 {main}
thrown in <b>D:\wamp64\www\web-service\public_html\index.php</b> on
line <b>19</b><br />
If I run each call after another, both work correctly.
My server run on a Windows machine with WAMP
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
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.