Page 1 of 1
error when install plugin
Posted: Fri Oct 27, 2023 11:35 am
by Dev.
When trying to install a custom payment plugin for
Extensions->installer will get the below error
" Warning: Could not find install.json!"
I can see the plugin in the storage -> marketplace folder Also I already add install.json file
Code: Select all
{
"name": "",
"version": "1.1",
"author": "",
"link": ""
}
opencart Version 4.0.2.3
PHP 8.1
How can solve it !!!
Re: error when install plugin
Posted: Fri Oct 27, 2023 7:55 pm
by paulfeakins
Dev. wrote: ↑Fri Oct 27, 2023 11:35 am
When trying to install a custom payment plugin for
What payment plugin?
Re: error when install plugin
Posted: Fri Oct 27, 2023 8:02 pm
by JNeuhoff
Ask the plugin author for help. Or give us more details, as per the forum rules, if you want help here.
Re: error when install plugin
Posted: Fri Oct 27, 2023 9:26 pm
by Dev.
paulfeakins wrote: ↑Fri Oct 27, 2023 7:55 pm
Dev. wrote: ↑Fri Oct 27, 2023 11:35 am
When trying to install a custom payment plugin for
What payment plugin?
I'm developing the plugin
it's working on OC 4.0.0.0 But when installing last version of opencart will show this error
Re: error when install plugin
Posted: Fri Oct 27, 2023 10:43 pm
by JNeuhoff
Are you using the correct folder structure for your ocmod.zip file? E.g. something like this:
install.json
admin
catalog
Also, you should fill in the install.json correctly, for name, version etc.
Re: error when install plugin
Posted: Sat Oct 28, 2023 12:07 am
by Dev.
JNeuhoff wrote: ↑Fri Oct 27, 2023 10:43 pm
Are you using the correct folder structure for your ocmod.zip file? E.g. something like this:
install.json
admin
catalog
Also, you should fill in the install.json correctly, for name, version etc.
Yes, all things are correct
In opencart version, I'm changing the line in this file
upload/admin/view/template/marketplace/installer.twig
from
accept="ocmod.zip".
To
accept=".zip".
In this version 4.0.2.3 needs any changes?
Re: error when install plugin
Posted: Sat Oct 28, 2023 9:14 pm
by straightlight
Dev. wrote: ↑Sat Oct 28, 2023 12:07 am
JNeuhoff wrote: ↑Fri Oct 27, 2023 10:43 pm
Are you using the correct folder structure for your ocmod.zip file? E.g. something like this:
install.json
admin
catalog
Also, you should fill in the install.json correctly, for name, version etc.
Yes, all things are correct
In opencart version, I'm changing the line in this file
upload/admin/view/template/marketplace/installer.twig
from
accept="ocmod.zip".
To
accept=".zip".
In this version 4.0.2.3 needs any changes?
It has been known on Github this issue occurs when people are using MAC devices or servers. The accept method is not the same.
Re: error when install plugin
Posted: Sat Oct 28, 2023 10:59 pm
by JNeuhoff
Dev. wrote: ↑Sat Oct 28, 2023 12:07 am
Yes, all things are correct
In opencart version, I'm changing the line in this file
upload/admin/view/template/marketplace/installer.twig
from
accept="ocmod.zip".
To
accept=".zip".
In this version 4.0.2.3 needs any changes?
Yours doesn't make sense, because there is no
accept="ocmod.zip" to be found anywhere in that particular file. In fact I can't find it in any file!
If you really want some help, then please provide some details of what exactly you have done!
Re: error when install plugin
Posted: Mon Oct 30, 2023 7:45 am
by grgr
I've had a " Warning: Could not find install.json!" a few times where it was quite clearly actually there.
After giving it a poke with a big stick and getting nowhere, I simply deleted and added a new one. Actually, I copied a know working one and edited it suit.
No idea of the what, how or why of it, not looked into it - better things to do. But doing the above worked.
Re: error when install plugin
Posted: Mon Oct 30, 2023 9:02 pm
by paulfeakins
Dev. wrote: ↑Fri Oct 27, 2023 9:26 pm
it's working on OC 4.0.0.0 But when installing last version of opencart will show this error
Well, obviously. The latest version has many changes.
Re: error when install plugin
Posted: Fri Nov 03, 2023 10:33 am
by Dev.
paulfeakins wrote: ↑Mon Oct 30, 2023 9:02 pm
Dev. wrote: ↑Fri Oct 27, 2023 9:26 pm
it's working on OC 4.0.0.0 But when installing last version of opencart will show this error
Well, obviously. The latest version has many changes.
Okay. How I can know what needs to change in the custom plugin, Is there any article that can help to know what needs to change?
Re: error when install plugin
Posted: Fri Nov 03, 2023 10:37 am
by Dev.
JNeuhoff wrote: ↑Sat Oct 28, 2023 10:59 pm
Dev. wrote: ↑Sat Oct 28, 2023 12:07 am
Yes, all things are correct
In opencart version, I'm changing the line in this file
upload/admin/view/template/marketplace/installer.twig
from
accept="ocmod.zip".
To
accept=".zip".
In this version 4.0.2.3 needs any changes?
Yours doesn't make sense, because there is no
accept="ocmod.zip" to be found anywhere in that particular file. In fact I can't find it in any file!
If you really want some help, then please provide some details of what exactly you have done!
Sir, I mean I did that when was working on version 4.0.0.0
But in the last version, I didn't know if I needed to change any website files or what the meant change needed to do in the custom plugin
Re: error when install plugin
Posted: Fri Nov 03, 2023 8:37 pm
by paulfeakins
Dev. wrote: ↑Fri Nov 03, 2023 10:33 am
Is there any article that can help to know what needs to change?
This might help:
https://github.com/opencart/opencart/bl ... ANGELOG.md