*

Cephas

  • ***
  • 54 posts
Hello,

I have two domains that I want them to share the same database. Everything is working ok so far, except that with the second domain, the images uploaded by users are not showing (only a few of them are showing). Does any one know how I can solve this problem?

*

MB Themes

Re: help with 2 domain sharing same database; images not showing on one
« Reply #1 on: February 07, 2022, 09:19:37 AM »
@Cephas
You would need to replicate oc-content/uploads folder (besides database)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Cephas

  • ***
  • 54 posts
Re: help with 2 domain sharing same database; images not showing on one
« Reply #2 on: February 07, 2022, 04:07:46 PM »
I have already replicated the oc-content/upload folder. But what happens is that, any new image that is posted on one website, does not show on the other. Can you show me where to modify the codes to indicate where uploaded image should be store? Then I can make it to store the uploaded image on both domains. I want the images to show up on both websites irrespective of which website the user listed on.

*

MB Themes

Re: help with 2 domain sharing same database; images not showing on one
« Reply #3 on: February 07, 2022, 04:10:08 PM »
@Cephas
Listing pictures are stored in oc-content/uploads/ folder (under subfolders 0, 1, 2, 3, 4, ....)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Cephas

  • ***
  • 54 posts
Re: help with 2 domain sharing same database; images not showing on one
« Reply #4 on: February 07, 2022, 04:34:52 PM »
Thanks for the response. I have seen where it is stored. But I want where I can modify the codes to tell it to store on both domains instead of on one domain. I think I may need to add the directory to the other domain so that pictures are stored on both "domain A/oc-content/uploads/folder"  and "domain B/oc-content/uploads/folder" irrespective of which website the item was listed.
Right now, when a user lists an item, the item shows in both domains. But pictures uploaded on website A do not show on website B and vice versa. I do not want to manually copy the pictures all the time.

*

MB Themes

Re: help with 2 domain sharing same database; images not showing on one
« Reply #5 on: February 07, 2022, 04:41:20 PM »
That is probably hour job to identifies this and assume if it is doable or not.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mwindey

  • *****
  • 475 posts
Re: help with 2 domain sharing same database; images not showing on one
« Reply #6 on: February 08, 2022, 09:50:29 AM »
What I wonder is how you can set 2 domains use the same database without being blocked with your API key?
Yesterday I did a fresh install of osclass without plugins and referenced the database of my domain with plugins. The plugins have to be purchased again for use on a 2nd domain but what if you only install the basic osclass?
I have been blocked for the second time with the message: API key validation error: You have used different domain in previous calls. OsclassPoint policy says that each premium product can be used on 1 domain only and account can be linked to 1 domain only. Domains used....
I hope this can be rectified again MB Themes?

*

MB Themes

Re: help with 2 domain sharing same database; images not showing on one
« Reply #7 on: February 08, 2022, 10:10:11 AM »
@mwindey
2 domains, 2 licenses.
I suppose not whole database will be replicated but just some tables.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mwindey

  • *****
  • 475 posts
Re: help with 2 domain sharing same database; images not showing on one
« Reply #8 on: February 08, 2022, 10:21:47 AM »
@MB Themes,

Well in my case i did not copy the database but i did set the config to the same database where my live site is... :-[ :-[
I did not upload plugins to the other domain but off course they are in admin... I AM STUPID  :D :D :D :D :D :D sorry
Meanwhile i deleted everything so can this API key error  be undone again please?

*

MB Themes

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots