Attach Files Problem

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

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

Post by Thorsten »

Hi,

please enable the DEBUG MODE in attachment.php in the admin/ directory and post the output here.

thanks
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jmao
Posts: 17
Joined: Fri Jan 09, 2004 5:19 am

DEBUG output

Post by jmao »

Where do I find the output? I've enabled debug, but I don't see much of anything in the Admin log?
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you resize the popup window greater?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jmao
Posts: 17
Joined: Fri Jan 09, 2004 5:19 am

Found it

Post by jmao »

The output is after the </html> tag, so it doesn't render on the page,...but in the source I find:

<p>DELETE FROM faqadminsessions WHERE TIME<'1078833489'<br>
SELECT user, pass FROM faqadminsessions WHERE UIN='6b0c793e3b54acd79173d1815573d168' AND ip = '24.198.4.185'<br>
UPDATE faqadminsessions SET TIME='1078835289' WHERE UIN='6b0c793e3b54acd79173d1815573d168'<br>
SELECT ID,NAME,PASS FROM faquser WHERE name = 'admin' AND PASS = '7e69be3ff24f6b2f6ec8ae6eb555352a'<br>
SELECT faquser.rights, faqrights.id FROM faquser, faqrights WHERE faquser.ID = '1' AND faqrights.SHORT = 'addatt'<br>
</p><p>5 Queries executed</p>
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

no other output and the attachment isn't uploaded?

Have you access to your error.log from your Apache?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jmao
Posts: 17
Joined: Fri Jan 09, 2004 5:19 am

Log

Post by jmao »

No other output, and no attachment. In the error_log, I see:

[Tue Mar 9 07:30:38 2004] [error] PHP Notice: Array to string conversion in /Library/WebServer/Main/kbase/inc/functions.php on line 38
[Tue Mar 9 07:30:52 2004] [error] PHP Notice: Array to string conversion in /Library/WebServer/Main/kbase/inc/functions.php on line 35
[Tue Mar 9 07:30:52 2004] [error] PHP Notice: Array to string conversion in /Library/WebServer/Main/kbase/inc/functions.php on line 38
[Tue Mar 9 07:30:52 2004] [error] PHP Notice: Array to string conversion in /Library/WebServer/Main/kbase/inc/functions.php on line 38
[Tue Mar 9 07:32:51 2004] [error] PHP Notice: Array to string conversion in /Library/WebServer/Main/kbase/inc/functions.php on line 38
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you've got an old functions.php file from 1.3.9. Please use the functions.php from 1.3.11 RC1 and tell me if it works...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jmao
Posts: 17
Joined: Fri Jan 09, 2004 5:19 am

functions.php

Post by jmao »

When I replace the functions.php in inc with the one from the 1.3.11 download, I can't load any pages,...juts get a blank page,...given you think my functions is a 1.3.9 functions.php file, I'll take some time today and verify all code is the current stable 1.3.10 (in Edit Configurations, it lists 1.3.10).

Thanks for all the help,...I'll check in when I've verified I've got all new code,...

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

Post by Thorsten »

Hi Jeff,

okay!

thanks
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jmao
Posts: 17
Joined: Fri Jan 09, 2004 5:19 am

All is well,...

Post by jmao »

I'm not sure how or what files were not current,...I've replaced all the files from a fresh download and now the attachments are working fine,...at least you know it's not an OS X issue,..although if you have the cash,...I'd get one anyway,...they're just more fun :-)

Thanks for the help!

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

Post by Thorsten »

Hi Jeff,

okay!

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