 | |  | | | Classifieds Installation & Upgrades If you're having install or upgrade problems, post here. |
July 25th, 2005, 02:13 PM
|
#1 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
| Differing /data directories
I've just installed Classifieds 2.41
When creating an advert that includes a phot I get the following error message:
Warning: move_uploaded_file(/classifieds/data2/1Bart_032.jpg): failed to open stream: No such file or directory in \classifieds\image-inc.php on line 53
When I go and look at the advert the advert shows but there's no photo because it's calling the photo from /data/2/1Bart_032-thumb.jpg
The difference is: /data/2 and /data2
Last edited by criscokid; July 25th, 2005 at 02:22 PM.
|
| |
July 25th, 2005, 02:37 PM
|
#2 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
Putting a / at the end of the directory in the 'Full path to PhotoPost Classifieds data directory' field seems to have sorted the problem (I think).
|
| |
July 25th, 2005, 02:55 PM
|
#3 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
In setting up my classifieds I only have 'personals' activtated. When I click on 'Place an ad' it immediatly jumps to 'step 2 of 3' (which is understandable as step 1 is the step where you choose the type od ad you wish to place) - the problem is that the drop down list is empty even though I have some ad categories set.
|
| |
July 26th, 2005, 05:38 PM
|
#4 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
Anyone from the support team able to help me on this?
I have a category called 'Personal adverts' set which doesn't allow ads to be posted to it and then sub categories under that which do allows ads to be posted and they're all 'personal type'ads.
When I click on 'Place an ad' it immediatly jumps to 'Step 2 of 3 - Choose the category you wish to place your ad:' - the problem is that the drop down list is empty even though I have some ad categories set. If I click the submit button the screen changes and shows 'Step 2 of 3 - Choose the category you wish to place your ad:' and all my categories are shown.
|
| |
July 26th, 2005, 05:48 PM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
In edit categories you need to assign categories to use the personals template.
|
| |
July 27th, 2005, 03:10 AM
|
#6 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
| Quote: |
Originally Posted by omegatron In edit categories you need to assign categories to use the personals template. | I did that and that's when things break. It seems to work ok if there's a category with ads other than personals there as as well - but personals on its own then it doesn't work.
|
| |
July 27th, 2005, 08:57 AM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
Please explain in further detail
If I create a parent cat called personals and then create subcategories and assign them all the personals type it works fine.
I think alot of the confusion comes when people think they can mix and match template types of subcats under a parent cat which is set to a specific type
|
| |
July 27th, 2005, 09:42 AM
|
#8 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
| Quote: |
Originally Posted by omegatron If I create a parent cat called personals and then create subcategories and assign them all the personals type it works fine. | Which is exactly what I've done and it's broken (as I've described in my previous posts). I'll PM you the URL and you can take a look for yourself.
|
| |
July 27th, 2005, 01:42 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
Here is the fix in uploadproduct.php
find this
list( $pptemplate ) = mysql_fetch_row($adtypes);
ppmysql_free_result($adtypes);
change to this
list( $pptemplate, $adtype ) = mysql_fetch_row($adtypes);
ppmysql_free_result($adtypes);
$Globals['cattemp'] = htmlspecialchars($pptemplate);
Last edited by Chuck S; July 27th, 2005 at 02:29 PM.
|
| |
July 27th, 2005, 01:54 PM
|
#10 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
Omegatron - many thanks for your help and taking a look. Quote: |
Originally Posted by omegatron If your going to run Classifieds with Personals being the only template your going to run then you must rename For Sale to Personals and copy your Personals templates to the regular template names and adjust the main language file. | When you said 'and adjust the main language file' are you referring to english.php? I suppose if I do what you've said I should do (overwrite forsale templates with the contents of the personals templates) It shpould be obvious to me if there's any other bits of the language file that I may need to change.
In a web browser /showcat.php... the 'sort by' selection is a drop down list which contains 'product title'. I'd like to change this - where do I find this piece of text to change?
|
| |
July 27th, 2005, 01:57 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
Just do what my post above says to do and you dont have to edit anything further
|
| |
July 27th, 2005, 02:16 PM
|
#12 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
Cool - you edited your post whilst I was typing my reply.
You said to look for:
list( $pptemplate, $adtype ) = mysql_fetch_row($adtypes);
ppmysql_free_result($adtypes);
I assume you meant to type look for:
list( $pptemplate ) = mysql_fetch_row($adtypes);
ppmysql_free_result($adtypes);
I'm very happy to say it works!!! Thank you very much!!!
|
| |
July 27th, 2005, 03:03 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,947
|
Yep changed my post above just a typo as I fixed the code and then posted the fix here and modified the original line LOL
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 01:11 AM. | |