Closed khartahk closed 5 years ago
Hello @khartahk , and thank you for bringing the issue to my attention!
The warnings you logged in the OP (thanks BTW, they will be fixed!) are not the root cause of the issue. After debugging, it appears Gitlab changed the way access tokens are used to get the content of repositories: https://gitlab.com/your-group/your-slug/repository/master/archive.zip?private_token=your-token
returns a 404 error if the user is not logged in.
After some digging, it's an updated in gitlab that causes the issue: https://gitlab.com/gitlab-com/support-forum/issues/4154 https://about.gitlab.com/2018/11/28/security-release-gitlab-11-dot-5-dot-1-released/ https://docs.gitlab.com/ee/api/repositories.html#get-file-archive
I'll be fixing that ASAP. Again, thank you for bringing it to my attention!
Sticky topic on wordpress to warn other users: https://wordpress.org/support/topic/gitlab-issue-since-nov-28-2018/
Fix has been found, will be deployed this evening (Beijing time)
Fixed deployed! Closing the issue. Please feel free to leave a review!
@khartahk I was delighted to see you left a review on the plugin, and then noticed it was withdrawn. Please feel free to let me know if there are any improvements you'd like to see, or the reason for the withdrawal: feedback is what helps improving the solution ;).
I didn't withdraw it. I'll check what happened
Dne, 04. december 2018 16:42:35 GMT+01:00, Alexandre Froger notifications@github.com sporoča:
@khartahk I was delighted to see you left a review on the plugin, and then noticed it was withdrawn. Please feel free to let me know if there are any improvements you'd like to see, or the reason for the withdrawal: feedback is what helps improving the solution ;).
-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/froger-me/wp-plugin-update-server/issues/5#issuecomment-444146051
Thanks for the fast reply 😮, and taking the time to look into it!
I guess they didn't like me linking to the gitlab issue. I've created a new review and this time omitted that. It's being held for moderation so it will probably take some time. This is probably because my first post was removed ...
I hope it gets approved soon.
I did how ever ran into another issue. One of my themes is not always downloaded in full to the wppus site and I get the following error in error log and a blank screen on Overview tab:
PHP Fatal error: Uncaught Wpup_InvalidPackageException: The specified file /nas/content/live/wpkupisi/wp-content/wppus/packages/bohinj-si.zip does not contain a valid WordPress plugin or theme. in /nas/content/live/wpkupisi/wp-content/plugins/wp-plugin-update-server/lib/wp-update-server/includes/Wpup/ZipMetadataParser.php:128\nStack trace:\n#0 /nas/content/live/wpkupisi/wp-content/plugins/wp-plugin-update-server/lib/wp-update-server/includes/Wpup/ZipMetadataParser.php(102): Wpup_ZipMetadataParser->extractMetadata()\n#1 /nas/content/live/wpkupisi/wp-content/plugins/wp-plugin-update-server/lib/wp-update-server/includes/Wpup/ZipMetadataParser.php(74): Wpup_ZipMetadataParser->setMetadata()\n#2 /nas/content/live/wpkupisi/wp-content/plugins/wp-plugin-update-server/lib/wp-update-server/includes/Wpup/Package.php(67): Wpup_ZipMetadataParser->__construct(NULL, '/nas/content/li...', Object(Wpup_FileCache))\n#3 /nas/content/live/wpkupisi/wp-content/plugins/wp-plugin-update-server/inc/class-wppus-update-manager.php(786): Wpup_Package::fromArch in /nas/content/live/wpkupisi/wp-content/plugins/wp-plugin-update-server/lib/wp-update-server/includes/Wpup/ZipMetadataParser.php on line 128
I can create an issue tomorrow if you need more info.
Regards
V V tor., 4. dec. 2018 ob 17:25 je oseba Alexandre Froger notifications@github.com<mailto:notifications@github.com> napisala:
Thanks for the fast reply 😮, and taking the time to look into it!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/froger-me/wp-plugin-update-server/issues/5#issuecomment-444162159, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACiEZOxMenZ6KWchnG8AKRnJ6xQde9f_ks5u1qHbgaJpZM4Y9Tp_.
-- Good men don't need rules. Today is not the day to find out why I have so many.
@khartahk thank you for the effort. Regarding the other issue you mentioned, let's indeed take care of it in a separate github issue.
@froger-me This issue has happened again. The same response from the plugin when trying to use gitlab, check if the repository with this slug exists.
A few days ago when I tested fetching themes from gitlab.com everything worked.
Now I get:
Error - could not get remote package. Check if a repository with this slug exists and has a valid file structure.
on both github.com and gitlab.comWPPUS: 1.4.9 Wordpress: 4.9.8
And this is happening on two separate installs. One on WP Engine and the other on DigitalOcean droplet. Error in error log says:
Sun Dec 02 07:38:22.066775 2018] [php7:notice] [pid 19140] [client xxx.xxx.xxx.xxx:xxxxx] WPPUS_Zip_Package_Manager::clean_package: Not Found, referer: https://domain.tld/wp-admin/admin.php?page=wppus-page
Also this is what I get in the debug log.