I worked in wordpress plugin wp security and i did backup some files when wordpress blocked and next thing that is poping out is this i dont know how to fix this..
Settings (general_settings) Error: fetch - MySQL server has gone away
---
Query: select * from d4o1yq7rl_revslider_settings
#0 /home/hkt/public_html/wp-content/plugins/revslider/inc_php/framework/db.class.php(22): UniteFunctionsRev::throwError('fetch - MySQ...', -1)
#1 /home/hkt/public_html/wp-content/plugins/revslider/inc_php/framework/db.class.php(36): UniteDBRev->throwError('fetch - MySQ...')
#2 /home/hkt/public_html/wp-content/plugins/revslider/inc_php/framework/db.class.php(124): UniteDBRev->checkForErrors('fetch')
#3 /home/hkt/public_html/wp-content/plugins/revslider/inc_php/revslider_params.class.php(42): UniteDBRev->fetch('d4o1yq7rl_revsl...')
#4 /home/hkt/public_html/wp-content/plugins/revslider/inc_php/revslider_operations.class.php(331): RevSliderParams->getFieldFromDB('general')
#5 /home/hkt/public_html/wp-content/plugins/revslider/settings/general_settings.php(26): RevOperations->getGeneralSettingsValues()
#6 /home/hkt/public_html/wp-content/plugins/revslider/inc_php/framework/base_admin.class.php(220): require('/home/hkt/publi...')
#7 /home/hkt/public_html/wp-content/plugins/revslider/revslider_admin.php(49): UniteBaseAdminClassRev::requireSettings('general_setting...')
#8 /home/hkt/public_html/wp-content/plugins/revslider/revslider_admin.php(32): RevSliderAdmin->init()
#9 /home/hkt/public_html/wp-content/plugins/revslider/revslider.php(77): RevSliderAdmin->__construct('/home/hkt/publi...')
#10 /home/hkt/public_html/wp-settings.php(203): include_once('/home/hkt/publi...')
#11 /home/hkt/public_html/wp-config.php(98): require_once('/home/hkt/publi...')
#12 /home/hkt/public_html/wp-load.php(29): require_once('/home/hkt/publi...')
#13 /home/hkt/public_html/wp-admin/admin.php(30): require_once('/home/hkt/publi...')
#14 /home/hkt/public_html/wp-admin/index.php(10): require_once('/home/hkt/publi...')
#15 {main}
Revolution Slider Error:Settings general not found
Warning: Cannot modify header information - headers already sent by (output started at /home/hkt/public_html/wp-content/plugins/revslider/inc_php/framework/base_admin.class.php:222) in /home/hkt/public_html/wp-includes/pluggable.php on line 899
please if someone can help that would be great i must have this site uploaded in 2 hours!
The issue is probably due to closed mysql connection or timeout from the query. You can find the details here
http://dev.mysql.com/doc/refman/5.0/en/gone-away.html
If its a local mysql server which can be managed by you, try restarting it
else use another mysql user to connect
Try changing the max_allowed_packet setting to a larger value in the server.
Open "my.ini/cnf", located in your MySQL installation folder, and under [mysqld] section change "max_allowed_packet = 64M" and don't forget to restart the server.
You can check the value by executing:
SHOW VARIABLES LIKE 'max_allowed_packet';
Related
I have a Webshop on magento. I would update it from 1.7.0.2 to 1.9.2.1.
First i tried to copy the files from 1.9 to 1.7. Didn't worked. Then i tried to delet all files, put all files from 1.9 on the server and copy all important files from 1.7. Didn't worked.
So now i complitly re-installed magento with the newest version 1.9.2.1. I set it up like the old version and used the same encryption-key. Than i thought, i could copy the old database to the new one. Bu i gives me some sql errors, that it could not find rows.
Error in file: "/home/sybille/web/naef2/app/code/core/Mage/Core/sql/core_setup/mysql4-data-upgrade-1.6.0.2-1.6.0.3.php" - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'crc_string' in 'field list', query was: UPDATE `core_translate` SET `crc_string` = CRC32(`string`)
Trace:
#0 /home/sybille/web/naef2/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /home/sybille/web/naef2/app/code/core/Mage/Core/Model/Resource/Setup.php(407): Mage_Core_Model_Resource_Setup->_modifyResourceDb('data-upgrade', '1.6.0.2', '1.6.0.6')
#2 /home/sybille/web/naef2/app/code/core/Mage/Core/Model/Resource/Setup.php(286): Mage_Core_Model_Resource_Setup->_upgradeData('1.6.0.2', '1.6.0.6')
#3 /home/sybille/web/naef2/app/code/core/Mage/Core/Model/Resource/Setup.php(269): Mage_Core_Model_Resource_Setup->applyDataUpdates()
#4 /home/sybille/web/naef2/app/code/core/Mage/Core/Model/App.php(362): Mage_Core_Model_Resource_Setup::applyAllDataUpdates()
#5 /home/sybille/web/naef2/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#6 /home/sybille/web/naef2/index.php(85): Mage::run('', 'store')
#7 {main}
I need your help now! :(
I'm about to fix it for 2 days and i don't come forward. Pleas help me! how can i setup the database, that it works with the new version.
I am trying to install Magento version 1.9.2.0 with the sample data in my local Apache server.
I have stumbled upon a problem that is tearing my heart appart and I need some help or guidance in this obscure path, for I get this error message:
Error in file: "/opt/lampp/htdocs/magento/app/code/core/Mage/Sendfriend
/sql/sendfriend_setup/mysql4-upgrade-1.6.0.0-1.6.0.1.php" - SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db_magento_sample.sendfriend_log' doesn't exist, query was: DESCRIBE `sendfriend_log`
Trace:
#0 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '1.6.0.0', '1.6.0.1')
#2 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('1.6.0.0', '1.6.0.1')
#3 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/App.php(428): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Model_App->_initModules()
#6 /opt/lampp/htdocs/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /opt/lampp/htdocs/magento/index.php(83): Mage::run('', 'store')
#8 {main}
I have tried changing the directories permissions, I have already uploaded the sql sample data script to my local DB using PHPMyAdmin, erasing and reinstalling again, and restarting the process for more than 3 times but I got blocked here, I have searched for solutions in forums but haven't found none
Does anyone know how to proceed? I thank you for reading.
Best regards,
D.
Need to get into Magento shop as a developer, and got some basic trouble on installation.
Background: Got a LUBUNTU Virtual Box running Apache, PHP 5.5 and MySQL. Downloaded magento from http://www.magentocommerce.com/download.
Made a database manually with phpMyAdmin, copied the code of Magento to /var/www/html/magento and chmod'ed it to 775, chown'ed it to www-data:www-data.
The problem: on startup screen from Magento installation I cannot select another language. After a selection it gets back to English / US. And trying to go through with English causes this error:
#0 /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(645):
Mage::exception('Mage_Core', 'Error in file: ...')
#1 /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(407): Mage_Core_Model_Resource_Setup->_modifyResourceDb('data-upgrade', '1.6.0.0', '1.6.0.2')
#2 /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(286): Mage_Core_Model_Resource_Setup->_upgradeData('1.6.0.0', '1.6.0.2')
#3 /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(269): Mage_Core_Model_Resource_Setup->applyDataUpdates()
#4 /var/www/html/magento/app/code/core/Mage/Core/Model/App.php(351): Mage_Core_Model_Resource_Setup::applyAllDataUpdates()
#5 /var/www/html/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#6 /var/www/html/magento/index.php(87): Mage::run('', 'store')
#7 {main}
Has someone got any idea what I did wrong?
In my case using "localhost" as hostname(http://localhost/magento) causes the problem.
Using "127.168.1.1"(http://127.168.1.1/magento) solves it.
I am using HybridAuth Yii extension to login via Facebook etc. But I guess it isnt a Yii problem, so plain PHP developer could help me out aswell.
If I am canceling the connection I am getting redirected to a page, where only the following error will be shown:
Authentication failed. The user has canceled the authentication or the provider refused the connection.
Original error message: Authentication failed! The user denied your request.
Trace:
#0 /var/www/dev/protected/extensions/widgets/hybridAuth/vendors/hybridauth/Hybrid/Auth.php(39): Hybrid_Auth::initialize(Array)
#1 /var/www/dev/protected/extensions/widgets/hybridAuth/CHybridAuth.php(70): Hybrid_Auth->__construct(Array)
#2 /var/www/dev/protected/extensions/widgets/hybridAuth/CHybridAuth.php(80): CHybridAuth->getHybridAuth()
#3 /var/www/dev/protected/extensions/widgets/hybridAuth/CHybridAuth.php(155): CHybridAuth->getAdapter('Facebook')
#4 /var/www/dev/protected/controllers/HybridauthController.php(21): CHybridAuth->isAdapterUserConnected('Facebook')
#5 [internal function]: HybridauthController->actionAuthenticate('Facebook')
#6 /var/www/dev/yii/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(Object(HybridauthController), Array)
#7 /var/www/dev/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Object(HybridauthController), Object(ReflectionMethod), Array)
#8 /var/www/dev/yii/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
#9 /var/www/dev/yii/framework/web/CController.php(286): CController->runAction(Object(CInlineAction))
#10 /var/www/dev/yii/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#11 /var/www/dev/yii/framework/web/CWebApplication.php(282): CController->run('authenticate')
#12 /var/www/dev/yii/framework/web/CWebApplication.php(141): CWebApplication->runController('hybridauth/auth...')
#13 /var/www/dev/yii/framework/base/CApplication.php(180): CWebApplication->processRequest()
#14 /var/www/dev/index.php(13): CApplication->run()
#15 {main}
Fatal error: Call to a member function isUserConnected() on a non-object
I already have tried disable Facebooks Sandbox Mode as well as trying to find a "on cancel" redirect url at the Facebook developers page, but it still doesnt work.
Is there any possibility to redirect to my applications home URL or something like that?
The closest thing you can can find to the "on cancel" redirect is "Deauthorize Callback URL", which you can set under Settings -> Advanced -> Deauthorize Callback URL on the Facebook developer page under your app.
The problem is.. that when I try to login the user and then get the user info, I get error from Facebook API. with error code: 1
The same code works for one server, but not another one. THe config and everything are the same, except the non-working one is hosted at RackSpace cloud environment. I don't know if that's the cuase.
Information is here:
Server: Nginx. PHP 5
Backend: running Zend framework
API: use FB's facebook.php and facebookapi_php5_restlib.php
fail at the call_method, post_request(), when calling " facebook.users.getInfo "
Here is the error message
Exception
Error Code: 1
Message: An unknown error occurred
#0 /home/www/entouraxyz-dev.sector3gamez.com/site_prod/_library/facebook/facebookapi_php5_restlib.php(956): FacebookRestClient->call_method('facebook.fql.qu...', Array)
#1 /home/www/entouraxyz-dev.sector3gamez.com/site_prod/app/facebook/controllers/FacebookController.php(375): FacebookRestClient->fql_query('SELECT uid, fir...')
#2 /home/www/entouraxyz-dev.sector3gamez.com/site_prod/app/facebook/controllers/FacebookController.php(114): Facebook_FacebookController->_facebook_login()
#3 /home/www/entouraxyz-dev.sector3gamez.com/site_prod/_library/Zend/Controller/Action.php(132): Facebook_FacebookController->init()
#4 /home/www/entouraxyz-dev.sector3gamez.com/site_prod/_library/Zend/Controller/Dispatcher/Standard.php(261): Zend_Controller_Action->__construct(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http), Array)
#5 /home/www/entouraxyz-dev.sector3gamez.com/site_prod/_library/Zend/Controller/Front.php(945): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#6 /home/www/entourxyz-dev.sector3gamez.com/site_prod/_library/Zcms/Application.php(226): Zend_Controller_Front->dispatch()
#7 /home/www/entourxyz-dev.sector3gamez.com/site_prod/index.php(38): Zcms_Application::run('MainPlugin')
#8 {main}
I have tested the PHPInfo. exactly the same. Max Execute timeout is 60sec. and CURL timeout is increased to 60 too. so. it may not be the timeout issue.
I have found that the Facebook API will shut you out for a day or so (not tested how long exactly) when you've been testing your app and been sending a lot of invalid (?) requests.
Wait a while and it will likely work again. The reason it happens on one server only will likely be the IP address.
All of this is speculated since Facebook won't specify anything regarding limitation or blocking, for security reasons.