*

alexborg

  • ***
  • 73 posts
Problem with installing Favorite items
« 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
Oglasi

*

BabyDunk

  • ****
  • 161 posts
Re: Problem with installing Favorite items
« Reply #1 on: February 26, 2017, 03:15:26 PM »
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.
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

alexborg

  • ***
  • 73 posts
Re: Problem with installing Favorite items
« Reply #2 on: February 26, 2017, 03:35:38 PM »
There is no entry in the   mysql   oc_t_favorite ...
Oglasi

*

MB Themes

Re: Problem with installing Favorite items
« Reply #3 on: February 26, 2017, 09:54:49 PM »
@alexborg
In file:
oc-content/plugins/favorite_items/model/struct.sql

Try to remove:
Code: [Select]
  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
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

alexborg

  • ***
  • 73 posts
Re: Problem with installing Favorite items
« Reply #4 on: February 26, 2017, 11:11:07 PM »
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

Oglasi

*

MB Themes

Re: Problem with installing Favorite items
« Reply #5 on: February 27, 2017, 08:44:38 AM »
@alexborg
Drop those tables from your database manually.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

alexborg

  • ***
  • 73 posts
Re: Problem with installing Favorite items
« Reply #6 on: February 27, 2017, 01:16:57 PM »
Yes, delete it all again the same problem.
Oglasi

*

MB Themes

Re: Problem with installing Favorite items
« Reply #7 on: February 27, 2017, 01:21:42 PM »
@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?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

alexborg

  • ***
  • 73 posts
Re: Problem with installing Favorite items
« Reply #8 on: March 08, 2017, 10:23:03 AM »
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
Oglasi

*

club4dog

  • ***
  • 25 posts
Re: Problem with installing Favorite items
« Reply #9 on: December 04, 2017, 08:50:45 PM »
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.

*

MB Themes

Re: Problem with installing Favorite items
« Reply #10 on: December 04, 2017, 08:56:42 PM »
@club4dog
Remove those foreign keys, remove plugin tables on database and install it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

club4dog

  • ***
  • 25 posts
Re: Problem with installing Favorite items
« Reply #11 on: December 04, 2017, 10:09:06 PM »
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
« Last Edit: December 07, 2017, 10:52:44 PM by club4dog »

*

club4dog

  • ***
  • 25 posts
Re: Problem with installing Favorite items
« Reply #12 on: December 07, 2017, 10:54:02 PM »
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
There is no entry in the   mysql   oc_t_favorite ...

*

MB Themes

Re: Problem with installing Favorite items
« Reply #13 on: December 08, 2017, 11:33:25 AM »
@club4dog
What version of plugin you have?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

club4dog

  • ***
  • 25 posts
Re: Problem with installing Favorite items
« Reply #14 on: December 09, 2017, 08:28:11 PM »
Version:1.0.4 | By MB Themes | Plugins Site