Osclass Support Forums
Osclass plugin support => Favorite Items Plugin => Topic started by: alexborg on February 26, 2017, 02:24:35 PM
-
When installing throws an error:
"Plugin couldn't be installed because of: Error importSQL::ModelFI
favorite_items/model/struct.sql
/var/www/vhosts/mysite.com/httpdocs/oc-content/plugins/favorite_items/model/struct.sql
Please check your database for table t_favorite.
If any of those tables exist in your database, delete them!
The base does not have this "table t_favorite" I would erase it and do the installation.
What's the problem and how to install Favorite items? Tnx
-
are you looking for t_favorite with the osclass prefix? like this oc_t_favorite?
it can have a different prefix if it was changed at osclass installation.
-
There is no entry in the mysql oc_t_favorite ...
-
@alexborg
In file:
oc-content/plugins/favorite_items/model/struct.sql
Try to remove:
FOREIGN KEY (list_id) REFERENCES /*TABLE_PREFIX*/t_favorite_list (list_id) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (item_id) REFERENCES /*TABLE_PREFIX*/t_item (pk_i_id) ON DELETE CASCADE ON UPDATE CASCADE
and make sure you have 2 lines here with:
DROP TABLE
-
I deleted the two lines of the file struct.sql and again was happening. The same problem.
Report an error, a base of the insert the following: oc_t_favorite_list
-
@alexborg
Drop those tables from your database manually.
-
Yes, delete it all again the same problem.
-
@alexborg
Did you try it on fresh osclass installation as well?
What version of DB do you use?
Can you PM login to your ftp and oc-admin?
-
Server: Localhost via UNIX socket
Server type: MySQL
Server version: 5.5.52-cll-lve - MySQL Community Server (GPL) by Atomicorp
PHP extension: mysqli
PHP version: 5.6.27
-
Hi I have the same problem, I have tried everything, but it does not work. I have 2 osclasses a test on a server and one on the main site. on the test site it works, but on the main site it does not work. the only difference is that on the main website I previously configured another favorite plugin, but I deleted it.
-
@club4dog
Remove those foreign keys, remove plugin tables on database and install it.
-
I tried again I did everything, but it keeps giving me error, can I write in private my oc-admin and ftp accesses?
the problem persists, please help me
-
I tried again I did everything, but it keeps giving me error, can I write in private my oc-admin and ftp accesses?
the problem persists, please help meThere is no entry in the mysql oc_t_favorite ...
-
@club4dog
What version of plugin you have?
-
Version:1.0.4 | By MB Themes | Plugins Site
-
@club4dog
Try latest one.
-
I followed step by step and I solved, Thanks
-
Cool, welcome ;)