-
AuthorPosts
-
September 22, 2019 at 9:18 am #1140601
Hello. I am trying to update my theme from v4.5.7 to v4.6.2. When I do so, I encounter an error:
An error occurred while updating Enfold: The update cannot be installed because we will be unable to copy some files.
Screenshot here full output here. Any ideas how to resolve this issue? I can change permissions of files/folders, but I was under the impression permissions were already configured to WordPress specs.
Let me know if you would like access to my site and I can grant it.
Thanks.
September 23, 2019 at 2:55 am #1140804Hey FeedXL2019,
Thanks for the screenshot and pastebin, you could check your file permissions which would not hurt, but they are probably correct, from your screenshot I see that you have two security plugins, perhaps the encrypted update link set off a false positive and they tried to protect you? Maybe not but you could try disabling them and try again.
I would recommend updating via ftp, like this:
The easiest and safest way to update is to download the newest version from Theme Forest and rename your current theme to “enfold-old” via ftp, then upload the new “enfold” via ftp and check that your site is working correctly.
Once you are happy you can delete the “enfold-old” via ftp, (not the WP theme page)
Should for some reason you wish to roll-back to the old version, it’s easy to do, simply rename the new “enfold” to “enfold-new” via ftp and then rename “enfold-old” to “enfold” then refresh your page.
Please don’t try to overwrite the theme folder, as this will leave old files behind and cause errors.Best regards,
MikeSeptember 23, 2019 at 11:06 am #1140977Hi Mike,
Thanks for the reply. Here are my follow-ups:
A big issue is that I just logged in to my site again. The theme version is still 4.5.7, but now the ‘Update Now’ link is gone–there is absolutely no indication that a new theme version is available. Yesterday, that notification/link was present. Any ideas how to resolve that?
>> you could check your file permissions which would not hurt, but they are probably correct
Well I configured this server myself, and set folder permissions to 775 and file permission to 664 (with wp-config.php set to 660). Those were suggested to me in this article. I realize the article you linked specifies different permissions. Do you think I should try those? If so, we would first have to resolve the issue of the missing link/notification that I described above.
>> from your screenshot I see that you have two security plugins, perhaps the encrypted update link set off a false positive and they tried to protect you?
>> Maybe not but you could try disabling them and try again.I don’t have a problem deactivating those to see if they are the culprit. But first, we would first have to resolve the issue of the missing link/notification that I described above.
>> I would recommend updating via ftp, like this:
The last time I updated the theme, it was required that I do so manually. I did so, and at that time I was promised that all future theme updates could be done automatically. So I hope we can spend some time getting that to work. As an absolute last option I would be willing to update manually. But I really want to resolve the issue with automatic updates.
Thanks.
September 24, 2019 at 9:16 am #1141280Hi,
When I look at the source code for your site it looks like the updates are disabled:
do you have your token code added the theme update page?
Please include admin login in the Private Content area so we can be of more assistance.Perhaps it would be a good idea to see if your webhost has the one click staging site option, this is a option in most cPanels to create a staging clone of your site so we can test on it and you site will stay up and running. You can always ask your webhost to help you with setting this up if you want.
Here are some screenshots of what it would look like:
Best regards,
MikeSeptember 24, 2019 at 9:45 am #1141296>> When I look at the source code for your site it looks like the updates are disabled:
OK interesting. I was not aware of that. I did not build this website, but recently took over admin duties. One of the first things I did as admin was update the site to version 4.5.7–it had not been updated in several years. I am now trying to update again.
>> do you have your token code added the theme update page?
I do. That was one of the first things I did after updating to 4.5.7. I just re-checked and it is still there.
>> Please include admin login in the Private Content area so we can be of more assistance.
OK I will do so. Let me know if you have issues.
>> Perhaps it would be a good idea to see if your webhost has the one click staging site option, this is a option in most cPanels to create a staging clone of your site so we can test on it and you site will stay up and running.
The site in-question is indeed my private development site. It is a clone of my live site. After I update the theme on my dev site, I will do the same on my live site.
September 26, 2019 at 4:24 am #1142103Hi,
Thank you for the update.
We deactivated the plugins temporarily, then tried to update the theme in the dashboard but it didn’t work, so we activated the plugins again. Now it’s stuck in the “google_authenticator_user_page”. You may need to update the theme manually via FTP this time.
// https://kriesi.at/archives/the-complete-guide-to-updating-enfold
// https://kriesi.at/documentation/enfold/theme-update/#update-via-ftpBest regards,
IsmaelSeptember 26, 2019 at 6:31 am #1142124>> Now it’s stuck in the “google_authenticator_user_page”.
When I gave you access to my site, several plugins–including Google Authenticator–were already deactivated. There was a reason they were deactivated.
But you re-activated *all* plugins, including Google Authenticator. As you can see, that is now causing login issues. I will deactivate it via FTP. But please be more mindful in the future.What about the previous message in this thread, from Mike on 24 September? He say,
>> When I look at the source code for your site it looks like the updates are disabled:
and provides a screenshot. Do you think that might be causing the issue?
September 27, 2019 at 4:35 am #1142561Hi,
Sorry about that. I’m not familiar with that plugin, and I might have missed that it’s initially disabled.
>> When I look at the source code for your site it looks like the updates are disabled:
It won’t affect the auto update, but I’ve asked one of our developers to confirm.I’ll let you know once he responds. For now, you will have to update the theme manually via FTP.
Best regards,
IsmaelSeptember 27, 2019 at 7:45 am #1142584>> Sorry about that. I’m not familiar with that plugin, and I might have missed that it’s initially disabled.
OK no worries.
>> It won’t affect the auto update, but I’ve asked one of our developers to confirm.I’ll let you know once he responds. For now, you will have to update the theme manually via FTP.
OK. But as I mentioned before, I paid for a theme that promises auto updates, and when I last updated the theme, the developer promised that I would be able to auto-update in the future. So if possible, I would very much like to resolve this issue, rather than turn to the workaround of a manual update. If it requires more time with second tier support, I am happy to wait. If for some reason you cannot resolve the issue, would you be able to carry out the manual update, on both my dev site and live site?
Thanks.
September 30, 2019 at 3:40 am #1143197Hi,
Thank you for the update.
Where is the site hosted? It’s possible that your server is rejecting the requests or the source files from Envato. We’ll forward this thread again to the dev team.
Yes, we can help you with the update this time but it will be very inconvenient for you to look for us every time you needed to update. We are pretty sure that is not an issue with the theme, but rather an issue related to the server configuration or something else.
Best regards,
IsmaelSeptember 30, 2019 at 5:05 am #1143216>> Where is the site hosted?
It is hosted on an AWS virtual server I setup.
>> It’s possible that your server is rejecting the requests or the source files from Envato.
It could very well be that my server is not configured as it should be for this purpose. But I cannot fix that until you tell me exactly how it needs to be fixed.
>> We’ll forward this thread again to the dev team.
OK thanks. Do you have a rough estimate as to when they might reply?
>> Yes, we can help you with the update this time but it will be very inconvenient for you to look for us every time you needed to update.
I agree that it is very inconvenient for both of us to spend time on this. That’s why I have been saying throughout this ticket that we should get automatic updates working, rather than simply move forward with a manual update. If we do not fix automatic updates, I will have to manually update the theme every time a new version is released, which will be quite tedious. Why don’t we wait another week for the dev team to reply, so we can hopefully fix the automatic update issue. If it helps, I am happy to speak directly with the dev team. I can give them access to my site if need be.
>> We are pretty sure that is not an issue with the theme, but rather an issue related to the server configuration or something else.
Instead of making assumptions, let’s allow the dev team to confirm the cause of the issue. That is the only way anyone will be able to fix it.
Thanks.
October 2, 2019 at 2:16 am #1144011Hi,
Could you check if the following PHP settings are enabled in your server?
allow_url_fopen allow_url_include register_globals
These settings will allow remote requests.
// https://kriesi.at/support/topic/can-t-import-demo-data/#post-1059348
The auto update works for most users, so it’s safe to say that this is not an issue with theme. We have posted the debugging info issue to our git repository.
Best regards,
IsmaelOctober 2, 2019 at 6:47 am #1144069I will check on the values of those PHP settings. Give me a day or two and I will report back here.
October 2, 2019 at 8:56 am #1144094I had a look at those three PHP settings:
allow_url_fopen: This is already set to ‘on.’
allow_url_include: This is set to ‘off.’ I am working on setting it to ‘on.’
register_globals: This appears to be removed as of PHP v5.4. So I don’t think this applies to us (since I am using PHP v7.2). Can you confirm that?Thanks.
October 2, 2019 at 12:20 pm #1144140I changed
allow_url_include
toon
and tried to update the theme again. But there is a new issue preventing me from doing so. WordPress–>Appearance indicates an update is available for the Enfold theme. But it also indicates, “Automatic update is unavailable for this theme.” What’s going on here?October 4, 2019 at 4:24 am #1144834Hi,
Thank you for the update.
We validated the token again to get the latest info about the theme. The update is now available in theme options, but it’s still not working or unable to copy the files to your server. Can we have access to the file server? We would like to enable the debug mode and error logs, and see if anything comes up. Please post the FTP details in the private field.
Best regards,
IsmaelOctober 4, 2019 at 6:04 am #1144869>> We validated the token again to get the latest info about the theme. The update is now available in theme options,
When I open the page, I see the same error message, “Automatic update is unavailable for this theme.”
>> Can we have access to the file server? We would like to enable the debug mode and error logs, and see if anything comes up.
OK stand by, I’m working on obtaining FTP credentials for you. I’ll post back here when I obtain them. FYI I already have error logging enabled (errors write to debug.log, but do not print to the screen).
October 4, 2019 at 7:16 am #1144890Separately, on my site, the ‘Custom CSS class’ is missing (screenshot comparison). Any ideas why that is, or how to resolve it? Is it related?
In the screenshots I sent, both sites are using theme version 4.5.7.
Thanks.
October 4, 2019 at 8:23 am #1144912Hi,
Thank you for the update.
We disabled the filters in the functions.php file temporarily, but we forgot to enable them back. Sorry about that. We edited the functions.php file again. You can enable the custom css class field in the Enfold > Layout Builder panel. Look for the “Show element options for developers” checkbox.
Best regards,
IsmaelOctober 4, 2019 at 8:27 am #1144913Here are instructions on how to connect to my site via SFTP (see private content).
October 4, 2019 at 8:30 am #1144914Hi,
Thank you for the info. I will tag one of our developers to help check the issue. Please wait for his response. We appreciate your patience.
Best regards,
IsmaelOctober 4, 2019 at 8:31 am #1144915>> We disabled the filters in the functions.php file temporarily, but we forgot to enable them back. Sorry about that. We edited the functions.php file again. You can enable the custom css class field in the Enfold > Layout Builder panel. Look for the “Show element options for developers” checkbox.
OK got it. I now see that the field has returned, so thanks for that.
>> Thank you for the info. I will tag one of our developers to help check the issue. Please wait for his response. We appreciate your patience.
OK great, sounds good. I appreciate your help as well.
October 5, 2019 at 4:11 pm #1145303Hi,
I’m not aware of similar bug reports, but I found following help article: https://divibooster.com/fixing-the-update-cannot-be-installed-because-we-will-be-unable-to-copy-some-files-error/
Also check with your hoster that file permissions and owner permissions for files and folders for ftp user and php user are set correctly (also see https://wordpress.org/support/article/hardening-wordpress/#file-permissions ).
Best regards,
GünterOctober 6, 2019 at 7:18 am #1145424Thanks for your help. I have some follow-up questions:
1. Were you able to login to my site via SFTP? If so, you could directly check specific file/folder settings, in terms of owner/group/permissions. Earlier I asked how I can send you my private key, so you can connect via SFTP. Maybe I can add it as a download link in the private content area?
2. If you did not, or cannot login via SFTP, can you tell me exactly which folders require exactly which owner/group/permissions? I had a look at that hardening page, and there are many instructions that do not pertain to this issue.
3. Maybe to start, can you tell me what permissions I should have set for /wp-content/themes/enfold? I have a feeling these may not be set properly.
Thanks.
- This reply was modified 5 years, 1 month ago by FeedXL2019.
October 8, 2019 at 3:42 am #1145981Hello. Any update to this? I can troubleshoot this on my end, but it would be very helpful if your second tier support could answer my previous three questions, especially #3.
Thanks.
October 8, 2019 at 12:28 pm #1146130Hi,
Please read https://wordpress.org/support/article/hardening-wordpress/#file-permissions and https://wordpress.org/support/article/hardening-wordpress/#regarding-automatic-updates
Best would be to get in contact with your hoster/system administrator to check and set the rights according to these articles. Maybe your hoster has experience with WordPress installs and can help you to configure your site.
Best regards,
GünterOctober 10, 2019 at 9:23 am #1146787>> Please read https://wordpress.org/support/article/hardening-wordpress/#file-permissions and https://wordpress.org/support/article/hardening-wordpress/#regarding-automatic-updates
OK I will do so.
But the main issue right now is the absence of the auto-update link. Specifically, when I opened this ticket, WordPress–>Appearance indicated an update available for the Enfold theme, and also an ‘Update Now’ link. But after I opened this ticket, and Enfold agents made some changes to my site, that “Update Now” link was replaced by, “Automatic update is unavailable for this theme.” I raised this issue earlier in this ticket. The agent said it was fixed, but I still see the issue. How can we resolve that?
Earlier an agent in this thread asked for access to my file server. I sent him instructions on how to connect via SFTP. Were you able to do so?
>> Best would be to get in contact with your hoster/system administrator to check and set the rights according to these articles. Maybe your hoster has experience with WordPress installs and can help you to configure your site.
In this case, I am the hoster, sys admin, and have experience with WordPress installs. But it is my first time configuring a server from scratch. I’m hoping you can bear with me as we troubleshoot this issue. Hopefully it’s just a permission/owner issue. But in the meantime, I need your help getting the ‘Update Now’ link to re-appear.
Thanks.
October 11, 2019 at 7:31 am #1147043Hi,
Thank you for the update.
Have you tried to validate the token again in the Theme Updates panel? The link to the update is there the last time we revalidated the token. We tried to access the dashboard again but the previous login account is no longer valid. Please provide another account. You can also do the automatic update in the Dashboard > Updates panel. Just scroll down a bit until you are in the Themes update section, but it probably will not work because of the server issues.
Best regards,
IsmaelOctober 14, 2019 at 8:54 am #1147749>> Please provide another account.
OK I have done so in the private reply area. To be clear, please do not update the theme right now. Simply fix the issue in which the ‘Update Now’ link is not displaying on the Appearance–>Themes page.
Thanks.
October 15, 2019 at 9:42 am #1148009Hi,
Thank you for the update.
We validated the token again and checked for updates manually. Please check the screenshot below.
Screenshot: https://imgur.com/a/57bq0Mv
You can also check for updates in the Dashboard > Updates panel.
Best regards,
Ismael -
AuthorPosts
- The topic ‘Theme update error ('unable to copy some files')’ is closed to new replies.