-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.3.0 Installing issue (Fatal error) #76
Comments
Thanks for reporting, Kim. We'll take a look 👍 |
It looks live version |
@thefrosty To upload a zip instead of using Composer, you need to download the packaged release asset that includes the vendor directory. It's available from the releases page and is the file named @Nobiuss Does using the release asset fix the error you're seeing? |
That makes sense to me. I didn't try that, was just looking at the code. |
Just testing again locally the way I imaging quite a few users might install this plugin; via afragen/github-updater. Which installs the latest master branch. I would suggest adding the custom release-assets header so it knows to download Update: Oh, I see that there. Looks like it wasn't honored via the GitHub Updater. |
That header is already present, but I've never tried installing a plugin using the updater. Do you know if anything else is required to make it use the release asset for installation? |
Thanks, I've asked that question: afragen/git-updater#712 |
Unfortunately Installing from GitHub Updater has no knowledge of release assets or the plugin headers. As the plugin requires post processing it must either be installed from the release asset link or via composer. One could immediately edit the main plugin file and decrease the version number after Installing via GitHub Updater with the immediate notice for updating. This update will pull the release asset. Any attempt to activate the plugin prior to this will result in the error above. GHU simply not set up to install via a release asset URL. |
I can confirm the the fatal error only happens when installing the plugin via the github-updater or master download from the download link (non-release asset version). When using the release version it has zero issues. |
If someone is using Composer, then they should have the If someone is using the release zip, then they should have the I think the only scenario when it might not exist, would be if they did a Maybe also add a comment just above, explaining about the release zip, so if anyone else was "just looking at the code", they'd be suitably informed. |
After install, and before it offers the user the chance to activate, could it then scan the plugin headers, and if it finds a release asset header, go ahead and run an immediate (re-)install using that instead? |
@GaryJones it’s probably simpler to add a new feature to install via a URL if the user wants to use the GitHub Updater Install feature. The trick would be getting the user to use that one. It still a matter of getting the user to install in the correct manner, composer or the release asset. |
When downloading a WordPress plugin from GitHub, I think people might be conditioned to download the source zip on the releases page or from this popup, which wouldn't include the
Checking for dependencies would work. Instead of exiting and preventing access to the site, we can probably display an admin notice with a link to the installation instructions. |
Great work guys. I will test this later. |
Fixes #713 Fixes #712 Related cedaro/satispress#76
@GaryJones @Nobiuss @bradyvercher @thefrosty GitHub Updater develop branch now has the ability to install from a zipfile, remote URL or a local file. No directions as yet, I'm interested in knowing how easy it is to figure out. |
I came across this recently. I installed the plugin via Composer (whole site managed with composer.json) in the root. Because the plugin is looking for the vendor directory in it's directory. This wont exist as the vendor dir is at the site root. |
Hi @polevaultweb! SatisPress doesn't check for a vendor directory. It checks to see if the I run SatisPress on a site that's managed by Composer (SatisPress is installed by Composer) and haven't run into this issue. If you open the |
Hmmm, i was referring to Line 44 in a9d5f35
|
Hi Team,
We have seen the update here on github so we removed the old version and installed this new one and had some errors.
Plugin could not be activated because it triggered a fatal error. ----->
Fatal error: Uncaught LogicException: Function 'SatisPress\autoloader_classmap' not found (function 'SatisPress\autoloader_classmap' not found or invalid function name) in /home//apps/plugins/wp-content/plugins/satispress/satispress.php:48 Stack trace: #0 /home//apps/plugins/wp-content/plugins/satispress/satispress.php(48): spl_autoload_register('SatisPress\auto...') #1 /home//apps/plugins/wp-admin/includes/plugin.php(1897): include('/home/...') #2 /home//apps/plugins/wp-admin/plugins.php(178): plugin_sandbox_scrape('satispress/sati...') #3 {main} thrown in /home//apps/plugins/wp-content/plugins/satispress/satispress.php on line 48
<----
Kind regards,
Kim
The text was updated successfully, but these errors were encountered: