Export PDF not working

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Aber28
Posts: 3
Joined: Wed Apr 30, 2014 9:47 am

Export PDF not working

Post by Aber28 »

Hi all,

I just started using the phpMyFAQ 2 months ago since I would have needed to export the content of the FAQs to PDF. I have created all my FAQ Articles and today I tried to export them....I got only 2 blank pages.

Would someone be so kind and help me out here?

Thanks a lot guys.
Aber28
Posts: 3
Joined: Wed Apr 30, 2014 9:47 am

Re: Export PDF not working

Post by Aber28 »

While messing around with the "Group Permissions" I noticed that when I select "Access for all groups" I am then able to export it to PDF.

Am I doing something wrong here?
Last edited by Aber28 on Wed May 14, 2014 1:27 pm, edited 1 time in total.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Export PDF not working

Post by Thorsten »

Hi,

which version do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Aber28
Posts: 3
Joined: Wed Apr 30, 2014 9:47 am

Re: Export PDF not working

Post by Aber28 »

I am using the latest version.

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

Re: Export PDF not working

Post by Thorsten »

Hi,

does the user have the right to export stuff?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
shinebar
Posts: 3
Joined: Mon May 12, 2014 6:19 am

Re: Export PDF not working

Post by shinebar »

I think that's exactly one of the Errors I mentioned here. User having Export-rights, but category or FAQ restricted results in a non-functional Export, I can confirm this.
hello_kitty
Posts: 3
Joined: Tue May 20, 2014 1:36 pm

Re: Export PDF not working

Post by hello_kitty »

In my case I have all rights and still can't export pdf.
______________________________________________________
cheap lpg conversion. dietitians, Imposition Software, restaurant krakow, wieliczka salt mine
Last edited by hello_kitty on Fri May 23, 2014 2:08 pm, edited 1 time in total.
rocky
Posts: 2
Joined: Thu May 15, 2014 9:00 pm

Re: Export PDF not working

Post by rocky »

I am having the same problem. I have permission to export, however only my public category will show in the list and export. I did play around a little bit and found that if I changed a line in two files, I could get it to export what I wanted. However, it also listed all the categories in the table of contents (it only exported what I requested though).

The changes I made were as follows:

in admin/export.main.php
changed line 35 from

Code: Select all

        $category = new PMF_Category($faqConfig);
to

Code: Select all

        $category = new PMF_Category($faqConfig, array(), false);
in admin/export.file.php made the same change on line 44.

Haven't tested it completely to see what else that may break, but so far it appears to be an okay work around for me for the moment.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Export PDF not working

Post by Thorsten »

Hi,

the workaround is correct, I'll fix it for 2.8.10

Thanks!

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