PDA

View Full Version : PP Classifieds wrong data path, created categories - missing folders


kaih
November 13th, 2006, 08:43 AM
We had a wrong path to PhotoPost Classifieds data directory path in the configuration.
As we added new (sub)categories there came error messages like this:
Unable to create/write to /var/www/vhosts/reitforum.de/httpdocs/shop/data//639! Check your data directory permissions before continuing.

But the Categories were added to the database, only the folder was not created.

I entered the right path to the data folder now.
The Problem now is that there has been a lot of categories and subcategories added in the meantime.
Is there a way to let PhotoPost Classifieds create missing folders automatically?

Chuck S
November 13th, 2006, 10:34 AM
You mean that with that error throwing up you continued anyway and created more cats?

You either need to manually add the data directories or deleted your categories and recreate them.

kaih
November 13th, 2006, 10:46 AM
You mean that with that error throwing up you continued anyway and created more cats?
Not me, the person we ordered to add the categories.


You either need to manually add the data directories or deleted your categories and recreate them.
oh really? thats bad, as i already said: there are many many categories.
Maybe we could write some simple script to do that?
It just has to go through all categories, check if the folder exists and create it if not. You also could add a link to the adminmenu "Check Cat Folders" for example.
Better would be if PhotoPost Classifieds never would create Categories if the data folder is not right :)

Can you help me writing a small php script for creating the missing folders?