PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   General Discussion (http://www.photopost.com/forum/general-discussion/)
-   -   PP Classifieds wrong data path, created categories - missing folders (http://www.photopost.com/forum/general-discussion/128667-pp-classifieds-wrong-data-path-created-categories-missing-folders.html)

kaih November 13th, 2006 08:43 AM

PP Classifieds wrong data path, created categories - missing folders
 
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:
Quote:

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

Quote:

Originally Posted by Chuck S (Post 1179729)
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.

Quote:

Originally Posted by Chuck S (Post 1179729)
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?


All times are GMT -5. The time now is 10:44 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97