I am getting PHP Fatal Error while exporting products to CSV
[01-Jan-2020 10:05:44 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'File '/home/xyz/public_html/abc/media/catalog/category/' does not exists.' in /home/xyz/public_html/abc/lib/Varien/File/Transfer/Adapter/Http.php:96
Stack trace:
#0 /home/xyz/public_html/abc/get.php(205): Varien_File_Transfer_Adapter_Http->send('/home/customerd...')
#1 /home/xyz/public_html/abc/get.php(165): sendFile('/home/customerd...')
#2 {main}
thrown in /home/xyz/public_html/abc/lib/Varien/File/Transfer/Adapter/Http.php on line 96
[01-Jan-2020 10:06:44 UTC] PHP Fatal error: Unsupported operand types in /home/xyz/public_html/abc/app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php on line 948
In that line in base code:
$dataRow += $stockItemRows[$productId];
I guess the $dataRow or $stockItemRows[$productId] is an unsupported data type for addition. Eg: array, empty, null...
Try to debug it writing to log the values of $dataRow and $stockItemRows[$productId] data before the addition to see what happens.
Related
I am frequently getting the following error in Laravel 5.4.
Notice: Undefined variable: _SERVER in
C:\wamp64\www\hxponline\vendor\symfony\http-foundation\Request.php on
line 305
Notice: Undefined variable: _GET in C:\wamp64\www\hxponline\vendor\symfony\http-foundation\Request.php on
line 315
Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Component\HttpFoundation\Request::createRequestFromFactory()
must be of the type array, null given, called in
C:\wamp64\www\hxponline\vendor\symfony\http-foundation\Request.php on
line 315 and defined in
C:\wamp64\www\hxponline\vendor\symfony\http-foundation\Request.php:2014
Stack trace: #0
C:\wamp64\www\hxponline\vendor\symfony\http-foundation\Request.php(315):
Symfony\Component\HttpFoundation\Request::createRequestFromFactory(NULL,
Array, Array, Array, Array, NULL) #1
C:\wamp64\www\hxponline\vendor\laravel\framework\src\Illuminate\Http\Request.php(59):
Symfony\Component\HttpFoundation\Request::createFromGlobals() #2
C:\wamp64\www\hxponline\public\index.php(53):
Illuminate\Http\Request::capture() #3 {main} thrown in
C:\wamp64\www\hxponline\vendor\symfony\http-foundation\Request.php on
line 2014
Also in the phpmyadmin page I am getting,
Fatal error: Uncaught Error: Call to a member function setCookie() on
null in C:\wamp64\apps\phpmyadmin4.7.4\libraries\ThemeManager.php:260
Stack trace: #0
C:\wamp64\apps\phpmyadmin4.7.4\libraries\common.inc.php(616):
PMA\libraries\ThemeManager->setThemeCookie() #1
C:\wamp64\apps\phpmyadmin4.7.4\sql.php(18):
require_once('C:\wamp64\apps\...') #2 {main} thrown in
C:\wamp64\apps\phpmyadmin4.7.4\libraries\ThemeManager.php on line 260
I couldn't figure out any reason what is the reason for all these errors.
Any help would be really appreciated.
Fatal error: Uncaught exception 'SmartyCompilerException' with message
'Syntax Error in template
"/data/3/1/80/27/1895679/user/2062193/htdocs/storetest/modules/blockbestsellers/blockbestsellers.tpl"
on line 29 "<h4><a
href="{$link->getPageLink('best-sales.php')}">{l
s='Top sellers' mod='blockbestsellers'}</a></h4>" unknown
tag "l"' in
/data/3/1/80/27/1895679/user/2062193/htdocs/storetest/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:431
Stack trace: #0
/data/3/1/80/27/1895679/user/2062193/htdocs/storetest/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(253):
Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown
tag "l"', 29) #1
/data/3/1/80/27/1895679/user/2062193/htdocs/storetest/tools/smarty/sysplugins/smarty_internal_templateparser.php(2319):
Smarty_Internal_TemplateCompilerBase->compileTag('l', Array) #2
/data/3/1/80/27/1895679/user/2062193/htdocs/storetest/tools/smarty/sysplugins/smarty_internal_templateparser.php(2812):
Smarty_ in
/data/3/1/80/27/1895679/user/2062193/htdocs/storetest/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php
on line 431
I'm made 1.4.6.1 module, to receive a credit card pay, but i put some php includes(in "smarty" way) but that error show, im delete my changes, but error don't dissapear and many modules not show. where is my problem, if i deleted my changes! :O
When I am running laravel new blog or any name, I get the following error:
Crafting application...
PHP Fatal error: Uncaught TypeException: Argument 2 passed to GuzzleHttp\Adapter\StreamAdapter::createResponseObject() must be of the type array, null given, called in C:\Users\Felix\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Adapter\StreamAdapter.php on line 67 and defined in C:\Users\Felix\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Adapter\StreamAdapter.php:71
Stack trace:
#0 C:\Users\Felix\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Adapter\StreamAdapter.php(67): GuzzleHttp\Adapter\StreamAdapter->createResponseObject(Object(GuzzleHttp\Message\Request), NULL, Object(GuzzleHttp\Adapter\Transaction), Object(GuzzleHttp\Stream\Stream))
#1 C:\Users\Felix\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Adapter\StreamAdapter.php(52): GuzzleHttp\Adapter\StreamAdapter->createResponse(Object(GuzzleHttp\Adapter\Transaction))
#2 C:\Users\Felix\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Client.php(193): GuzzleHttp\Adapter\StreamAdapter->send(Object(GuzzleHttp\Adapter\Transaction)) #3 C:\U in C:\Users\Felix\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Adapter\StreamAdapter.php on line 71
Fatal error: Uncaught TypeException: Argument 2 passed to GuzzleHttp\Adapter\StreamAdapter::createResponseObject() must be of the type array, null given, called in C:\Users\Felix\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Adapter\StreamAdapter.php on line 67 and defined in C:\Users\Felix\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Adapter\StreamAdapter.php:71
Stack trace:
#0 C:\Users\Felix\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Adapter\StreamAdapter.php(67): GuzzleHttp\Adapter\StreamAdapter->createResponseObject(Object(GuzzleHttp\Message\Request), NULL, Object(GuzzleHttp\Adapter\Transaction), Object(GuzzleHttp\Stream\Stream))
#1 C:\Users\Felix\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Adapter\StreamAdapter.php(52): GuzzleHttp\Adapter\StreamAdapter->createResponse(Object(GuzzleHttp\Adapter\Transaction))
#2 C:\Users\Felix\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Client.php(193): GuzzleHttp\Adapter\StreamAdapter->send(Object(GuzzleHttp\Adapter\Transaction)) #3 C:\U in C:\Users\Felix\AppData\Roaming\Composer\vendor\guzzlehttp\guzzle\src\Adapter\StreamAdapter.php on line 71
I don't understand how this can happen. Here is my PhpInfo file
Thanks
The answer was simple. I was running PHP CLI from PHP7 and not XAMPP/PHP5. Only have to uncomment the extension=php_curl.dll line.
I downloaded this taxi booking plugin from Github but when I try to activate it on wordpress I get a fatal error and it doesn't let me activate it. You can find the plugin on https://github.com/mbejda/TaxiCabBookingSystem
Fatal error: Uncaught exception 'Braintree_Exception_Configuration' with message 'merchantIdneeds to be set' in /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/lib/Braintree/Configuration.php:117 Stack trace: #0 /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/lib/Braintree/Configuration.php(139): Braintree_Configuration::get('merchantId') #1 /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/lib/Braintree/Configuration.php(157): Braintree_Configuration::setOrGet('merchantId', NULL) #2 /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/modules/BookingSystemBrainTreeModule.php(32): Braintree_Configuration::merchantId(NULL) #3 /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/main.php(177): BookingSystemBrainTreeModule->__construct(Object(BookingSystem)) #4 /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-maste in /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/lib/Braintree/Configuration.php on line 117
Any help to get this resolved would be appreciated.
UPDATE at Sunday 8th Feb # 8:18pm.
I have added the Merchant ID on Configuration.php its giving me the same error I think, if not the same then very simular
Fatal error: Uncaught exception 'Braintree_Exception_Configuration' with message 'publicKeyneeds to be set' in /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/lib/Braintree/Configuration.php:117 Stack trace: #0 /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/lib/Braintree/Configuration.php(139): Braintree_Configuration::get('publicKey') #1 /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/lib/Braintree/Configuration.php(162): Braintree_Configuration::setOrGet('publicKey', NULL) #2 /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/modules/BookingSystemBrainTreeModule.php(33): Braintree_Configuration::publicKey(NULL) #3 /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/main.php(177): BookingSystemBrainTreeModule->__construct(Object(BookingSystem)) #4 /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/ma in /Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/lib/Braintree/Configuration.php on line 117
Regards
Did you read the error message output... it says
Message 'merchantId needs to be set' in
/Applications/MAMP/htdocs/DocklandsTaxi/wp-content/plugins/TaxiCabBookingSystem-master/lib/Braintree/Configuration.php
[Update]
Also check out https://www.braintreepayments.com/docs/php
I'm using Google App Engine in combination with PHP.
After a couple request I get the following error
Fatal error: Uncaught exception 'google\net\ProtocolBufferEncodeError' with message 'Internal bug: Encoded size doesn't match predicted' in /base/data/home/runtimes/php/sdk/google/appengine/runtime/proto/ProtocolMessage.php:68
Stack trace:
#0 /base/data/home/runtimes/php/sdk/google/appengine/runtime/proto/ProtocolMessage.php(50): google\net\ProtocolMessage->serializePartialToString()
#1 /base/data/home/runtimes/php/sdk/google/appengine/runtime/RealApiProxy.php(52): google\net\ProtocolMessage->serializeToString()
#2 /base/data/home/runtimes/php/sdk/google/appengine/runtime/ApiProxy.php(42): google\appengine\runtime\RealApiProxy->makeSyncCall('taskqueue', 'BulkAdd', Object(google\appengine\TaskQueueBulkAddRequest), Object(google\appengine\TaskQueueBulkAddResponse), NULL)
#3 /base/data/home/runtimes/php/sdk/google/appengine/api/taskqueue/PushQueue.php(195): google\appengine\runtime\ApiProxy::makeSyncCall('taskqueue', 'BulkAdd', Object(google\appengine\TaskQueueBulkAddRequest), Object(google\appengine\TaskQueueBulkAddResponse in /base/data/home/runtimes/php/sdk/google/appengine/runtime/proto/ProtocolMessage.php on line 68
Fatal error: Uncaught exception 'google\net\ProtocolBufferEncodeError' with message 'Internal bug: Encoded size doesn't match predicted' in /base/data/home/runtimes/php/sdk/google/appengine/runtime/proto/ProtocolMessage.php:68
Stack trace:
#0 /base/data/home/runtimes/php/sdk/google/appengine/runtime/proto/ProtocolMessage.php(50): google\net\ProtocolMessage->serializePartialToString()
#1 /base/data/home/runtimes/php/sdk/google/appengine/runtime/RealApiProxy.php(52): google\net\ProtocolMessage->serializeToString()
#2 /base/data/home/runtimes/php/sdk/google/appengine/runtime/ApiProxy.php(42): google\appengine\runtime\RealApiProxy->makeSyncCall('taskqueue', 'BulkAdd', Object(google\appengine\TaskQueueBulkAddRequest), Object(google\appengine\TaskQueueBulkAddResponse), NULL)
#3 /base/data/home/runtimes/php/sdk/google/appengine/api/taskqueue/PushQueue.php(195): google\appengine\runtime\ApiProxy::makeSyncCall('taskqueue', 'BulkAdd', Object(google\appengine\TaskQueueBulkAddRequest), Object(google\appengine\TaskQueueBulkAddResponse in /base/data/home/runtimes/php/sdk/google/appengine/runtime/proto/ProtocolMessage.php on line 68
To solve this I shutdown all the instances and the code just loads normally. And again after a couple of request I get the same fatal error.
What can cause this Fatal error ? And how do I solve it.
The error is raised in the following file
https://chromium.googlesource.com/external/googleappengine/python/+/4523f63814037ed833b8bb55273c09a43dd69fb0/php/sdk/google/appengine/runtime/proto/ProtocolMessage.php