jQuery Wordpress 插件滑块革命错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37797407/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Wordpress Plugin Slider Revolution Error
提问by Himalay Majumdar
I am unable to get rid of this following error. The error shows up after I activate the plugin.
我无法摆脱以下错误。激活插件后出现错误。
Slider Revolution error: could not unzip into the revslider/public/assets/ folder, please make sure that this folder is writable.
I did chmod 777 to revslider/public/assets/ but with no use.
我对 revslider/public/assets/ 做了 chmod 777 但没有用。
I also got this error in browser..
我在浏览器中也遇到了这个错误..
Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.
This includes make eliminates the revolution slider libraries, and make it not work.
To fix it you can:
1. In the Slider Settings -> Troubleshooting set option: Put JS Includes To Body option to true.
2. Find the double jquery.js include and remove it.
I cannot go to Troubleshooting set option after going to slider settings as none of the links (including 'Problem Handlings') work on the right hand side (attached the screenshot)
转到滑块设置后,我无法转到故障排除设置选项,因为没有任何链接(包括“问题处理”)在右侧工作(附上截图)
回答by batgor
I have the same problem. I am not sure what cause this problem but I can share my workaround:
我也有同样的问题。我不确定是什么导致了这个问题,但我可以分享我的解决方法:
- First you have to have FTP access to your WP folder
- Deactivate Revolution Slider plugin
- Use FTP and go to revslider/public/assets/assets/svg/and download svg.zipfile to your PC.
- Unzip svg.zip. Grab all unzipped content and put it in uploads/revslider/assets/svg/folder.(If in uploads/revslider folders assets and svg doesn't exist you have to create them manually).
- Go to revslider/inludes/framework/open base.class.phpfile and edit function public_folder_unzip():
- 首先,您必须通过 FTP 访问您的 WP 文件夹
- 停用革命滑块插件
- 使用 FTP 并转到revslider/public/assets/assets/svg/并将svg.zip文件下载到您的 PC。
- 解压缩svg.zip。抓取所有解压缩的内容并将其放入uploads/revslider/assets/svg/文件夹。(如果uploads/revslider文件夹中的assets和svg不存在,您必须手动创建它们)。
- 转到revslider/inludes/framework/打开base.class.php文件并编辑函数public_folder_unzip():
Old code
旧代码
if($unzipfile === true){
update_option('rs_public_version', RevSliderGlobals::SLIDER_REVISION);
}
else{
add_action('admin_notices', array('RevSliderBase', 'copy_notice'));
}
New code
新代码
if($unzipfile == true){
update_option('rs_public_version', RevSliderGlobals::SLIDER_REVISION);
}
else{
add_action('admin_notices', array('RevSliderBase', 'copy_notice'));
}
- Save file changes.
- Activate plugin.
- 保存文件更改。
- 激活插件。
回答by mhjb
I found this happening today after updating the Autoptimize plugin. Turning off Javascript optimisation in the Autoptimize settings fixed the problem (though likely at the cost of some performance).
我在更新 Autooptimize 插件后发现今天发生了这种情况。在 Autooptimize 设置中关闭 Javascript 优化解决了这个问题(尽管可能会牺牲一些性能)。
回答by grantog
Ran into this today. Deactivating the plugin "Async Javascript" and turning off Javascript optimisation in the Autoptimize plugin settings fixed my issue.
今天遇到了这个。停用插件“Async Javascript”并在 Autoptimize 插件设置中关闭 Javascript 优化解决了我的问题。
回答by Omar
There is the best solution :
有最好的解决方案:
- List item
- Go to revolution slider on the dashboard
- Select your slider causing the problem
- go to param slider
- Scroll to problem handlings on the right
- Select Troubleshooting
- set option: Put JS Includes To Bodyoption to true.
- 项目清单
- 转到仪表板上的旋转滑块
- 选择导致问题的滑块
- 转到参数滑块
- 滚动到右侧的问题处理
- 选择故障排除
- 设置选项:将 JS Includes To Bodyoption 设置为 true。
That's it
就是这样
回答by cschaefer
You may need to update your theme and/or the Rev Slider plugin.
您可能需要更新您的主题和/或 Rev Slider 插件。
回答by JanScott
Got the same issue! And its not the "update everthing" problem. I loaded everything fresh in the latest version. Wordpress (4.5.2) and a theme appbox. And the slider is also directly loaded in the last version. The bad thing is, that the menu options of the rev slider in wordpress not working correctly... Thus, the solution prompted is not executable as the dropdown menu hiding the option for query, can't be accessed. Another side effect: the delete slider is not working.
遇到同样的问题!它不是“更新一切”问题。我在最新版本中加载了所有新鲜内容。Wordpress (4.5.2) 和一个主题应用程序框。而且滑块也是上个版本直接加载的。不好的是,wordpress 中 rev 滑块的菜单选项无法正常工作......因此,提示的解决方案不可执行,因为隐藏查询选项的下拉菜单无法访问。另一个副作用:删除滑块不起作用。
回答by Sean Christopher Gayle
Thanks Batgor. Your method worked for me. Allow me to cosign to help others who encountered something slightly different.
谢谢巴特戈。你的方法对我有用。请允许我共同签名以帮助遇到略有不同的其他人。
My assets.zip file in the ./revslider/public/assetsfolder was NOT unzipped. So i had to go in via SSH and unzip it first. Then once it blew up, I went into the ./revslider/includes/framework/base.class.phpfile.
我在./revslider/public/assets文件夹中的assets.zip文件没有解压。所以我不得不通过SSH进入并先解压缩它。然后一旦它爆炸了,我就进入了./revslider/includes/framework/base.class.php文件。
For those who have old man eyes like me - you have to remove the 3rd equals sign in
对于像我这样有老头子的人-你必须删除第三个等号
if($unzipfile === true){
if($unzipfile === true){
so that you end up with
所以你最终得到
if($unzipfile == true){
if($unzipfile == true){
回答by karen
For me it was the combo of
对我来说这是组合
In the
Slider Settings
->Troubleshooting
set option:Put JS Includes To Body option
to true.Find the double
jquery.js
include and remove it. This was caused by auto optimize plugin. after I unchecked optimize JavaScript code that fixed it.
在
Slider Settings
->Troubleshooting
设置选项中:Put JS Includes To Body option
为 true。找到双
jquery.js
包含并将其删除。这是由自动优化插件引起的。在我取消选中优化修复它的 JavaScript 代码之后。