pdf error

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
gadjodilo
Posts: 30
Joined: Fri May 21, 2004 1:12 pm

pdf error

Post by gadjodilo »

Hello
when I try to open an answer in acrobat reader as pdf I get the following error messages:

Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 32006 is not allowed to access /home/energiei/public_html/faq/pdf owned by uid 99 in /home/energiei/public_html/faq/inc/fpdf.php on line 1044

Warning: fopen(pdf/1.pdf): failed to open stream: No such file or directory in /home/energiei/public_html/faq/inc/fpdf.php on line 1044
FPDF error: Unable to create output file: pdf/1.pdf.

Does anybody know how to solve this problem?
Thank you in advance,

Kabbi

(cool FAQsystem by the way!!)
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

do you have SSH access?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
gadjodilo
Posts: 30
Joined: Fri May 21, 2004 1:12 pm

ssh acces

Post by gadjodilo »

Can you perhaps explain me what ssh acces is? :oops:
gadjodilo
Posts: 30
Joined: Fri May 21, 2004 1:12 pm

one more thing

Post by gadjodilo »

one more thing; if I click on the link, HELP, I get back to the start page.......... Can someone tell me where I can fix this? And It does also not show how many users there are online....

Bye

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

Post by Thorsten »

Hi,

could you please show me your page?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
gadjodilo
Posts: 30
Joined: Fri May 21, 2004 1:12 pm

Post by gadjodilo »

Hello,
it now shows how many users there are online :D . But the pdf and help page isn't still working properly. And suddenly when I go to my page I get some different errors like: Warning: fopen(./data/tracking22052004): failed to open stream: Permission denied in /home/energiei/public_html/faq/inc/functions.php on line 393

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: fclose(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 400

Very strange, :?:
You can look at my page here; http://www.energie-info.nl/faq/index.php

thank you
gadjodilo
Posts: 30
Joined: Fri May 21, 2004 1:12 pm

pdf/help

Post by gadjodilo »

Oke about the errors I got when I entered my page:

Warning: fopen(./data/tracking22052004): failed to open stream: Permission denied in /home/energiei/public_html/faq/inc/functions.php on line 393

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: flock(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 395

Warning: fclose(): supplied argument is not a valid stream resource in /home/energiei/public_html/faq/inc/functions.php on line 400

I changed the permissions on faq/data with 0777 (this is good right?) and it is working again now! :wink:
Except the pdf and help page they are still not working properly.
http://www.energie-info.nl/faq/index.php .
Bye :D
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

please give the directory /pdf the permissions 0777, too.

A fix for the help page:

Open index.php and change line 105 to:

Code: Select all

$allowedVariables = array("add" => 1, "kontakt" => 1, "mailsend2friend" => 1, "save" => 1, "savevoting" => 1, "sendmail" => 1, "writecomment" => 1, "artikel" => 1, "hilfe" => 1, "savecomment" => 1, "search" => 1, "anzeigen" => 1, "xml" => 1, "ask" => 1, "open" => 1, "savequestion" => 1, "send2friend" => 1);
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
gadjodilo
Posts: 30
Joined: Fri May 21, 2004 1:12 pm

pdf, date

Post by gadjodilo »

Thank you the help page is working properly now!
The pdf still isn't working, however I've another question. I want to display the news on a different site (on the main page of my site).
As you can see at http://www.energie-info.nl/home1.php the date isn't showing properly... do you know a way to fix this? (And perhaps how I can make the newslinks work?).
This is the code i use now:

<?php require_once('Cnnections/energieinf.php'); ?>
<?php require_once('Cnnections/energieinf.php'); ?>
<?php
$maxRows_nieuws = 4;
$pageNum_nieuws = 0;
if (isset($_GET['pageNum_nieuws'])) {
$pageNum_nieuws = $_GET['pageNum_nieuws'];
}
$startRow_nieuws = $pageNum_nieuws * $maxRows_nieuws;

mysql_select_db($database_energieinf, $energieinf);
$query_nieuws = "SELECT * FROM faqnews ORDER BY id DESC";
$query_limit_nieuws = sprintf("%s LIMIT %d, %d", $query_nieuws, $startRow_nieuws, $maxRows_nieuws);
$nieuws = mysql_query($query_limit_nieuws, $energieinf) or die(mysql_error());
$row_nieuws = mysql_fetch_assoc($nieuws);

if (isset($_GET['totalRows_nieuws'])) {
$totalRows_nieuws = $_GET['totalRows_nieuws'];
} else {
$all_nieuws = mysql_query($query_nieuws);
$totalRows_nieuws = mysql_num_rows($all_nieuws);
}
$totalPages_nieuws = ceil($totalRows_nieuws/$maxRows_nieuws)-1;
?>


and then further:

<?php do { ?>
<p><strong><?php echo $row_nieuws['header']; ?><br />
</strong><?php echo $row_nieuws['artikel']; ?><br />
<?php echo $row_nieuws['datum']; ?><br />
<a href="a.htm"><?php echo $row_nieuws['link']; ?></a> </p>
<?php } while ($row_nieuws = mysql_fetch_assoc($nieuws)); ?>

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

Post by Thorsten »

Look for the function makeDate() inside functions.php and include this function in your code.

I'll look for an solution for your PDF problem.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
gadjodilo
Posts: 30
Joined: Fri May 21, 2004 1:12 pm

Post by gadjodilo »

Oke I'll try, and thankz!
Post Reply