My social engine instance was working fine when i used to host in dreamhost server but after switching to AWS, updating profile photo is stopped working.
Error msg on UI is "The image you selected was too large." even though image size is very less. some 2-6kb.
Stack trace is mention below
2018-01-16T04:42:53+00:00 WARN (4): exception 'Engine_Image_Exception' with message 'No available adapter for image
operations' in
/var/www/html/social/application/libraries/Engine/Image.php:52 Stack
trace:
#0 /var/www/html/social/application/modules/User/Model/User.php(159):
Engine_Image::factory()
#1 /var/www/html/social/application/modules/User/controllers/EditController.php(133):
User_Model_User->setPhoto(Object(Engine_Form_Element_File))
#2 /var/www/html/social/application/libraries/Zend/Controller/Action.php(516):
User_EditController->photoAction()
#3 /var/www/html/social/application/libraries/Zend/Controller/Dispatcher/Standard.php(308):
Zend_Controller_Action->dispatch('photoAction')
#4 /var/www/html/social/application/libraries/Zend/Controller/Front.php(954):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
Object(Zend_Controller_Response_Http))
#5 /var/www/html/social/application/modules/Core/Bootstrap.php(84):
Zend_Controller_Front->dispatch()
#6 /var/www/html/social/application/libraries/Engine/Application.php(160):
Core_Bootstrap->run()
#7 /var/www/html/social/application/index.php(219): Engine_Application->run()
#8 /var/www/html/social/index.php(24): include('/var/www/html/s...')
#9 {main}
My problem solved by installing php pluging called GD. It was there on my old sever but i forgot to install on my new ec2 server.
Related
I have a Drupal 8 project developed on my local. I am trying to move it to Client server which is Windows server 2008 R2 version. Steps I followed:
Restored database on DB server (MS SQL)
Moved all the project files into client web server
Installed PHP 7.3 and it's dependancies (wincache, PHP manager etc)
Dropped PDO_sqlsrv drivers into appropriate folders and edited PHP.ini with those locations
Changed DB configs in settings.php
When I start the site in IIS I see the Drupal "website encountered error" message. On the log file I see the below errors:
PDOException: in D:\myproject\web\core\lib\Drupal\Component\DependencyInjection\PhpArrayContainer.php on line 79 #0 D:\myproject\web\core\lib\Drupal\Core\Database\Database.php(371): Drupal\Driver\Database\sqlsrv\Connection::open(Array)
#1 D:\myproject\web\core\lib\Drupal\Core\Database\Database.php(166): Drupal\Core\Database\Database::openConnection('default', 'default')
#2 [internal function]: Drupal\Core\Database\Database::getConnection('default')
#3 D:\myproject\web\core\lib\Drupal\Component\DependencyInjection\PhpArrayContainer.php(79): call_user_func_array('Drupal\\Core\\Dat...', Array)
#4 D:\myproject\web\core\lib\Drupal\Component\DependencyInjection\Container.php(173): Drupal\Component\DependencyInjection\PhpArrayContainer->createService(Array, 'database')
#5 D:\myproject\web\core\lib\Drupal\Component\DependencyInjection\PhpArrayContainer.php(260): Drupal\Component\DependencyInjection\Container->get('database', 1)
#6 D:\myproject\web\core\lib\Drupal\Component\DependencyInjection\PhpArrayContainer.php(62): Drupal\Component\DependencyInjection\PhpArrayContainer->resolveServicesAndParameters(Array)
#7 D:\myproject\web\core\lib\Drupal\Component\DependencyInjection\Container.php(173): Drupal\Component\DependencyInjection\PhpArrayContainer->createService(Array, 'cache.container')
#8 D:\myproject\web\core\lib\Drupal\Core\DrupalKernel.php(543): Drupal\Component\DependencyInjection\Container->get('cache.container')
#9 D:\myproject\web\core\lib\Drupal\Core\DrupalKernel.php(904): Drupal\Core\DrupalKernel->getCachedContainerDefinition()
#10 D:\myproject\web\core\lib\Drupal\Core\DrupalKernel.php(476): Drupal\Core\DrupalKernel->initializeContainer()
#11 D:\myproject\web\core\lib\Drupal\Core\DrupalKernel.php(692): Drupal\Core\DrupalKernel->boot()
#12 D:\myproject\web\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#13 {main}
Not sure how to fix this. Any help?!
When I opened the project,I get back this error message :
Fatal error: Uncaught Error: Class 'String' not found in /dev/local/lib/Cake/Utility/Debugger.php:339 Stack trace: #0 /dev/local/lib/Cake/Utility/Debugger.php(741): Debugger::trace(Array) #1 /dev/local/lib/Cake/Error/ErrorHandler.php(219): Debugger->outputError(Array) #2 /dev/local/lib/Cake/Core/App.php(565): ErrorHandler::handleError(2, 'Declaration of ...', '/dev/local...', 25, Array) #3 /dev/local/lib/Cake/Core/App.php(565): include() #4 [internal function]: App::load('TradeLog') #5 [internal function]: spl_autoload_call('TradeLog') #6 /dev/local/lib/Cake/Utility/ClassRegistry.php(145): class_exists('TradeLog') #7 /dev/local/app/Controller/Component/UserComponent.php(61): ClassRegistry::init('TradeLog') #8 /dev/local/app/Controller/Component/PlatformAgentComponent.php(24): UserComponent->__construct(Object(ComponentCollection), Array) #9 /Us in /dev/local/lib/Cake/Utility/Debugger.php on line 339
The newly configured environment in mac os.
When I paste the project into a folder, this error occurs. What's the matter?
This is a compatibility issue between Cakephp 2.4 and PHP7 (because string became reserved word in PHP7, so Cakephp cannot use it as a class name). Using of newer version of Cakephp is suggested. Also downgrading your PHP to 5.6 could solve the problem.
You need to upgrade to CakePHP > 2.8 which is compatible with PHP7
https://github.com/cakephp/cakephp/releases/2.8.0
I've upgraded latest Magento EE version 1.14.2.2. When I proceed to checkout, last step I press button Place Order, it redirects to cart page. Here's log exception:
exception 'Exception' with message 'Quote totals must be collected before this operation.' in /home/beadahol/public_html/app/code/core/Mage/Sales/Model/Quote.php:1861
Stack trace:
#0 /home/Project/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(326): Mage_Sales_Model_Quote->prepareRecurringPaymentProfiles()
#1 /home/Project/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(223): Mage_Sales_Model_Service_Quote->_submitRecurringPaymentProfiles()
#2 /home/Project/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(238): Mage_Sales_Model_Service_Quote->submitNominalItems()
#3 /home/Project/public_html/app/code/core/Mage/Checkout/Model/Type/Onepage.php(812): Mage_Sales_Model_Service_Quote->submitAll()
#4 /home/Project/public_html/app/code/core/Mage/Checkout/controllers/OnepageController.php(583): Mage_Checkout_Model_Type_Onepage->saveOrder()
#5 /home/Project/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_OnepageController->saveOrderAction()
#6 /home/Project/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#7 /home/Project/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#8 /home/Project/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#9 /home/Project/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#10 /home/Project/public_html/index.php(83): Mage::run('', 'store')
#11 {main}
I don't modify or overwrite file Quote.php. This error only occurred web server, on local still works well.
Based on research internet in this link they show ' the problem was finally solved by the switch to SuPHP (PHP handler)'. (My server configure Apache to run PHP as FastCGI)
Does anyone have a same issue on Magento 1.14.2.2? Please give me the solution to result this issue.
I faced a similar issue. What worked for me was i went to the database << table 'core_config_data' and changed the values for path 'design/email/header' and 'design/email/footer' from '2' to '0'.
Worked for me !!
I'm Using Mangento Version : 1.7.0.2
When i tried to install with the sample data which magneto, it gives me the following error. Does any have faced similar kind of an issue.
Error in file: "C:\xampp\htdocs\magento\app\code\core\Mage\Sales\sql\sales_setup
\mysql4-upgrade-0.9.16-0.9.17.php" - Can't retrieve entity config:
sales/quote_shipping_rate
Trace:
#0 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(645):
Mage::exception('Mage_Core', 'Error in file: ...')
#1 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(437):
Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '0.9.16', '1.6.0.7')
#2 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(320):
Mage_Core_Model_Resource_Setup->_upgradeResourceDb('0.9.16', '1.6.0.7')
#3 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(235):
Mage_Core_Model_Resource_Setup->applyUpdates()
#4 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\App.php(417):
Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\App.php(343):
Mage_Core_Model_App->_initModules()
#6 C:\xampp\htdocs\magento\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#7 C:\xampp\htdocs\magento\index.php(87): Mage::run('', 'store')
#8 {main}
I have found the answer for this problem. The Magento version which i was using was 1.7.0.2 and sample data used was magento-sample-data.1.1.2.zip which was not compatible with this version, hence i changed sample data to 1.6.1.zip.
After using this i could able to install the magento.
My issue was i did not update /app/etc/config.xml with the new file and it was lacking info on the core resource model. Make sure the config.xml fiel is the one that comes with the new version of magento.
I'm running Magento 1.5.1 (which I am using because it is the latest version that works with Lightspeed POS) with a custom theme that I created. I am running the Lightspeed POS Connector and I have manually installed the Virtual Merchant add-on. My server is share hosted by hostmonster.
When I try to checkout I get an alert with the error Method "" is not defined in "".
Firebug gives me the following:
POST https://odd-style.com/magento/index.php/checkout/onepage/saveOrder/ 200 OK
{"success":false,"error":true,"error_messages":"Method \"\" is not defined in \"\""}
My magento exception log give me:
2012-06-06T01:20:46+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Method "" is not defined in ""' in /home4/oddnycco/public_html/magento/app/Mage.php:550
Stack trace:
#0 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Model/App.php(1274): Mage::throwException('Method "" is no...')
#1 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Model/App.php(1253): Mage_Core_Model_App->_callObserverMethod(false, '', Object(Varien_Event_Observer))
#2 /home4/oddnycco/public_html/magento/app/Mage.php(416): Mage_Core_Model_App->dispatchEvent('checkout_type_o...', Array)
#3 /home4/oddnycco/public_html/magento/app/code/core/Mage/Sales/Model/Service/Quote.php(180): Mage::dispatchEvent('checkout_type_o...', Array)
#4 /home4/oddnycco/public_html/magento/app/code/core/Mage/Sales/Model/Service/Quote.php(238): Mage_Sales_Model_Service_Quote->submitOrder()
#5 /home4/oddnycco/public_html/magento/app/code/core/Mage/Checkout/Model/Type/Onepage.php(742): Mage_Sales_Model_Service_Quote->submitAll()
#6 /home4/oddnycco/public_html/magento/app/code/core/Mage/Checkout/controllers/OnepageController.php(499): Mage_Checkout_Model_Type_Onepage->saveOrder()
#7 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Checkout_OnepageController->saveOrderAction()
#8 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#9 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#10 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Model/App.php(340): Mage_Core_Controller_Varien_Front->dispatch()
#11 /home4/oddnycco/public_html/magento/app/Mage.php(627): Mage_Core_Model_App->run(Array)
#12 /home4/oddnycco/public_html/magento/index.php(80): Mage::run('', 'store')
#13 {main}
I have so far tried every type of cache clearing in the book. I've increased the size of my php memory limit to 256MB. I've looked at all the files referenced in the stack trace and all I can tell is that both $method and $object are because passed as "". I don't really understand why and I don't have any more ideas on how to fix it. :/
Thanks in advance for anyone's help!
Seems as if you have an event observer defined somewhere in your Magento installation (I suppose in one of the 3rd-party-modules).
From my point of view it looks like there is an empty method registered for the event.
Check the config.xml's of your modules for an observer that is listening on the event 'checkout_type_onepage_save_order' (you can easily grep your app/code/community and app/code/local folder for this string). Try disabling the module (via app/etc/modules/Module_Name.xml) and then try to checkout again.