Search doesn't work

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
brandx
Posts: 4
Joined: Sun Nov 30, 2003 9:16 am

Search doesn't work

Post by brandx »

Hi all

First let me say, excellent application :) i like it

I have three issues.

1. Search never returns any results.. i've entered keywords and have searched using those key words.... any ideas?

2. when viewing an faq and exporting it to PDF.. it works as long as there is only text.. some of my faqs have images and i get the following error

Warning: filesize(): Stat failed for http://www.wildlifeinthecity.com/faq/im ... oon001.jpg (errno=2 - No such file or directory) in /hsphere/local/home/iwsiw/wildlifeinthecity.com/faq/inc/fpdf.php on line 1432

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/iwsiw/wildlifeinthecity.com/faq/inc/fpdf.php:1432) in /hsphere/local/home/iwsiw/wildlifeinthecity.com/faq/pdf.php on line 285


3. I the admin section... when trying to attach a file i get the following error:

Warning: move_uploaded_file(../attachments/2/router base-information.txt): failed to open stream: Permission denied in /hsphere/local/home/iwsiw/wildlifeinthecity.com/faq/admin/attachment.php on line 168

Warning: move_uploaded_file(): Unable to move '/tmp/phpZ2BHEA' to '../attachments/2/router base-information.txt' in /hsphere/local/home/iwsiw/wildlifeinthecity.com/faq/admin/attachment.php on line 168
An error occured while attaching the file.

I seen another post that was in german... as far as i could tell it was mentioning to check that the permissions are set to 777 on the attachments directory....

I'm running version phpMyFAQ 1.3.9

TIA
Geary
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Geary!

1. You have to add at least 5 entries then the search will work.

2. This is a little problem. Put the pictures in the directory images/ of the FAQ and link them from this and it should work.

3. This is a mod_php problem. Set the directory to 777 and it should work.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
brandx
Posts: 4
Joined: Sun Nov 30, 2003 9:16 am

re: search doesn't work

Post by brandx »

Ok, the search is working :)


The PDF generation and attachment are still not working.... i'll keep messing with it.....


One other question...

Is there a way i can get the faq listing to appear on one line?

Like this
What do raccoons look like? (16 views)

Instead of like this
What do raccoons look like? [en]
(16 views)

My implementation of this FAQ will only use english.... so it's kinda pointless to specify [en] and the (16 views) is using valuable page realestate :)

Cheers,
Geary
brandx
Posts: 4
Joined: Sun Nov 30, 2003 9:16 am

oops...

Post by brandx »

almost forgot..


the cell background color on the main faq page for the "Top 10" and "5 most recently posted" is black... i can't figure out where to change the color ...

geary
brandx
Posts: 4
Joined: Sun Nov 30, 2003 9:16 am

got it :)

Post by brandx »

Never mind..

I figured out the cell background color and geting the faq entries and number of view to applear on one line.... also got rid of the [en] :)

still having problems with the pdf generation if there is an image.....



Cheers,
Geary
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

the pdfs cannot be created when the image isn't on the same server. Put the images e.g. in the directory image and link them in your record. Then the image should appear in the pdf file.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply