Installation failed: Destination folder already exists - php

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.

Related

PHP Fatal error: Uncaught Error: Call to undefined function as_next_scheduled_action()

When I tried to update Woocommerce plugin into new version (3.6.1) I got this error
[21-Apr-2019 20:29:10 UTC] PHP Fatal error: Uncaught Error: Call to
undefined function as_next_scheduled_action() in
/home/tleelxvn/fairo.pk/wp-
content/plugins/woocommerce/includes/queue/class-wc-action-queue.php:127
Stack trace:
#0 /home/tleelxvn/fairo.pk/wp-content/plugins/woocommerce/includes/admin/marketplace-suggestions/class-wc-marketplace-updater.php(30):
WC_Action_Queue->get_next('woocommerce_upd...')
#1 /home/tleelxvn/fairo.pk/wp-includes/class-wp-hook.php(286): WC_Marketplace_Updater::init('')
#2 /home/tleelxvn/fairo.pk/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#3 /home/tleelxvn/fairo.pk/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#4 /home/tleelxvn/fairo.pk/wp-settings.php(505): do_action('init')
#5 /home/tleelxvn/fairo.pk/wp-config.php(79): require_once('/home/tleelxvn/...')
#6 /home/tleelxvn/fairo.pk/wp-load.php(37): require_once('/home/tleelxvn/...')
#7 /home/tleelxvn/fairo.pk/wp-cron.php(39): require_once('/home/tleelxvn/...')
#8 {main}
thrown in /home/tleelxvn/fairo.pk/wp-content/plugins/woocommerce/includes/queue/class-wc-action-queue.php
on line 127
I came up against this exact problem today. My situation may be unique, but if what I learned helps anyone, all the better.
In my situation, I have code within my theme where I'll force load WooCommerce if it isn't loaded. The site requires WooCommerce on an AJAX call that otherwise knows nothing about WordPress. In normal WordPress requests, the plugin is already loaded, so my code block does nothing.
However, I received this error when I stood up a new site with the same repo and I had not yet activated the WooCommerce plugin. As soon as I activated it, the error disappeared. The reason the error occurred is because the required file only gets included on the plugins_loaded action, which in my scenario had already been run by the time I force-loaded WooCommerce.

How to add new apps folder in Yii2 advanced

I start install Yii 2 with yii-advanced-app-2.0.11.tgz archive. After unpacking and init, i have run successful Yii 2 advanced. In folder project, i see backend and frontend application.
Now, i wanna create clinic application is here. Yii 2 can do it?. I search google, but can't find solution.
backend & frontend
clinic (How can do it?)
and then I copy frontend directories and name it "clinic" then replace all words "frontend" to "clinic". but I get error like this:
An Error occurred while handling another error:
exception 'yii\base\InvalidRouteException' with message 'Unable to resolve the request "site/error".' in R:\xampp-1-8\htdocs\berobat.id\vendor\yiisoft\yii2\base\Module.php:532
Stack trace:
#0 R:\xampp-1-8\htdocs\berobat.id\vendor\yiisoft\yii2\web\ErrorHandler.php(95): yii\base\Module->runAction('site/error')
#1 R:\xampp-1-8\htdocs\berobat.id\vendor\yiisoft\yii2\base\ErrorHandler.php(111): yii\web\ErrorHandler->renderException(Object(yii\web\NotFoundHttpException))
#2 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\web\NotFoundHttpException))
#3 {main}
Previous exception:
exception 'yii\base\InvalidRouteException' with message 'Unable to resolve the request "".' in R:\xampp-1-8\htdocs\berobat.id\vendor\yiisoft\yii2\base\Module.php:532
Stack trace:
#0 R:\xampp-1-8\htdocs\berobat.id\vendor\yiisoft\yii2\web\Application.php(102): yii\base\Module->runAction('', Array)
#1 R:\xampp-1-8\htdocs\berobat.id\vendor\yiisoft\yii2\base\Application.php(380): yii\web\Application->handleRequest(Object(yii\web\Request))
#2 R:\xampp-1-8\htdocs\berobat.id\klinik\web\index.php(17): yii\base\Application->run()
#3 {main}
Next exception 'yii\web\NotFoundHttpException' with message 'Page not found.' in R:\xampp-1-8\htdocs\berobat.id\vendor\yiisoft\yii2\web\Application.php:114
Stack trace:
#0 R:\xampp-1-8\htdocs\berobat.id\vendor\yiisoft\yii2\base\Application.php(380): yii\web\Application->handleRequest(Object(yii\web\Request))
#1 R:\xampp-1-8\htdocs\berobat.id\klinik\web\index.php(17): yii\base\Application->run()
#2 {main}
in my perception, this is about setting config namespaceController="clinic/controllers", when I change it to "frontend/controller" this error exception 'yii\base\InvalidRouteException' with message 'Unable to resolve the request "site/error".' not showing anymore, but you know, if still in this config, my clinic apps will load frontend controller. So what should I do? Help me please!. Thanks so much!.
Add your clinic alias in common/config/bootstrap.php file like below and update all frontend namespaces in your clinic folder with newly added alias word.
Yii::setAlias('#clinic', dirname(dirname(__DIR__)).'/clinic');

error in file "mysql4-upgrade-1.6.0.0-1.6.0.1.php" in magento 1.9.2.0 installation with sample data

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.

dmcloud (daily motion) CloudKey_RPCException being thrown on prod environment on upload

The error below only occurs when I upload my code to the server. When I'm on my local development environment works perfectly. My local is Windows and my Production is Linux.
What does this mean? What should I do to solve it?
Fatal error: Uncaught exception 'CloudKey_RPCException' with message 'You must provide an url for mp4_h264_aac' in /var/www/application/libraries/CloudKey.php:336 Stack trace: #0 /var/www/application/libraries/VideoUploader.php(56): CloudKey_Api->__call('create', Array) #1 /var/www/application/libraries/VideoUploader.php(56): CloudKey_Media->create(Array) #2 /var/www/application/controllers/Admin.php(519): VideoUploader->upload(Array, Array, '06d88cc1721cbe1...') #3 [internal function]: Admin->videos('upload') #4 /var/www/system/core/CodeIgniter.php(356): call_user_func_array(Array, Array) #5 /var/www/public/index.php(274): require_once('/var/www/system...') #6 {main} thrown in /var/www/application/libraries/CloudKey.php on line 336
Ok, in case anyone ever needs this. The problem is that, I was using the $_FILES['file']['tmp_name'] directly into DMCloud method. Turns out that on Windows, it's something like C:\temp\file.tmp and on linux is something like /tmp/file. DMCloud api requires that the file used for upload must have an extension.
So, it failed to upload the file, and when I tried to use the URL of the failed upload, it gaveme this exception.
I hope someone fin this hopeful in the future =)

PHP HybridAuth Authentication failed - wrong redirect

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.

Categories