Advertisement:

Author Topic: 2 installations osclass with the same upload directory  (Read 1097 times)

melcochon

  • Newbie
  • *
  • Posts: 12
2 installations osclass with the same upload directory
« on: January 06, 2013, 12:17:44 am »
Hi

which archives must i modify to make run this operation?

2 installations osclass with the same upload directory

thanks

Jesse

  • Hero Member
  • *****
  • Posts: 631
  • Out of my mind, back in 5 minutes
Re: 2 installations osclass with the same upload directory
« Reply #1 on: January 06, 2013, 03:30:27 am »
Assuming by two installations you also mean two different databases too? If so....

You need to first understand how OSClass names pictures. Every time a picture is uploaded, information about it is stored in the database with a unique ID number (starts at 0 and auto-increments). This ID number is used in the naming of the file. If you have two installations, they're going to be producing duplicate picture file names, since they'll both be using incrementing ID numbers. Obviously, you can't use a single upload directory for two different files with the exact same name. You would first need to ensure the file names are not duplicated by each installation.

melcochon

  • Newbie
  • *
  • Posts: 12
Re: 2 installations osclass with the same upload directory
« Reply #2 on: January 06, 2013, 11:35:59 am »
Hi

The installs have the same data base, I need change the paths an archives to read the same "uploads" directory.

This is te menssage that show when I change the path os some archives:

Warning: Base directory /home/wooden.es/web/altruislade/altruisla/oc-content/uploads does not exist, please create or change using %Cache.SerializerPath in /usr/home/wooden.es/web/altruislade/oc-includes/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133

thanks

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198