Plugin installation issue

Monday, November 25, 2024 12:49:44 PM
  • Posted: Monday, May 11, 2020 9:37 AM
  • 6
Hi,

I've just created a new Droplet on Digital Ocean, with automatic installation, all running smooth. I am developing a new payment plugin, which works ok on dev but I am facing issues when porting it on DO:

1) If I upload it via web admin interface, I get an error (/Admin/Plugin/UploadPlugin cannot be found). Upload functionality works as expected in DEV.
2) If I FTP it in the Grand.Web/Plugins folder, the plugin does not get recognized, despite multiple app restarts, refhreshes, etc.

Any ideas on where the issue could be?

This happens also with other plugins (I just downloaded one from the marketplace ans I get same behaviour). I have chowned and chmoded all files correctly (www-data and 777 to be sure)

Thanks

Stefano
0
  • Posted: Monday, May 11, 2020 11:56 AM
  • 953
Hi Stefano,

Can you check the System -> Log in Admin panel for errors? Do you have something in it?
Best regards,
Patryk

GrandNode Team
0
  • Posted: Monday, May 11, 2020 12:21 PM
  • 6
Hi,

I eventually managed to upload the Plugin but it completely crashed the application :)

Looking at the Kestrel logs I now have " Could not load file or assembly 'Autofac, Version=5.1.2.0, Culture=neutral, PublicKeyToken=17863af14b0044da'. The system cannot find the file specified" thrown by the plugin... seems like there is still some additional work to do....

On a side note: I noticed I have 4.60 installed. Which is the fastest way (on Linux) to upgrade to 4.70 (which I have in my local machine)?

Thanks

Stefano
0
  • Posted: Monday, May 11, 2020 12:41 PM
  • 953
Stefano,

first of all, plugin should be registered by dependency registrar. Have you done that? It's described in the developers docs here.

Secondly, it's impossible to run plugins made in GrandNode 4.70 in older versions. If you want to upgrade it to the newest version, just create a backup of database, replace files on your server with files coming from 4.70 version, restart app and go to yourstore.com/upgrade

Upgrade process is very simple. Hope it will help :)
Best regards,
Patryk

GrandNode Team
0
  • Posted: Monday, May 11, 2020 1:11 PM
  • 6
The trick worked. All updated to 4.70 and Plugin installed.

Magic.

Thanks for your help

S
0
  • Posted: Monday, May 11, 2020 1:12 PM
  • 953
You're welcome. Have fun.
Best regards,
Patryk

GrandNode Team
0
  • Posted: Monday, May 11, 2020 2:13 PM
  • 6
Sorry,

bumped into a very strange issue: in the OnePageCheckout flow, once I select the billing address (or I insert a new one) instead of continuing the checkout flow and bring me to shipping options, I am redirected back to the cart. Again, apparently no differences with local machine (apparently). Nothing logged in the System Logs, no errors in the Chrome console (apart from favicon mixed content http/https).

Any clue?
0
  • Posted: Tuesday, May 12, 2020 5:31 AM
  • 953
Hi,

It's problem with the SSL configuration. If the SSL is configured wrong, you won't be able to proceed to complete checkout. Please navigate to Admin panel -> System -> System Information and look into two fields. Is https and Scheme. If you want to have SSL in your store, it should be true / https. Furthermore if you configured SSL on your server, go to Configuration -> Stores and mark the SSL Enabled option and provide the secure URL with https. I'm pretty sure it will work.
Best regards,
Patryk

GrandNode Team
0
  • Posted: Tuesday, May 12, 2020 1:59 PM
  • 6
Yes, that worked. I had to adjust X fwd headers settings on nginx and app.config, as it was a reverse proxy issue. There were other posts in the forums which gave me some important feedback as well. Very useful.

Thanks for the hint.

Stefano
0
back to top
Filters