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.
Related
Hi I was working on Wordpress and notification popped up regarding Woocomerce update, I click on it but i dont know how it failed and then woocomerce isnt showing on my plugins , nor on side bar of my wp admin panel. On my site the error coming up is
Fatal error: Uncaught Error: Call to undefined function is_product()
in
/home/homesnoo/clifsauce.com/wp/wp-content/plugins/woo-variation-swatches/woo-variation-swatches.php:314 Stack trace: #0
/home/homesnoo/clifsauce.com/wp/wp-includes/class-wp-hook.php(286): Woo_Variation_Swatches->enqueue_scripts('') #1
/home/homesnoo/clifsauce.com/wp/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2
/home/homesnoo/clifsauce.com/wp/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3
/home/homesnoo/clifsauce.com/wp/wp-includes/script-loader.php(2231): do_action('wp_enqueue_scri...') #4
/home/homesnoo/clifsauce.com/wp/wp-includes/class-wp-hook.php(286): wp_enqueue_scripts('') #5
/home/homesnoo/clifsauce.com/wp/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #6
/home/homesnoo/clifsauce.com/wp/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #7
/home/homesnoo/clifsauce.com/wp/wp-includes/general-template.php(2614): do_action('wp_head') #8 /home/homesnoo/clifsauce.com/wp/wp-conten in
/home/homesnoo/clifsauce.com/wp/wp-content/plugins/woo-variation-swatches/woo-variation-swatches.php on line 314
and i hosted this site from Hosterpk. kindly help.
You can connect with your wordpress site using FTP. then move to /home/homesnoo/clifsauce.com/wp/wp-content/plugins/ and rename woo-variation-swatches to woo-variation-swatches-delete and try to run update once again. if FTP allows you to rename. your update will work.
Since yesterday I have been seeing a lot of these errors in my logs:
Operation timed out after 100001 milliseconds with 0 bytes received
File: /var/www/html/vendor/google/apiclient/src/Google/IO/Curl.php(126)
Trace: #0 /var/www/html/vendor/google/apiclient/src/Google/IO/Abstract.php(136): Google_IO_Curl->executeRequest(Object(Google_Http_Request))
#1 /var/www/html/vendor/google/apiclient/src/Google/Http/REST.php(60): Google_IO_Abstract->makeRequest(Object(Google_Http_Request))
#2 /var/www/html/vendor/google/apiclient/src/Google/Task/Runner.php(174): Google_Http_REST::doExecute(Object(Google_Client), Object(Google_Http_Request))
#3 /var/www/html/vendor/google/apiclient/src/Google/Http/REST.php(46): Google_Task_Runner->run()
#4 /var/www/html/vendor/google/apiclient/src/Google/Client.php(593): Google_Http_REST::execute(Object(Google_Client), Object(Google_Http_Request))
#5 /var/www/html/vendor/google/apiclient/src/Google/Service/Resource.php(240): Google_Client->execute(Object(Google_Http_Request))
#6 /var/www/html/vendor/google/apiclient/src/Google/Service/Drive.php(2000): Google_Service_Resource->call('update', Array, 'Google_Service_...')
#7 /var/www/html/app/lib/GoogleDriveHelper.php(185): Google_Service_Drive_Files_Resource->update('1jbLDzGVNNNigA...', Object(Google_Service_Drive_DriveFile), Array)
#8 /var/www/html/app/lib/GoogleDriveHelper.php(131): GoogleDriveHelper->updateFile('1jbLDzGVNNNigA...', '/tmp/tr-filesUI...')
#9 /var/www/html/app/lib/GoogleDriveHelper.php(66): GoogleDriveHelper->createOrUpdateFileOnce('Folder/Photo_...', 'Filen...', '/tmp/tr-filesUI...', 'image/jpeg', '', true)
#10 /var/www/html/app/jobs/worker/taskresult-photo-upload-to-gdrive.php(170): GoogleDriveHelper->createOrUpdateFile('Folder/Photo_...', 'Filen...', '/tmp/tr-filesUI...', 'image/jpeg')
#11 [internal function]: upload_photos_to_gdrive(Object(GearmanJob), NULL)
#12 /var/www/html/app/jobs/uploads-worker.php(5): GearmanWorker->work()
I have tried checking Google Services status page and there are no reported issues.
I haven't seen this exception occur before and nothing on my side has changed.
I should note that this only happens quite rarely and sometimes Google Drive responds with 502 error status code and the following message:
<p>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds. <ins>That’s all we know.</ins>
Maybe you have been tackling this issue and could point me to explanation of what is happening, is this preventable (if so - how) or are these issues on my side of services?
There is nothing you can do about 500 errors they are an error on googles side. As recommended in the documentation you should implement exponential backoff.
If you get a 500 error wait a few seconds and try again. If it still doesn't work wait double the amount of time if it still doesn't work wait three times the amount of time.
If after say 15 attempts it still doesn't work then something is probably down. exponential-backoff
The HyperText Transfer Protocol (HTTP) 502 Bad Gateway server error response code indicates that the server, while acting as a gateway or proxy, received an invalid response from the upstream server.
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.
i am using HybridAuth library for social logins.
everything is working perfectly on localhost.
and it was working on my hosting server too but now i am getting this errors suddenly:
when i tried with google:
Fatal error: Uncaught exception 'Exception' with message 'User profile
request failed! Google returned an error: exception 'Exception' with
message 'The Authorization Service has return: ' in
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/thirdparty/OAuth/OAuth2Client.php:82
Stack trace: #0
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Provider_Model_OAuth2.php(114):
OAuth2Client->authenticate('4/P-5SuqvrU0DDy...') #1
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Endpoint.php(175): Hybrid_Provider_Model_OAuth2->loginFinish() #2
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Endpoint.php(56):
Hybrid_Endpoint::processAuthDone() #3
/home/moviesaints/public_html/dev/application/third_party/hybridauth/index.php(15):
Hybrid_Endpoint::process() #4
/home/moviesaints/public_html/dev/application/controllers/user/hauth.php(298):
require_once('/home/moviesain...') #5 [internal function]:
HAuth->endpoint() #6 /home/mov in
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Auth.php
on line 147
and when tried with facebook:
Fatal error: Uncaught exception 'Exception' with message
'Authentication failed! Facebook returned an invalid user id.' in
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Providers/Facebook.php:91
Stack trace: #0
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Endpoint.php(175): Hybrid_Providers_Facebook->loginFinish() #1
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Endpoint.php(56):
Hybrid_Endpoint::processAuthDone() #2
/home/moviesaints/public_html/dev/application/third_party/hybridauth/index.php(15):
Hybrid_Endpoint::process() #3
/home/moviesaints/public_html/dev/application/controllers/user/hauth.php(298):
require_once('/home/moviesain...') #4 [internal function]:
HAuth->endpoint() #5
/home/moviesaints/public_html/dev/system/core/CodeIgniter.php(359):
call_user_func_array(Array, Array) #6
/home/moviesaints/public_html/dev/index.php(202):
require_once('/home/moviesain...') #7 {main} Next exception
'Exception' with message 'Authentic in
/home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Auth.php
on line 147
I have tried following solutions but still facing the same problem:
hybridauth-php-facebook-returned-an-invalid-user-id
hybridauth-facebook-returned-an-invalid-user-id
laravel4-hybridauth-facebook-authentication-failed-facebook-returned-an-invalid
Github Solution
Google group Solution
Help please, It will be appreciated.
I'm not sure this is true or not but after I was able to get my installation working I still could not get Facebook to work, no matter how hard I tried. My guess is that the SDK files used by Hybridauth for Facebook are deprecated. Facebook released new versions and quite a reworked SDK recently. That could be why there seem to be a lot of people suffering from issues with the Facebook provider right now.
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';