[Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

[Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Cloutier, Philippe (DGARI-Consultant)

Hi Jean-Marc,

This means the curl extension is missing. The broken error reporting should be fixed with r63112.

 

De : Jean-Marc Libs [mailto:[hidden email]]
Envoyé : 28 juin 2017 20:10
À : Tiki developers <[hidden email]>
Objet : Re: [Tiki-devel] Testing Tiki main sites !!

 

I tried the instructions on dev.tiki.org but then I tried to produce a pdf from https://dev.tiki.org/Tiki18 and I get on https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf with an WSOD.

The error log says:
2017/06/29 02:04:11 [error] 2368#2368: *6940309 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message 'reporterror library not found. This may be due to a typo or caused by a recent update.' in /var/local/dev.tiki.org/www/lib/tikilib.php:80
Stack trace:
#0 /var/local/dev.tiki.org/www/lib/pdflib.php(259): TikiLib::lib('reporterror')
#1 /var/local/dev.tiki.org/www/lib/pdflib.php(122): PdfGenerator->mpdf('https://dev.tik...', '<div id="rbox_1...', Array)
#2 /var/local/dev.tiki.org/www/tiki-print.php(117): PdfGenerator->getPdf('tiki-print.php', Array, '<div id="rbox_1...')
#3 {main}
  thrown in /var/local/dev.tiki.org/www/lib/tikilib.php on line 80" while reading response header from upstream, client: 90.126.67.154, server: dev.tiki.org, request: "GET /tiki-print.php?page=Tiki18&display=pdf HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dev.tiki.org", referrer: "https://dev.tiki.org/Tiki18"

Same on any page I experiment on :-(

 

Anyone has insight?

 

Jyhem

 

On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte <[hidden email]> wrote:

Hi Bernard,

I didn't notice any bugs in my tests. Congrats!

Would it be possible to run the Composer command to install mPDF?
(needs to be done on each Tiki)
https://doc.tiki.org/mPDF#Tiki_17

Thanks!




On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez <[hidden email]> wrote:
> Hello Tikiers,
>
> We’ve moved all our main sites to Tiki17 and we need people to test and
> report so we can release Tiki 17.
>
> The more the test they will be, the more Tiki 17 will be another great
> release.
> If everyone take 10mn to do the usual things he does on one of our main
> sites they will be thousands of features, options and setting that will be
> micro-tested.
>
> This QA is a huge apport to the release.
>
> Thanks to test and report.
>
> Bernard Sfez | bsfez.com
>
>

> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>



--
Marc Laporte

http://WikiSuite.org
http://PluginProblems.com
http://Avan.Tech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Jonny Bradley-4

Nice catch, thanks Chealer :)

jonny



> On 29 Jun 2017, at 14:47, Cloutier, Philippe (DGARI-Consultant) <[hidden email]> wrote:
>
> Hi Jean-Marc,
> This means the curl extension is missing. The broken error reporting should be fixed with r63112.
>  
>> De : Jean-Marc Libs [mailto:[hidden email]]
>> Envoyé : 28 juin 2017 20:10
>> À : Tiki developers <[hidden email]>
>> Objet : Re: [Tiki-devel] Testing Tiki main sites !!
>>  
>> I tried the instructions on dev.tiki.org but then I tried to produce a pdf from https://dev.tiki.org/Tiki18 and I get on https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf with an WSOD.
>>
>> The error log says:
>> 2017/06/29 02:04:11 [error] 2368#2368: *6940309 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message 'reporterror library not found. This may be due to a typo or caused by a recent update.' in /var/local/dev.tiki.org/www/lib/tikilib.php:80
>> Stack trace:
>> #0 /var/local/dev.tiki.org/www/lib/pdflib.php(259): TikiLib::lib('reporterror')
>> #1 /var/local/dev.tiki.org/www/lib/pdflib.php(122): PdfGenerator->mpdf('https://dev.tik...', '<div id="rbox_1...', Array)
>> #2 /var/local/dev.tiki.org/www/tiki-print.php(117): PdfGenerator->getPdf('tiki-print.php', Array, '<div id="rbox_1...')
>> #3 {main}
>>   thrown in /var/local/dev.tiki.org/www/lib/tikilib.php on line 80" while reading response header from upstream, client: 90.126.67.154, server: dev.tiki.org, request: "GET /tiki-print.php?page=Tiki18&display=pdf HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dev.tiki.org", referrer: "https://dev.tiki.org/Tiki18"
>>
>> Same on any page I experiment on :-(
>>  
>> Anyone has insight?
>>  
>> Jyhem
>>  
>> On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte <[hidden email]> wrote:
>> Hi Bernard,
>>
>> I didn't notice any bugs in my tests. Congrats!
>>
>> Would it be possible to run the Composer command to install mPDF?
>> (needs to be done on each Tiki)
>> https://doc.tiki.org/mPDF#Tiki_17
>>
>> Thanks!
>>
>>
>>
>> On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez <[hidden email]> wrote:
>>> > Hello Tikiers,
>>> >
>>> > We’ve moved all our main sites to Tiki17 and we need people to test and
>>> > report so we can release Tiki 17.
>>> >
>>> > The more the test they will be, the more Tiki 17 will be another great
>>> > release.
>>> > If everyone take 10mn to do the usual things he does on one of our main
>>> > sites they will be thousands of features, options and setting that will be
>>> > micro-tested.
>>> >
>>> > This QA is a huge apport to the release.
>>> >
>>> > Thanks to test and report.
>>> >
>>> > Bernard Sfez | bsfez.com
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Check out the vibrant tech community on one of the world's most
>>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> > _______________________________________________
>>> > TikiWiki-devel mailing list
>>> > [hidden email]
>>> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>> >
>>
>>
>>
>> --
>> Marc Laporte
>>
>> http://WikiSuite.org
>> http://PluginProblems.com
>> http://Avan.Tech
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>  
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Jean-Marc Libs
In reply to this post by Cloutier, Philippe (DGARI-Consultant)
Hi Philippe, thanks,

Now I manage to create and download a pdf file, but it's an empty zero-sized file. :-(
There is nothing in the error log any more.

I trust you that the curl extension is missing, but the current situation is bad: users have no way of understanding what is wrong.

Ahhh, when I move to another page or I reload the same page which just failed to be exported as pdf, I see the top-page feedback box which contains "mPDF: cURL PHP extension not available"
This is progress but it shows too late for people to understand it is related :-(

Could we improve on this? For instance fill "mPDF: cURL PHP extension not available" in place of the pdf content?

Cheers,
Jyhem

On Thu, Jun 29, 2017 at 3:47 PM, Cloutier, Philippe (DGARI-Consultant) <[hidden email]> wrote:

Hi Jean-Marc,

This means the curl extension is missing. The broken error reporting should be fixed with r63112.

 

De : Jean-Marc Libs [mailto:[hidden email]]
Envoyé : 28 juin 2017 20:10
À : Tiki developers <[hidden email]>
Objet : Re: [Tiki-devel] Testing Tiki main sites !!

 

I tried the instructions on dev.tiki.org but then I tried to produce a pdf from https://dev.tiki.org/Tiki18 and I get on https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf with an WSOD.

The error log says:
2017/06/29 02:04:11 [error] 2368#2368: *6940309 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message 'reporterror library not found. This may be due to a typo or caused by a recent update.' in /var/local/dev.tiki.org/www/lib/tikilib.php:80
Stack trace:
#0 /var/local/dev.tiki.org/www/lib/pdflib.php(259): TikiLib::lib('reporterror')
#1 /var/local/dev.tiki.org/www/lib/pdflib.php(122): PdfGenerator->mpdf('https://dev.tik...', '<div id="rbox_1...', Array)
#2 /var/local/dev.tiki.org/www/tiki-print.php(117): PdfGenerator->getPdf('tiki-print.php', Array, '<div id="rbox_1...')
#3 {main}
  thrown in /var/local/dev.tiki.org/www/lib/tikilib.php on line 80" while reading response header from upstream, client: 90.126.67.154, server: dev.tiki.org, request: "GET /tiki-print.php?page=Tiki18&display=pdf HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dev.tiki.org", referrer: "https://dev.tiki.org/Tiki18"

Same on any page I experiment on :-(

 

Anyone has insight?

 

Jyhem

 

On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte <[hidden email]> wrote:

Hi Bernard,

I didn't notice any bugs in my tests. Congrats!

Would it be possible to run the Composer command to install mPDF?
(needs to be done on each Tiki)
https://doc.tiki.org/mPDF#Tiki_17

Thanks!




On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez <[hidden email]> wrote:
> Hello Tikiers,
>
> We’ve moved all our main sites to Tiki17 and we need people to test and
> report so we can release Tiki 17.
>
> The more the test they will be, the more Tiki 17 will be another great
> release.
> If everyone take 10mn to do the usual things he does on one of our main
> sites they will be thousands of features, options and setting that will be
> micro-tested.
>
> This QA is a huge apport to the release.
>
> Thanks to test and report.
>
> Bernard Sfez | bsfez.com
>
>

> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>



--
Marc Laporte

http://WikiSuite.org
http://PluginProblems.com
http://Avan.Tech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Marc Laporte-3
Yes, Jean-Marc

I just assigned this as a learning task to a new developer. Consider it done.

It will be added to the admin panel (where you set mPDF) and to tiki-check.php

Thanks!

On Thu, Jun 29, 2017 at 6:31 PM, Jean-Marc Libs <[hidden email]> wrote:

> Hi Philippe, thanks,
>
> Now I manage to create and download a pdf file, but it's an empty zero-sized
> file. :-(
> There is nothing in the error log any more.
>
> I trust you that the curl extension is missing, but the current situation is
> bad: users have no way of understanding what is wrong.
>
> Ahhh, when I move to another page or I reload the same page which just
> failed to be exported as pdf, I see the top-page feedback box which contains
> "mPDF: cURL PHP extension not available"
> This is progress but it shows too late for people to understand it is
> related :-(
>
> Could we improve on this? For instance fill "mPDF: cURL PHP extension not
> available" in place of the pdf content?
>
> Cheers,
> Jyhem
>
> On Thu, Jun 29, 2017 at 3:47 PM, Cloutier, Philippe (DGARI-Consultant)
> <[hidden email]> wrote:
>>
>> Hi Jean-Marc,
>>
>> This means the curl extension is missing. The broken error reporting
>> should be fixed with r63112.
>>
>>
>>
>> De : Jean-Marc Libs [mailto:[hidden email]]
>> Envoyé : 28 juin 2017 20:10
>> À : Tiki developers <[hidden email]>
>> Objet : Re: [Tiki-devel] Testing Tiki main sites !!
>>
>>
>>
>> I tried the instructions on dev.tiki.org but then I tried to produce a pdf
>> from https://dev.tiki.org/Tiki18 and I get on
>> https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf with an WSOD.
>>
>> The error log says:
>> 2017/06/29 02:04:11 [error] 2368#2368: *6940309 FastCGI sent in stderr:
>> "PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message
>> 'reporterror library not found. This may be due to a typo or caused by a
>> recent update.' in /var/local/dev.tiki.org/www/lib/tikilib.php:80
>> Stack trace:
>> #0 /var/local/dev.tiki.org/www/lib/pdflib.php(259):
>> TikiLib::lib('reporterror')
>> #1 /var/local/dev.tiki.org/www/lib/pdflib.php(122):
>> PdfGenerator->mpdf('https://dev.tik...', '<div id="rbox_1...', Array)
>> #2 /var/local/dev.tiki.org/www/tiki-print.php(117):
>> PdfGenerator->getPdf('tiki-print.php', Array, '<div id="rbox_1...')
>> #3 {main}
>>   thrown in /var/local/dev.tiki.org/www/lib/tikilib.php on line 80" while
>> reading response header from upstream, client: 90.126.67.154, server:
>> dev.tiki.org, request: "GET /tiki-print.php?page=Tiki18&display=pdf
>> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dev.tiki.org",
>> referrer: "https://dev.tiki.org/Tiki18"
>>
>> Same on any page I experiment on :-(
>>
>>
>>
>> Anyone has insight?
>>
>>
>>
>> Jyhem
>>
>>
>>
>> On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte <[hidden email]>
>> wrote:
>>
>> Hi Bernard,
>>
>> I didn't notice any bugs in my tests. Congrats!
>>
>> Would it be possible to run the Composer command to install mPDF?
>> (needs to be done on each Tiki)
>> https://doc.tiki.org/mPDF#Tiki_17
>>
>> Thanks!
>>
>>
>>
>>
>> On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez <[hidden email]> wrote:
>> > Hello Tikiers,
>> >
>> > We’ve moved all our main sites to Tiki17 and we need people to test and
>> > report so we can release Tiki 17.
>> >
>> > The more the test they will be, the more Tiki 17 will be another great
>> > release.
>> > If everyone take 10mn to do the usual things he does on one of our main
>> > sites they will be thousands of features, options and setting that will
>> > be
>> > micro-tested.
>> >
>> > This QA is a huge apport to the release.
>> >
>> > Thanks to test and report.
>> >
>> > Bernard Sfez | bsfez.com
>> >
>> >
>>
>> >
>> > ------------------------------------------------------------------------------
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > _______________________________________________
>> > TikiWiki-devel mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>> >
>>
>>
>>
>> --
>> Marc Laporte
>>
>> http://WikiSuite.org
>> http://PluginProblems.com
>> http://Avan.Tech
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>



--
Marc Laporte

http://WikiSuite.org
http://PluginProblems.com
http://Avan.Tech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Amna Usman
Hi,

Sorry guys I was away for few days. We are not using CURL anymore for mpdf. 

CURL was being used previously to fetch data, now parsed data is being passed by tiki-print.php. 

My bad, I didn't remove the check while cleaning code. Will remove the check and commit in a while. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 3:54 AM, Marc Laporte <[hidden email]> wrote:
Yes, Jean-Marc

I just assigned this as a learning task to a new developer. Consider it done.

It will be added to the admin panel (where you set mPDF) and to tiki-check.php

Thanks!

On Thu, Jun 29, 2017 at 6:31 PM, Jean-Marc Libs <[hidden email]> wrote:
> Hi Philippe, thanks,
>
> Now I manage to create and download a pdf file, but it's an empty zero-sized
> file. :-(
> There is nothing in the error log any more.
>
> I trust you that the curl extension is missing, but the current situation is
> bad: users have no way of understanding what is wrong.
>
> Ahhh, when I move to another page or I reload the same page which just
> failed to be exported as pdf, I see the top-page feedback box which contains
> "mPDF: cURL PHP extension not available"
> This is progress but it shows too late for people to understand it is
> related :-(
>
> Could we improve on this? For instance fill "mPDF: cURL PHP extension not
> available" in place of the pdf content?
>
> Cheers,
> Jyhem
>
> On Thu, Jun 29, 2017 at 3:47 PM, Cloutier, Philippe (DGARI-Consultant)
> <[hidden email]> wrote:
>>
>> Hi Jean-Marc,
>>
>> This means the curl extension is missing. The broken error reporting
>> should be fixed with r63112.
>>
>>
>>
>> De : Jean-Marc Libs [mailto:[hidden email]]
>> Envoyé : 28 juin 2017 20:10
>> À : Tiki developers <[hidden email]>
>> Objet : Re: [Tiki-devel] Testing Tiki main sites !!
>>
>>
>>
>> I tried the instructions on dev.tiki.org but then I tried to produce a pdf
>> from https://dev.tiki.org/Tiki18 and I get on
>> https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf with an WSOD.
>>
>> The error log says:
>> 2017/06/29 02:04:11 [error] 2368#2368: *6940309 FastCGI sent in stderr:
>> "PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message
>> 'reporterror library not found. This may be due to a typo or caused by a
>> recent update.' in /var/local/dev.tiki.org/www/lib/tikilib.php:80
>> Stack trace:
>> #0 /var/local/dev.tiki.org/www/lib/pdflib.php(259):
>> TikiLib::lib('reporterror')
>> #1 /var/local/dev.tiki.org/www/lib/pdflib.php(122):
>> PdfGenerator->mpdf('https://dev.tik...', '<div id="rbox_1...', Array)
>> #2 /var/local/dev.tiki.org/www/tiki-print.php(117):
>> PdfGenerator->getPdf('tiki-print.php', Array, '<div id="rbox_1...')
>> #3 {main}
>>   thrown in /var/local/dev.tiki.org/www/lib/tikilib.php on line 80" while
>> reading response header from upstream, client: 90.126.67.154, server:
>> dev.tiki.org, request: "GET /tiki-print.php?page=Tiki18&display=pdf
>> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dev.tiki.org",
>> referrer: "https://dev.tiki.org/Tiki18"
>>
>> Same on any page I experiment on :-(
>>
>>
>>
>> Anyone has insight?
>>
>>
>>
>> Jyhem
>>
>>
>>
>> On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte <[hidden email]>
>> wrote:
>>
>> Hi Bernard,
>>
>> I didn't notice any bugs in my tests. Congrats!
>>
>> Would it be possible to run the Composer command to install mPDF?
>> (needs to be done on each Tiki)
>> https://doc.tiki.org/mPDF#Tiki_17
>>
>> Thanks!
>>
>>
>>
>>
>> On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez <[hidden email]> wrote:
>> > Hello Tikiers,
>> >
>> > We’ve moved all our main sites to Tiki17 and we need people to test and
>> > report so we can release Tiki 17.
>> >
>> > The more the test they will be, the more Tiki 17 will be another great
>> > release.
>> > If everyone take 10mn to do the usual things he does on one of our main
>> > sites they will be thousands of features, options and setting that will
>> > be
>> > micro-tested.
>> >
>> > This QA is a huge apport to the release.
>> >
>> > Thanks to test and report.
>> >
>> > Bernard Sfez | bsfez.com
>> >
>> >
>>
>> >
>> > ------------------------------------------------------------------------------
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > _______________________________________________
>> > TikiWiki-devel mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>> >
>>
>>
>>
>> --
>> Marc Laporte
>>
>> http://WikiSuite.org
>> http://PluginProblems.com
>> http://Avan.Tech
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>



--
Marc Laporte

http://WikiSuite.org
http://PluginProblems.com
http://Avan.Tech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Amna Usman
Done. Revision: 63119
          http://sourceforge.net/p/tikiwiki/code/63119

Please cross check, it should work on servers without CURL. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 12:46 PM, Amna Usman <[hidden email]> wrote:
Hi,

Sorry guys I was away for few days. We are not using CURL anymore for mpdf. 

CURL was being used previously to fetch data, now parsed data is being passed by tiki-print.php. 

My bad, I didn't remove the check while cleaning code. Will remove the check and commit in a while. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 3:54 AM, Marc Laporte <[hidden email]> wrote:
Yes, Jean-Marc

I just assigned this as a learning task to a new developer. Consider it done.

It will be added to the admin panel (where you set mPDF) and to tiki-check.php

Thanks!

On Thu, Jun 29, 2017 at 6:31 PM, Jean-Marc Libs <[hidden email]> wrote:
> Hi Philippe, thanks,
>
> Now I manage to create and download a pdf file, but it's an empty zero-sized
> file. :-(
> There is nothing in the error log any more.
>
> I trust you that the curl extension is missing, but the current situation is
> bad: users have no way of understanding what is wrong.
>
> Ahhh, when I move to another page or I reload the same page which just
> failed to be exported as pdf, I see the top-page feedback box which contains
> "mPDF: cURL PHP extension not available"
> This is progress but it shows too late for people to understand it is
> related :-(
>
> Could we improve on this? For instance fill "mPDF: cURL PHP extension not
> available" in place of the pdf content?
>
> Cheers,
> Jyhem
>
> On Thu, Jun 29, 2017 at 3:47 PM, Cloutier, Philippe (DGARI-Consultant)
> <[hidden email]> wrote:
>>
>> Hi Jean-Marc,
>>
>> This means the curl extension is missing. The broken error reporting
>> should be fixed with r63112.
>>
>>
>>
>> De : Jean-Marc Libs [mailto:[hidden email]]
>> Envoyé : 28 juin 2017 20:10
>> À : Tiki developers <[hidden email]>
>> Objet : Re: [Tiki-devel] Testing Tiki main sites !!
>>
>>
>>
>> I tried the instructions on dev.tiki.org but then I tried to produce a pdf
>> from https://dev.tiki.org/Tiki18 and I get on
>> https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf with an WSOD.
>>
>> The error log says:
>> 2017/06/29 02:04:11 [error] 2368#2368: *6940309 FastCGI sent in stderr:
>> "PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message
>> 'reporterror library not found. This may be due to a typo or caused by a
>> recent update.' in /var/local/dev.tiki.org/www/lib/tikilib.php:80
>> Stack trace:
>> #0 /var/local/dev.tiki.org/www/lib/pdflib.php(259):
>> TikiLib::lib('reporterror')
>> #1 /var/local/dev.tiki.org/www/lib/pdflib.php(122):
>> PdfGenerator->mpdf('https://dev.tik...', '<div id="rbox_1...', Array)
>> #2 /var/local/dev.tiki.org/www/tiki-print.php(117):
>> PdfGenerator->getPdf('tiki-print.php', Array, '<div id="rbox_1...')
>> #3 {main}
>>   thrown in /var/local/dev.tiki.org/www/lib/tikilib.php on line 80" while
>> reading response header from upstream, client: 90.126.67.154, server:
>> dev.tiki.org, request: "GET /tiki-print.php?page=Tiki18&display=pdf
>> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dev.tiki.org",
>> referrer: "https://dev.tiki.org/Tiki18"
>>
>> Same on any page I experiment on :-(
>>
>>
>>
>> Anyone has insight?
>>
>>
>>
>> Jyhem
>>
>>
>>
>> On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte <[hidden email]>
>> wrote:
>>
>> Hi Bernard,
>>
>> I didn't notice any bugs in my tests. Congrats!
>>
>> Would it be possible to run the Composer command to install mPDF?
>> (needs to be done on each Tiki)
>> https://doc.tiki.org/mPDF#Tiki_17
>>
>> Thanks!
>>
>>
>>
>>
>> On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez <[hidden email]> wrote:
>> > Hello Tikiers,
>> >
>> > We’ve moved all our main sites to Tiki17 and we need people to test and
>> > report so we can release Tiki 17.
>> >
>> > The more the test they will be, the more Tiki 17 will be another great
>> > release.
>> > If everyone take 10mn to do the usual things he does on one of our main
>> > sites they will be thousands of features, options and setting that will
>> > be
>> > micro-tested.
>> >
>> > This QA is a huge apport to the release.
>> >
>> > Thanks to test and report.
>> >
>> > Bernard Sfez | bsfez.com
>> >
>> >
>>
>> >
>> > ------------------------------------------------------------------------------
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > _______________________________________________
>> > TikiWiki-devel mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>> >
>>
>>
>>
>> --
>> Marc Laporte
>>
>> http://WikiSuite.org
>> http://PluginProblems.com
>> http://Avan.Tech
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>



--
Marc Laporte

http://WikiSuite.org
http://PluginProblems.com
http://Avan.Tech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Torsten Fabricius-4
Thx Amna!

Regards,
Torsten

On 30.06.2017 09:53, Amna Usman wrote:
Done. Revision: 63119
          http://sourceforge.net/p/tikiwiki/code/63119

Please cross check, it should work on servers without CURL. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 12:46 PM, Amna Usman <[hidden email]> wrote:
Hi,

Sorry guys I was away for few days. We are not using CURL anymore for mpdf. 

CURL was being used previously to fetch data, now parsed data is being passed by tiki-print.php. 

My bad, I didn't remove the check while cleaning code. Will remove the check and commit in a while. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 3:54 AM, Marc Laporte <[hidden email]> wrote:
Yes, Jean-Marc

I just assigned this as a learning task to a new developer. Consider it done.

It will be added to the admin panel (where you set mPDF) and to tiki-check.php

Thanks!

On Thu, Jun 29, 2017 at 6:31 PM, Jean-Marc Libs <[hidden email]> wrote:
> Hi Philippe, thanks,
>
> Now I manage to create and download a pdf file, but it's an empty zero-sized
> file. :-(
> There is nothing in the error log any more.
>
> I trust you that the curl extension is missing, but the current situation is
> bad: users have no way of understanding what is wrong.
>
> Ahhh, when I move to another page or I reload the same page which just
> failed to be exported as pdf, I see the top-page feedback box which contains
> "mPDF: cURL PHP extension not available"
> This is progress but it shows too late for people to understand it is
> related :-(
>
> Could we improve on this? For instance fill "mPDF: cURL PHP extension not
> available" in place of the pdf content?
>
> Cheers,
> Jyhem
>
> On Thu, Jun 29, 2017 at 3:47 PM, Cloutier, Philippe (DGARI-Consultant)
> <[hidden email]> wrote:
>>
>> Hi Jean-Marc,
>>
>> This means the curl extension is missing. The broken error reporting
>> should be fixed with r63112.
>>
>>
>>
>> De : Jean-Marc Libs [mailto:[hidden email]m]
>> Envoyé : 28 juin 2017 20:10
>> À : Tiki developers <[hidden email]rge.net>
>> Objet : Re: [Tiki-devel] Testing Tiki main sites !!
>>
>>
>>
>> I tried the instructions on dev.tiki.org but then I tried to produce a pdf
>> from https://dev.tiki.org/Tiki18 and I get on
>> https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf with an WSOD.
>>
>> The error log says:
>> 2017/06/29 02:04:11 [error] 2368#2368: *6940309 FastCGI sent in stderr:
>> "PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message
>> 'reporterror library not found. This may be due to a typo or caused by a
>> recent update.' in /var/local/dev.tiki.org/www/lib/tikilib.php:80
>> Stack trace:
>> #0 /var/local/dev.tiki.org/www/lib/pdflib.php(259):
>> TikiLib::lib('reporterror')
>> #1 /var/local/dev.tiki.org/www/lib/pdflib.php(122):
>> PdfGenerator->mpdf('https://dev.tik...', '<div id="rbox_1...', Array)
>> #2 /var/local/dev.tiki.org/www/tiki-print.php(117):
>> PdfGenerator->getPdf('tiki-print.php', Array, '<div id="rbox_1...')
>> #3 {main}
>>   thrown in /var/local/dev.tiki.org/www/lib/tikilib.php on line 80" while
>> reading response header from upstream, client: 90.126.67.154, server:
>> dev.tiki.org, request: "GET /tiki-print.php?page=Tiki18&display=pdf
>> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dev.tiki.org",
>> referrer: "https://dev.tiki.org/Tiki18"
>>
>> Same on any page I experiment on :-(
>>
>>
>>
>> Anyone has insight?
>>
>>
>>
>> Jyhem
>>
>>
>>
>> On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte <[hidden email]>
>> wrote:
>>
>> Hi Bernard,
>>
>> I didn't notice any bugs in my tests. Congrats!
>>
>> Would it be possible to run the Composer command to install mPDF?
>> (needs to be done on each Tiki)
>> https://doc.tiki.org/mPDF#Tiki_17
>>
>> Thanks!
>>
>>
>>
>>
>> On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez <[hidden email]> wrote:
>> > Hello Tikiers,
>> >
>> > We’ve moved all our main sites to Tiki17 and we need people to test and
>> > report so we can release Tiki 17.
>> >
>> > The more the test they will be, the more Tiki 17 will be another great
>> > release.
>> > If everyone take 10mn to do the usual things he does on one of our main
>> > sites they will be thousands of features, options and setting that will
>> > be
>> > micro-tested.
>> >
>> > This QA is a huge apport to the release.
>> >
>> > Thanks to test and report.
>> >
>> > Bernard Sfez | bsfez.com
>> >
>> >
>>
>> >
>> > ------------------------------------------------------------------------------
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > _______________________________________________
>> > TikiWiki-devel mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>> >
>>
>>
>>
>> --
>> Marc Laporte
>>
>> http://WikiSuite.org
>> http://PluginProblems.com
>> http://Avan.Tech
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>



--
Marc Laporte

http://WikiSuite.org
http://PluginProblems.com
http://Avan.Tech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Jean-Marc Libs
In reply to this post by Amna Usman
Thanks Amna,

I confirm I could now create a pdf from page https://dev.tiki.org/Tiki18 !

But pages https://dev.tiki.org/TRIM and https://dev.tiki.org/Tiki17 still fail to create pdfs in a different way:
I get a «Controller not found (AutoSave)» Error box. See attachment.

Maybe not an mPDF issue?

Anyway, since it's good enough to be useful and so it will help make us look good, I also added the mPDF composer package on doc.tiki.org and set print to mPDF there. I'll do themes shortly.

I wonder: The mPDF config sets by default the option "Print Friendly PDF".
This make pdfs which are not as nice (less colors than the web pages) for the sake of saving printer toner.

I disabled it on dev.to and left it on doc.to so you can compare.

I have a feeling we should show off pdfs which are as nice as we can. I am not sure people create pdfs just so they can print? We have a different functionality for printing already.
Opinions?

Cheers,
Jyhem



On Fri, Jun 30, 2017 at 9:53 AM, Amna Usman <[hidden email]> wrote:
Done. Revision: 63119
          http://sourceforge.net/p/tikiwiki/code/63119

Please cross check, it should work on servers without CURL. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 12:46 PM, Amna Usman <[hidden email]> wrote:
Hi,

Sorry guys I was away for few days. We are not using CURL anymore for mpdf. 

CURL was being used previously to fetch data, now parsed data is being passed by tiki-print.php. 

My bad, I didn't remove the check while cleaning code. Will remove the check and commit in a while. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 3:54 AM, Marc Laporte <[hidden email]> wrote:
Yes, Jean-Marc

I just assigned this as a learning task to a new developer. Consider it done.

It will be added to the admin panel (where you set mPDF) and to tiki-check.php

Thanks!

On Thu, Jun 29, 2017 at 6:31 PM, Jean-Marc Libs <[hidden email]> wrote:
> Hi Philippe, thanks,
>
> Now I manage to create and download a pdf file, but it's an empty zero-sized
> file. :-(
> There is nothing in the error log any more.
>
> I trust you that the curl extension is missing, but the current situation is
> bad: users have no way of understanding what is wrong.
>
> Ahhh, when I move to another page or I reload the same page which just
> failed to be exported as pdf, I see the top-page feedback box which contains
> "mPDF: cURL PHP extension not available"
> This is progress but it shows too late for people to understand it is
> related :-(
>
> Could we improve on this? For instance fill "mPDF: cURL PHP extension not
> available" in place of the pdf content?
>
> Cheers,
> Jyhem
>
> On Thu, Jun 29, 2017 at 3:47 PM, Cloutier, Philippe (DGARI-Consultant)
> <[hidden email]> wrote:
>>
>> Hi Jean-Marc,
>>
>> This means the curl extension is missing. The broken error reporting
>> should be fixed with r63112.
>>
>>
>>
>> De : Jean-Marc Libs [mailto:[hidden email]]
>> Envoyé : 28 juin 2017 20:10
>> À : Tiki developers <[hidden email]>
>> Objet : Re: [Tiki-devel] Testing Tiki main sites !!
>>
>>
>>
>> I tried the instructions on dev.tiki.org but then I tried to produce a pdf
>> from https://dev.tiki.org/Tiki18 and I get on
>> https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf with an WSOD.
>>
>> The error log says:
>> 2017/06/29 02:04:11 [error] 2368#2368: *6940309 FastCGI sent in stderr:
>> "PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message
>> 'reporterror library not found. This may be due to a typo or caused by a
>> recent update.' in /var/local/dev.tiki.org/www/lib/tikilib.php:80
>> Stack trace:
>> #0 /var/local/dev.tiki.org/www/lib/pdflib.php(259):
>> TikiLib::lib('reporterror')
>> #1 /var/local/dev.tiki.org/www/lib/pdflib.php(122):
>> PdfGenerator->mpdf('https://dev.tik...', '<div id="rbox_1...', Array)
>> #2 /var/local/dev.tiki.org/www/tiki-print.php(117):
>> PdfGenerator->getPdf('tiki-print.php', Array, '<div id="rbox_1...')
>> #3 {main}
>>   thrown in /var/local/dev.tiki.org/www/lib/tikilib.php on line 80" while
>> reading response header from upstream, client: 90.126.67.154, server:
>> dev.tiki.org, request: "GET /tiki-print.php?page=Tiki18&display=pdf
>> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dev.tiki.org",
>> referrer: "https://dev.tiki.org/Tiki18"
>>
>> Same on any page I experiment on :-(
>>
>>
>>
>> Anyone has insight?
>>
>>
>>
>> Jyhem
>>
>>
>>
>> On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte <[hidden email]>
>> wrote:
>>
>> Hi Bernard,
>>
>> I didn't notice any bugs in my tests. Congrats!
>>
>> Would it be possible to run the Composer command to install mPDF?
>> (needs to be done on each Tiki)
>> https://doc.tiki.org/mPDF#Tiki_17
>>
>> Thanks!
>>
>>
>>
>>
>> On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez <[hidden email]> wrote:
>> > Hello Tikiers,
>> >
>> > We’ve moved all our main sites to Tiki17 and we need people to test and
>> > report so we can release Tiki 17.
>> >
>> > The more the test they will be, the more Tiki 17 will be another great
>> > release.
>> > If everyone take 10mn to do the usual things he does on one of our main
>> > sites they will be thousands of features, options and setting that will
>> > be
>> > micro-tested.
>> >
>> > This QA is a huge apport to the release.
>> >
>> > Thanks to test and report.
>> >
>> > Bernard Sfez | bsfez.com
>> >
>> >
>>
>> >
>> > ------------------------------------------------------------------------------
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > _______________________________________________
>> > TikiWiki-devel mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>> >
>>
>>
>>
>> --
>> Marc Laporte
>>
>> http://WikiSuite.org
>> http://PluginProblems.com
>> http://Avan.Tech
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>



--
Marc Laporte

http://WikiSuite.org
http://PluginProblems.com
http://Avan.Tech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

tiki17_01.png (58K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Jean-Marc Libs
I can't set mPDF in themes because my login (jyhem) does not have permission for https://themes.tiki.org/tiki-admin.php?page=print

Can anyone who is admin on themes add me to the Admins group?

BTW, I tried to change the admin password but I get "Account requires administrator approval. " on admin login! :-(

This seems like a big issue with themes for later, with more time :-(

Cheers,
J-M

On Fri, Jun 30, 2017 at 2:13 PM, Jean-Marc Libs <[hidden email]> wrote:
Thanks Amna,

I confirm I could now create a pdf from page https://dev.tiki.org/Tiki18 !

But pages https://dev.tiki.org/TRIM and https://dev.tiki.org/Tiki17 still fail to create pdfs in a different way:
I get a «Controller not found (AutoSave)» Error box. See attachment.

Maybe not an mPDF issue?

Anyway, since it's good enough to be useful and so it will help make us look good, I also added the mPDF composer package on doc.tiki.org and set print to mPDF there. I'll do themes shortly.

I wonder: The mPDF config sets by default the option "Print Friendly PDF".
This make pdfs which are not as nice (less colors than the web pages) for the sake of saving printer toner.

I disabled it on dev.to and left it on doc.to so you can compare.

I have a feeling we should show off pdfs which are as nice as we can. I am not sure people create pdfs just so they can print? We have a different functionality for printing already.
Opinions?

Cheers,
Jyhem



On Fri, Jun 30, 2017 at 9:53 AM, Amna Usman <[hidden email]> wrote:
Done. Revision: 63119
          http://sourceforge.net/p/tikiwiki/code/63119

Please cross check, it should work on servers without CURL. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 12:46 PM, Amna Usman <[hidden email]> wrote:
Hi,

Sorry guys I was away for few days. We are not using CURL anymore for mpdf. 

CURL was being used previously to fetch data, now parsed data is being passed by tiki-print.php. 

My bad, I didn't remove the check while cleaning code. Will remove the check and commit in a while. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 3:54 AM, Marc Laporte <[hidden email]> wrote:
Yes, Jean-Marc

I just assigned this as a learning task to a new developer. Consider it done.

It will be added to the admin panel (where you set mPDF) and to tiki-check.php

Thanks!

On Thu, Jun 29, 2017 at 6:31 PM, Jean-Marc Libs <[hidden email]> wrote:
> Hi Philippe, thanks,
>
> Now I manage to create and download a pdf file, but it's an empty zero-sized
> file. :-(
> There is nothing in the error log any more.
>
> I trust you that the curl extension is missing, but the current situation is
> bad: users have no way of understanding what is wrong.
>
> Ahhh, when I move to another page or I reload the same page which just
> failed to be exported as pdf, I see the top-page feedback box which contains
> "mPDF: cURL PHP extension not available"
> This is progress but it shows too late for people to understand it is
> related :-(
>
> Could we improve on this? For instance fill "mPDF: cURL PHP extension not
> available" in place of the pdf content?
>
> Cheers,
> Jyhem
>
> On Thu, Jun 29, 2017 at 3:47 PM, Cloutier, Philippe (DGARI-Consultant)
> <[hidden email]> wrote:
>>
>> Hi Jean-Marc,
>>
>> This means the curl extension is missing. The broken error reporting
>> should be fixed with r63112.
>>
>>
>>
>> De : Jean-Marc Libs [mailto:[hidden email]]
>> Envoyé : 28 juin 2017 20:10
>> À : Tiki developers <[hidden email]>
>> Objet : Re: [Tiki-devel] Testing Tiki main sites !!
>>
>>
>>
>> I tried the instructions on dev.tiki.org but then I tried to produce a pdf
>> from https://dev.tiki.org/Tiki18 and I get on
>> https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf with an WSOD.
>>
>> The error log says:
>> 2017/06/29 02:04:11 [error] 2368#2368: *6940309 FastCGI sent in stderr:
>> "PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message
>> 'reporterror library not found. This may be due to a typo or caused by a
>> recent update.' in /var/local/dev.tiki.org/www/lib/tikilib.php:80
>> Stack trace:
>> #0 /var/local/dev.tiki.org/www/lib/pdflib.php(259):
>> TikiLib::lib('reporterror')
>> #1 /var/local/dev.tiki.org/www/lib/pdflib.php(122):
>> PdfGenerator->mpdf('https://dev.tik...', '<div id="rbox_1...', Array)
>> #2 /var/local/dev.tiki.org/www/tiki-print.php(117):
>> PdfGenerator->getPdf('tiki-print.php', Array, '<div id="rbox_1...')
>> #3 {main}
>>   thrown in /var/local/dev.tiki.org/www/lib/tikilib.php on line 80" while
>> reading response header from upstream, client: 90.126.67.154, server:
>> dev.tiki.org, request: "GET /tiki-print.php?page=Tiki18&display=pdf
>> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dev.tiki.org",
>> referrer: "https://dev.tiki.org/Tiki18"
>>
>> Same on any page I experiment on :-(
>>
>>
>>
>> Anyone has insight?
>>
>>
>>
>> Jyhem
>>
>>
>>
>> On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte <[hidden email]>
>> wrote:
>>
>> Hi Bernard,
>>
>> I didn't notice any bugs in my tests. Congrats!
>>
>> Would it be possible to run the Composer command to install mPDF?
>> (needs to be done on each Tiki)
>> https://doc.tiki.org/mPDF#Tiki_17
>>
>> Thanks!
>>
>>
>>
>>
>> On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez <[hidden email]> wrote:
>> > Hello Tikiers,
>> >
>> > We’ve moved all our main sites to Tiki17 and we need people to test and
>> > report so we can release Tiki 17.
>> >
>> > The more the test they will be, the more Tiki 17 will be another great
>> > release.
>> > If everyone take 10mn to do the usual things he does on one of our main
>> > sites they will be thousands of features, options and setting that will
>> > be
>> > micro-tested.
>> >
>> > This QA is a huge apport to the release.
>> >
>> > Thanks to test and report.
>> >
>> > Bernard Sfez | bsfez.com
>> >
>> >
>>
>> >
>> > ------------------------------------------------------------------------------
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > _______________________________________________
>> > TikiWiki-devel mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>> >
>>
>>
>>
>> --
>> Marc Laporte
>>
>> http://WikiSuite.org
>> http://PluginProblems.com
>> http://Avan.Tech
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>



--
Marc Laporte

http://WikiSuite.org
http://PluginProblems.com
http://Avan.Tech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Amna Usman
In reply to this post by Jean-Marc Libs
AutoSave controller is called if there are tableSorter on the page, to save current state of table and print it in PDF. 


 I am not sure why its throwing error as it must be present. I dont have access to dev. Can you please check if lib/core/Services/AutoSave/controller.php is there?

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 5:13 PM, Jean-Marc Libs <[hidden email]> wrote:
Thanks Amna,

I confirm I could now create a pdf from page https://dev.tiki.org/Tiki18 !

But pages https://dev.tiki.org/TRIM and https://dev.tiki.org/Tiki17 still fail to create pdfs in a different way:
I get a «Controller not found (AutoSave)» Error box. See attachment.

Maybe not an mPDF issue?

Anyway, since it's good enough to be useful and so it will help make us look good, I also added the mPDF composer package on doc.tiki.org and set print to mPDF there. I'll do themes shortly.

I wonder: The mPDF config sets by default the option "Print Friendly PDF".
This make pdfs which are not as nice (less colors than the web pages) for the sake of saving printer toner.

I disabled it on dev.to and left it on doc.to so you can compare.

I have a feeling we should show off pdfs which are as nice as we can. I am not sure people create pdfs just so they can print? We have a different functionality for printing already.
Opinions?

Cheers,
Jyhem



On Fri, Jun 30, 2017 at 9:53 AM, Amna Usman <[hidden email]> wrote:
Done. Revision: 63119
          http://sourceforge.net/p/tikiwiki/code/63119

Please cross check, it should work on servers without CURL. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 12:46 PM, Amna Usman <[hidden email]> wrote:
Hi,

Sorry guys I was away for few days. We are not using CURL anymore for mpdf. 

CURL was being used previously to fetch data, now parsed data is being passed by tiki-print.php. 

My bad, I didn't remove the check while cleaning code. Will remove the check and commit in a while. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 3:54 AM, Marc Laporte <[hidden email]> wrote:
Yes, Jean-Marc

I just assigned this as a learning task to a new developer. Consider it done.

It will be added to the admin panel (where you set mPDF) and to tiki-check.php

Thanks!

On Thu, Jun 29, 2017 at 6:31 PM, Jean-Marc Libs <[hidden email]> wrote:
> Hi Philippe, thanks,
>
> Now I manage to create and download a pdf file, but it's an empty zero-sized
> file. :-(
> There is nothing in the error log any more.
>
> I trust you that the curl extension is missing, but the current situation is
> bad: users have no way of understanding what is wrong.
>
> Ahhh, when I move to another page or I reload the same page which just
> failed to be exported as pdf, I see the top-page feedback box which contains
> "mPDF: cURL PHP extension not available"
> This is progress but it shows too late for people to understand it is
> related :-(
>
> Could we improve on this? For instance fill "mPDF: cURL PHP extension not
> available" in place of the pdf content?
>
> Cheers,
> Jyhem
>
> On Thu, Jun 29, 2017 at 3:47 PM, Cloutier, Philippe (DGARI-Consultant)
> <[hidden email]> wrote:
>>
>> Hi Jean-Marc,
>>
>> This means the curl extension is missing. The broken error reporting
>> should be fixed with r63112.
>>
>>
>>
>> De : Jean-Marc Libs [mailto:[hidden email]]
>> Envoyé : 28 juin 2017 20:10
>> À : Tiki developers <[hidden email]>
>> Objet : Re: [Tiki-devel] Testing Tiki main sites !!
>>
>>
>>
>> I tried the instructions on dev.tiki.org but then I tried to produce a pdf
>> from https://dev.tiki.org/Tiki18 and I get on
>> https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf with an WSOD.
>>
>> The error log says:
>> 2017/06/29 02:04:11 [error] 2368#2368: *6940309 FastCGI sent in stderr:
>> "PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message
>> 'reporterror library not found. This may be due to a typo or caused by a
>> recent update.' in /var/local/dev.tiki.org/www/lib/tikilib.php:80
>> Stack trace:
>> #0 /var/local/dev.tiki.org/www/lib/pdflib.php(259):
>> TikiLib::lib('reporterror')
>> #1 /var/local/dev.tiki.org/www/lib/pdflib.php(122):
>> PdfGenerator->mpdf('https://dev.tik...', '<div id="rbox_1...', Array)
>> #2 /var/local/dev.tiki.org/www/tiki-print.php(117):
>> PdfGenerator->getPdf('tiki-print.php', Array, '<div id="rbox_1...')
>> #3 {main}
>>   thrown in /var/local/dev.tiki.org/www/lib/tikilib.php on line 80" while
>> reading response header from upstream, client: 90.126.67.154, server:
>> dev.tiki.org, request: "GET /tiki-print.php?page=Tiki18&display=pdf
>> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dev.tiki.org",
>> referrer: "https://dev.tiki.org/Tiki18"
>>
>> Same on any page I experiment on :-(
>>
>>
>>
>> Anyone has insight?
>>
>>
>>
>> Jyhem
>>
>>
>>
>> On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte <[hidden email]>
>> wrote:
>>
>> Hi Bernard,
>>
>> I didn't notice any bugs in my tests. Congrats!
>>
>> Would it be possible to run the Composer command to install mPDF?
>> (needs to be done on each Tiki)
>> https://doc.tiki.org/mPDF#Tiki_17
>>
>> Thanks!
>>
>>
>>
>>
>> On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez <[hidden email]> wrote:
>> > Hello Tikiers,
>> >
>> > We’ve moved all our main sites to Tiki17 and we need people to test and
>> > report so we can release Tiki 17.
>> >
>> > The more the test they will be, the more Tiki 17 will be another great
>> > release.
>> > If everyone take 10mn to do the usual things he does on one of our main
>> > sites they will be thousands of features, options and setting that will
>> > be
>> > micro-tested.
>> >
>> > This QA is a huge apport to the release.
>> >
>> > Thanks to test and report.
>> >
>> > Bernard Sfez | bsfez.com
>> >
>> >
>>
>> >
>> > ------------------------------------------------------------------------------
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > _______________________________________________
>> > TikiWiki-devel mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>> >
>>
>>
>>
>> --
>> Marc Laporte
>>
>> http://WikiSuite.org
>> http://PluginProblems.com
>> http://Avan.Tech
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>



--
Marc Laporte

http://WikiSuite.org
http://PluginProblems.com
http://Avan.Tech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Jean-Marc Libs
root@vm01:/var/local/dev.tiki.org/www# ll lib/core/Services/AutoSave/
total 16
drwxr-sr-x  2 www-data www-data 4096 Jun 27 15:09 ./
drwxr-sr-x 45 www-data www-data 4096 Jun 27 15:09 ../
-rw-r--r--  1 www-data www-data 3000 Jun 27 15:09 Controller.php
-rw-r--r--  1 www-data www-data  434 Nov 14  2016 index.php

So, no lib/core/Services/AutoSave/controller.php but there is lib/core/Services/AutoSave/Controller.php

Cheers,
J-M

On Fri, Jun 30, 2017 at 3:06 PM, Amna Usman <[hidden email]> wrote:
AutoSave controller is called if there are tableSorter on the page, to save current state of table and print it in PDF. 


 I am not sure why its throwing error as it must be present. I dont have access to dev. Can you please check if lib/core/Services/AutoSave/controller.php is there?

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 5:13 PM, Jean-Marc Libs <[hidden email]> wrote:
Thanks Amna,

I confirm I could now create a pdf from page https://dev.tiki.org/Tiki18 !

But pages https://dev.tiki.org/TRIM and https://dev.tiki.org/Tiki17 still fail to create pdfs in a different way:
I get a «Controller not found (AutoSave)» Error box. See attachment.

Maybe not an mPDF issue?

Anyway, since it's good enough to be useful and so it will help make us look good, I also added the mPDF composer package on doc.tiki.org and set print to mPDF there. I'll do themes shortly.

I wonder: The mPDF config sets by default the option "Print Friendly PDF".
This make pdfs which are not as nice (less colors than the web pages) for the sake of saving printer toner.

I disabled it on dev.to and left it on doc.to so you can compare.

I have a feeling we should show off pdfs which are as nice as we can. I am not sure people create pdfs just so they can print? We have a different functionality for printing already.
Opinions?

Cheers,
Jyhem



On Fri, Jun 30, 2017 at 9:53 AM, Amna Usman <[hidden email]> wrote:
Done. Revision: 63119
          http://sourceforge.net/p/tikiwiki/code/63119

Please cross check, it should work on servers without CURL. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 12:46 PM, Amna Usman <[hidden email]> wrote:
Hi,

Sorry guys I was away for few days. We are not using CURL anymore for mpdf. 

CURL was being used previously to fetch data, now parsed data is being passed by tiki-print.php. 

My bad, I didn't remove the check while cleaning code. Will remove the check and commit in a while. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 3:54 AM, Marc Laporte <[hidden email]> wrote:
Yes, Jean-Marc

I just assigned this as a learning task to a new developer. Consider it done.

It will be added to the admin panel (where you set mPDF) and to tiki-check.php

Thanks!

On Thu, Jun 29, 2017 at 6:31 PM, Jean-Marc Libs <[hidden email]> wrote:
> Hi Philippe, thanks,
>
> Now I manage to create and download a pdf file, but it's an empty zero-sized
> file. :-(
> There is nothing in the error log any more.
>
> I trust you that the curl extension is missing, but the current situation is
> bad: users have no way of understanding what is wrong.
>
> Ahhh, when I move to another page or I reload the same page which just
> failed to be exported as pdf, I see the top-page feedback box which contains
> "mPDF: cURL PHP extension not available"
> This is progress but it shows too late for people to understand it is
> related :-(
>
> Could we improve on this? For instance fill "mPDF: cURL PHP extension not
> available" in place of the pdf content?
>
> Cheers,
> Jyhem
>
> On Thu, Jun 29, 2017 at 3:47 PM, Cloutier, Philippe (DGARI-Consultant)
> <[hidden email]> wrote:
>>
>> Hi Jean-Marc,
>>
>> This means the curl extension is missing. The broken error reporting
>> should be fixed with r63112.
>>
>>
>>
>> De : Jean-Marc Libs [mailto:[hidden email]]
>> Envoyé : 28 juin 2017 20:10
>> À : Tiki developers <[hidden email]>
>> Objet : Re: [Tiki-devel] Testing Tiki main sites !!
>>
>>
>>
>> I tried the instructions on dev.tiki.org but then I tried to produce a pdf
>> from https://dev.tiki.org/Tiki18 and I get on
>> https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf with an WSOD.
>>
>> The error log says:
>> 2017/06/29 02:04:11 [error] 2368#2368: *6940309 FastCGI sent in stderr:
>> "PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message
>> 'reporterror library not found. This may be due to a typo or caused by a
>> recent update.' in /var/local/dev.tiki.org/www/lib/tikilib.php:80
>> Stack trace:
>> #0 /var/local/dev.tiki.org/www/lib/pdflib.php(259):
>> TikiLib::lib('reporterror')
>> #1 /var/local/dev.tiki.org/www/lib/pdflib.php(122):
>> PdfGenerator->mpdf('https://dev.tik...', '<div id="rbox_1...', Array)
>> #2 /var/local/dev.tiki.org/www/tiki-print.php(117):
>> PdfGenerator->getPdf('tiki-print.php', Array, '<div id="rbox_1...')
>> #3 {main}
>>   thrown in /var/local/dev.tiki.org/www/lib/tikilib.php on line 80" while
>> reading response header from upstream, client: 90.126.67.154, server:
>> dev.tiki.org, request: "GET /tiki-print.php?page=Tiki18&display=pdf
>> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dev.tiki.org",
>> referrer: "https://dev.tiki.org/Tiki18"
>>
>> Same on any page I experiment on :-(
>>
>>
>>
>> Anyone has insight?
>>
>>
>>
>> Jyhem
>>
>>
>>
>> On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte <[hidden email]>
>> wrote:
>>
>> Hi Bernard,
>>
>> I didn't notice any bugs in my tests. Congrats!
>>
>> Would it be possible to run the Composer command to install mPDF?
>> (needs to be done on each Tiki)
>> https://doc.tiki.org/mPDF#Tiki_17
>>
>> Thanks!
>>
>>
>>
>>
>> On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez <[hidden email]> wrote:
>> > Hello Tikiers,
>> >
>> > We’ve moved all our main sites to Tiki17 and we need people to test and
>> > report so we can release Tiki 17.
>> >
>> > The more the test they will be, the more Tiki 17 will be another great
>> > release.
>> > If everyone take 10mn to do the usual things he does on one of our main
>> > sites they will be thousands of features, options and setting that will
>> > be
>> > micro-tested.
>> >
>> > This QA is a huge apport to the release.
>> >
>> > Thanks to test and report.
>> >
>> > Bernard Sfez | bsfez.com
>> >
>> >
>>
>> >
>> > ------------------------------------------------------------------------------
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > _______________________________________________
>> > TikiWiki-devel mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>> >
>>
>>
>>
>> --
>> Marc Laporte
>>
>> http://WikiSuite.org
>> http://PluginProblems.com
>> http://Avan.Tech
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>



--
Marc Laporte

http://WikiSuite.org
http://PluginProblems.com
http://Avan.Tech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Amna Usman
Yes, I mean Controller.php.

Can anyone else suggest why there is problem, autosave related javascript is loading fine. It must be not a problem making controller calls. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 6:10 PM, Jean-Marc Libs <[hidden email]> wrote:
root@vm01:/var/local/dev.tiki.org/www# ll lib/core/Services/AutoSave/
total 16
drwxr-sr-x  2 www-data www-data 4096 Jun 27 15:09 ./
drwxr-sr-x 45 www-data www-data 4096 Jun 27 15:09 ../
-rw-r--r--  1 www-data www-data 3000 Jun 27 15:09 Controller.php
-rw-r--r--  1 www-data www-data  434 Nov 14  2016 index.php

So, no lib/core/Services/AutoSave/controller.php but there is lib/core/Services/AutoSave/Controller.php

Cheers,
J-M

On Fri, Jun 30, 2017 at 3:06 PM, Amna Usman <[hidden email]> wrote:
AutoSave controller is called if there are tableSorter on the page, to save current state of table and print it in PDF. 


 I am not sure why its throwing error as it must be present. I dont have access to dev. Can you please check if lib/core/Services/AutoSave/controller.php is there?

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 5:13 PM, Jean-Marc Libs <[hidden email]> wrote:
Thanks Amna,

I confirm I could now create a pdf from page https://dev.tiki.org/Tiki18 !

But pages https://dev.tiki.org/TRIM and https://dev.tiki.org/Tiki17 still fail to create pdfs in a different way:
I get a «Controller not found (AutoSave)» Error box. See attachment.

Maybe not an mPDF issue?

Anyway, since it's good enough to be useful and so it will help make us look good, I also added the mPDF composer package on doc.tiki.org and set print to mPDF there. I'll do themes shortly.

I wonder: The mPDF config sets by default the option "Print Friendly PDF".
This make pdfs which are not as nice (less colors than the web pages) for the sake of saving printer toner.

I disabled it on dev.to and left it on doc.to so you can compare.

I have a feeling we should show off pdfs which are as nice as we can. I am not sure people create pdfs just so they can print? We have a different functionality for printing already.
Opinions?

Cheers,
Jyhem



On Fri, Jun 30, 2017 at 9:53 AM, Amna Usman <[hidden email]> wrote:
Done. Revision: 63119
          http://sourceforge.net/p/tikiwiki/code/63119

Please cross check, it should work on servers without CURL. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 12:46 PM, Amna Usman <[hidden email]> wrote:
Hi,

Sorry guys I was away for few days. We are not using CURL anymore for mpdf. 

CURL was being used previously to fetch data, now parsed data is being passed by tiki-print.php. 

My bad, I didn't remove the check while cleaning code. Will remove the check and commit in a while. 

Regards

Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Fri, Jun 30, 2017 at 3:54 AM, Marc Laporte <[hidden email]> wrote:
Yes, Jean-Marc

I just assigned this as a learning task to a new developer. Consider it done.

It will be added to the admin panel (where you set mPDF) and to tiki-check.php

Thanks!

On Thu, Jun 29, 2017 at 6:31 PM, Jean-Marc Libs <[hidden email]> wrote:
> Hi Philippe, thanks,
>
> Now I manage to create and download a pdf file, but it's an empty zero-sized
> file. :-(
> There is nothing in the error log any more.
>
> I trust you that the curl extension is missing, but the current situation is
> bad: users have no way of understanding what is wrong.
>
> Ahhh, when I move to another page or I reload the same page which just
> failed to be exported as pdf, I see the top-page feedback box which contains
> "mPDF: cURL PHP extension not available"
> This is progress but it shows too late for people to understand it is
> related :-(
>
> Could we improve on this? For instance fill "mPDF: cURL PHP extension not
> available" in place of the pdf content?
>
> Cheers,
> Jyhem
>
> On Thu, Jun 29, 2017 at 3:47 PM, Cloutier, Philippe (DGARI-Consultant)
> <[hidden email]> wrote:
>>
>> Hi Jean-Marc,
>>
>> This means the curl extension is missing. The broken error reporting
>> should be fixed with r63112.
>>
>>
>>
>> De : Jean-Marc Libs [mailto:[hidden email]]
>> Envoyé : 28 juin 2017 20:10
>> À : Tiki developers <[hidden email]>
>> Objet : Re: [Tiki-devel] Testing Tiki main sites !!
>>
>>
>>
>> I tried the instructions on dev.tiki.org but then I tried to produce a pdf
>> from https://dev.tiki.org/Tiki18 and I get on
>> https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf with an WSOD.
>>
>> The error log says:
>> 2017/06/29 02:04:11 [error] 2368#2368: *6940309 FastCGI sent in stderr:
>> "PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message
>> 'reporterror library not found. This may be due to a typo or caused by a
>> recent update.' in /var/local/dev.tiki.org/www/lib/tikilib.php:80
>> Stack trace:
>> #0 /var/local/dev.tiki.org/www/lib/pdflib.php(259):
>> TikiLib::lib('reporterror')
>> #1 /var/local/dev.tiki.org/www/lib/pdflib.php(122):
>> PdfGenerator->mpdf('https://dev.tik...', '<div id="rbox_1...', Array)
>> #2 /var/local/dev.tiki.org/www/tiki-print.php(117):
>> PdfGenerator->getPdf('tiki-print.php', Array, '<div id="rbox_1...')
>> #3 {main}
>>   thrown in /var/local/dev.tiki.org/www/lib/tikilib.php on line 80" while
>> reading response header from upstream, client: 90.126.67.154, server:
>> dev.tiki.org, request: "GET /tiki-print.php?page=Tiki18&display=pdf
>> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dev.tiki.org",
>> referrer: "https://dev.tiki.org/Tiki18"
>>
>> Same on any page I experiment on :-(
>>
>>
>>
>> Anyone has insight?
>>
>>
>>
>> Jyhem
>>
>>
>>
>> On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte <[hidden email]>
>> wrote:
>>
>> Hi Bernard,
>>
>> I didn't notice any bugs in my tests. Congrats!
>>
>> Would it be possible to run the Composer command to install mPDF?
>> (needs to be done on each Tiki)
>> https://doc.tiki.org/mPDF#Tiki_17
>>
>> Thanks!
>>
>>
>>
>>
>> On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez <[hidden email]> wrote:
>> > Hello Tikiers,
>> >
>> > We’ve moved all our main sites to Tiki17 and we need people to test and
>> > report so we can release Tiki 17.
>> >
>> > The more the test they will be, the more Tiki 17 will be another great
>> > release.
>> > If everyone take 10mn to do the usual things he does on one of our main
>> > sites they will be thousands of features, options and setting that will
>> > be
>> > micro-tested.
>> >
>> > This QA is a huge apport to the release.
>> >
>> > Thanks to test and report.
>> >
>> > Bernard Sfez | bsfez.com
>> >
>> >
>>
>> >
>> > ------------------------------------------------------------------------------
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > _______________________________________________
>> > TikiWiki-devel mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>> >
>>
>>
>>
>> --
>> Marc Laporte
>>
>> http://WikiSuite.org
>> http://PluginProblems.com
>> http://Avan.Tech
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>



--
Marc Laporte

http://WikiSuite.org
http://PluginProblems.com
http://Avan.Tech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Gary Cunningham-Lee
In reply to this post by Jean-Marc Libs
Hi J-M,

You're added.

-- Gary

On 6/30/2017 9:58 PM, Jean-Marc Libs wrote:

> I can't set mPDF in themes because my login (jyhem) does not have
> permission for https://themes.tiki.org/tiki-admin.php?page=print
>
> Can anyone who is admin on themes add me to the Admins group?
>
> BTW, I tried to change the admin password but I get "Account requires
> administrator approval. " on admin login! :-(
>
> This seems like a big issue with themes for later, with more time :-(
>
> Cheers,
> J-M
>
> On Fri, Jun 30, 2017 at 2:13 PM, Jean-Marc Libs <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Thanks Amna,
>
>     I confirm I could now create a pdf from page
>     https://dev.tiki.org/Tiki18 !
>
>     But pages https://dev.tiki.org/TRIM and https://dev.tiki.org/Tiki17
>     still fail to create pdfs in a different way:
>     I get a «Controller not found (AutoSave)» Error box. See attachment.
>
>     Maybe not an mPDF issue?
>
>     Anyway, since it's good enough to be useful and so it will help make
>     us look good, I also added the mPDF composer package on doc.tiki.org
>     <http://doc.tiki.org> and set print to mPDF there. I'll do themes
>     shortly.
>
>     I wonder: The mPDF config sets by default the option "Print Friendly
>     PDF".
>     This make pdfs which are not as nice (less colors than the web
>     pages) for the sake of saving printer toner.
>
>     I disabled it on dev.to <http://dev.to> and left it on doc.to
>     <http://doc.to> so you can compare.
>
>     I have a feeling we should show off pdfs which are as nice as we
>     can. I am not sure people create pdfs just so they can print? We
>     have a different functionality for printing already.
>     Opinions?
>
>     Cheers,
>     Jyhem
>
>
>
>     On Fri, Jun 30, 2017 at 9:53 AM, Amna Usman <[hidden email]
>     <mailto:[hidden email]>> wrote:
>
>         Done. Revision: 63119
>         http://sourceforge.net/p/tikiwiki/code/63119
>         <http://sourceforge.net/p/tikiwiki/code/63119>
>
>         Please cross check, it should work on servers without CURL.
>
>         Regards
>
>         Amna Bilal
>
>         Chief Technology Officer
>         Genex Business Solutions
>         http://www.genexbs.com  | http://www.marts.pk |
>         http://www.iLahore.com
>
>
>         On Fri, Jun 30, 2017 at 12:46 PM, Amna Usman <[hidden email]
>         <mailto:[hidden email]>> wrote:
>
>             Hi,
>
>             Sorry guys I was away for few days. We are not using CURL
>             anymore for mpdf.
>
>             CURL was being used previously to fetch data, now parsed
>             data is being passed by tiki-print.php.
>
>             My bad, I didn't remove the check while cleaning code. Will
>             remove the check and commit in a while.
>
>             Regards
>
>             Amna Bilal
>
>             Chief Technology Officer
>             Genex Business Solutions
>             http://www.genexbs.com  | http://www.marts.pk |
>             http://www.iLahore.com
>
>
>             On Fri, Jun 30, 2017 at 3:54 AM, Marc Laporte
>             <[hidden email] <mailto:[hidden email]>> wrote:
>
>                 Yes, Jean-Marc
>
>                 I just assigned this as a learning task to a new
>                 developer. Consider it done.
>
>                 It will be added to the admin panel (where you set mPDF)
>                 and to tiki-check.php
>
>                 Thanks!
>
>                 On Thu, Jun 29, 2017 at 6:31 PM, Jean-Marc Libs
>                 <[hidden email]
>                 <mailto:[hidden email]>> wrote:
>                  > Hi Philippe, thanks,
>                  >
>                  > Now I manage to create and download a pdf file, but
>                 it's an empty zero-sized
>                  > file. :-(
>                  > There is nothing in the error log any more.
>                  >
>                  > I trust you that the curl extension is missing, but
>                 the current situation is
>                  > bad: users have no way of understanding what is wrong.
>                  >
>                  > Ahhh, when I move to another page or I reload the
>                 same page which just
>                  > failed to be exported as pdf, I see the top-page
>                 feedback box which contains
>                  > "mPDF: cURL PHP extension not available"
>                  > This is progress but it shows too late for people to
>                 understand it is
>                  > related :-(
>                  >
>                  > Could we improve on this? For instance fill "mPDF:
>                 cURL PHP extension not
>                  > available" in place of the pdf content?
>                  >
>                  > Cheers,
>                  > Jyhem
>                  >
>                  > On Thu, Jun 29, 2017 at 3:47 PM, Cloutier, Philippe
>                 (DGARI-Consultant)
>                  > <[hidden email]
>                 <mailto:[hidden email]>>
>                 wrote:
>                  >>
>                  >> Hi Jean-Marc,
>                  >>
>                  >> This means the curl extension is missing. The broken
>                 error reporting
>                  >> should be fixed with r63112.
>                  >>
>                  >>
>                  >>
>                  >> De : Jean-Marc Libs [mailto:[hidden email]
>                 <mailto:[hidden email]>]
>                  >> Envoyé : 28 juin 2017 20:10
>                  >> À : Tiki developers
>                 <[hidden email]
>                 <mailto:[hidden email]>>
>                  >> Objet : Re: [Tiki-devel] Testing Tiki main sites !!
>                  >>
>                  >>
>                  >>
>                  >> I tried the instructions on dev.tiki.org
>                 <http://dev.tiki.org> but then I tried to produce a pdf
>                  >> from https://dev.tiki.org/Tiki18 and I get on
>                  >>
>                 https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf
>                 <https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf>
>                 with an WSOD.
>                  >>
>                  >> The error log says:
>                  >> 2017/06/29 02:04:11 [error] 2368#2368: *6940309
>                 FastCGI sent in stderr:
>                  >> "PHP message: PHP Fatal error:  Uncaught exception
>                 'Exception' with message
>                  >> 'reporterror library not found. This may be due to a
>                 typo or caused by a
>                  >> recent update.' in
>                 /var/local/dev.tiki.org/www/lib/tikilib.php:80
>                 <http://dev.tiki.org/www/lib/tikilib.php:80>
>                  >> Stack trace:
>                  >> #0 /var/local/dev.tiki.org/www/lib/pdflib.php(259)
>                 <http://dev.tiki.org/www/lib/pdflib.php(259)>:
>                  >> TikiLib::lib('reporterror')
>                  >> #1 /var/local/dev.tiki.org/www/lib/pdflib.php(122)
>                 <http://dev.tiki.org/www/lib/pdflib.php(122)>:
>                  >> PdfGenerator->mpdf('https://dev.tik.
>                 <https://dev.tik.>..', '<div id="rbox_1...', Array)
>                  >> #2 /var/local/dev.tiki.org/www/tiki-print.php(117)
>                 <http://dev.tiki.org/www/tiki-print.php(117)>:
>                  >> PdfGenerator->getPdf('tiki-print.php', Array, '<div
>                 id="rbox_1...')
>                  >> #3 {main}
>                  >>   thrown in
>                 /var/local/dev.tiki.org/www/lib/tikilib.php
>                 <http://dev.tiki.org/www/lib/tikilib.php> on line 80" while
>                  >> reading response header from upstream, client:
>                 90.126.67.154, server:
>                  >> dev.tiki.org <http://dev.tiki.org>, request: "GET
>                 /tiki-print.php?page=Tiki18&display=pdf
>                  >> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000
>                 <http://127.0.0.1:9000>", host: "dev.tiki.org
>                 <http://dev.tiki.org>",
>                  >> referrer: "https://dev.tiki.org/Tiki18"
>                  >>
>                  >> Same on any page I experiment on :-(
>                  >>
>                  >>
>                  >>
>                  >> Anyone has insight?
>                  >>
>                  >>
>                  >>
>                  >> Jyhem
>                  >>
>                  >>
>                  >>
>                  >> On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte
>                 <[hidden email] <mailto:[hidden email]>>
>                  >> wrote:
>                  >>
>                  >> Hi Bernard,
>                  >>
>                  >> I didn't notice any bugs in my tests. Congrats!
>                  >>
>                  >> Would it be possible to run the Composer command to
>                 install mPDF?
>                  >> (needs to be done on each Tiki)
>                  >> https://doc.tiki.org/mPDF#Tiki_17
>                 <https://doc.tiki.org/mPDF#Tiki_17>
>                  >>
>                  >> Thanks!
>                  >>
>                  >>
>                  >>
>                  >>
>                  >> On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez
>                 <[hidden email] <mailto:[hidden email]>> wrote:
>                  >> > Hello Tikiers,
>                  >> >
>                  >> > We’ve moved all our main sites to Tiki17 and we
>                 need people to test and
>                  >> > report so we can release Tiki 17.
>                  >> >
>                  >> > The more the test they will be, the more Tiki 17
>                 will be another great
>                  >> > release.
>                  >> > If everyone take 10mn to do the usual things he
>                 does on one of our main
>                  >> > sites they will be thousands of features, options
>                 and setting that will
>                  >> > be
>                  >> > micro-tested.
>                  >> >
>                  >> > This QA is a huge apport to the release.
>                  >> >
>                  >> > Thanks to test and report.
>                  >> >
>                  >> > Bernard Sfez | bsfez.com <http://bsfez.com>
>                  >> >
>                  >> >
>                  >>
>                  >> >
>                  >> >
>                 ------------------------------------------------------------------------------
>                  >> > Check out the vibrant tech community on one of the
>                 world's most
>                  >> > engaging tech sites, Slashdot.org!
>                 http://sdm.link/slashdot
>                  >> > _______________________________________________
>                  >> > TikiWiki-devel mailing list
>                  >> > [hidden email]
>                 <mailto:[hidden email]>
>                  >> >
>                 https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>                 <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>                  >> >
>                  >>
>                  >>
>                  >>
>                  >> --
>                  >> Marc Laporte
>                  >>
>                  >> http://WikiSuite.org
>                  >> http://PluginProblems.com
>                  >> http://Avan.Tech
>                  >>
>                  >>
>                  >>
>                 ------------------------------------------------------------------------------
>                  >> Check out the vibrant tech community on one of the
>                 world's most
>                  >> engaging tech sites, Slashdot.org!
>                 http://sdm.link/slashdot
>                  >> _______________________________________________
>                  >> TikiWiki-devel mailing list
>                  >> [hidden email]
>                 <mailto:[hidden email]>
>                  >>
>                 https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>                 <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>                  >>
>                  >>
>                  >>
>                  >>
>                  >>
>                  >>
>                 ------------------------------------------------------------------------------
>                  >> Check out the vibrant tech community on one of the
>                 world's most
>                  >> engaging tech sites, Slashdot.org!
>                 http://sdm.link/slashdot
>                  >> _______________________________________________
>                  >> TikiWiki-devel mailing list
>                  >> [hidden email]
>                 <mailto:[hidden email]>
>                  >>
>                 https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>                 <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>                  >>
>                  >
>                  >
>                  >
>                 ------------------------------------------------------------------------------
>                  > Check out the vibrant tech community on one of the
>                 world's most
>                  > engaging tech sites, Slashdot.org!
>                 http://sdm.link/slashdot
>                  > _______________________________________________
>                  > TikiWiki-devel mailing list
>                  > [hidden email]
>                 <mailto:[hidden email]>
>                  >
>                 https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>                 <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>                  >
>
>
>
>                 --
>                 Marc Laporte
>
>                 http://WikiSuite.org
>                 http://PluginProblems.com
>                 http://Avan.Tech
>
>                 ------------------------------------------------------------------------------
>                 Check out the vibrant tech community on one of the
>                 world's most
>                 engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>                 _______________________________________________
>                 TikiWiki-devel mailing list
>                 [hidden email]
>                 <mailto:[hidden email]>
>                 https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>                 <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>
>
>
>
>         ------------------------------------------------------------------------------
>         Check out the vibrant tech community on one of the world's most
>         engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>         _______________________________________________
>         TikiWiki-devel mailing list
>         [hidden email]
>         <mailto:[hidden email]>
>         https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>         <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Marc Laporte-3
I activated mPDF and was able to generate a PDF. Looks good.

Thanks!

On Fri, Jun 30, 2017 at 11:14 AM, Gary Cunningham-Lee
<[hidden email]> wrote:

> Hi J-M,
>
> You're added.
>
> -- Gary
>
> On 6/30/2017 9:58 PM, Jean-Marc Libs wrote:
>>
>> I can't set mPDF in themes because my login (jyhem) does not have
>> permission for https://themes.tiki.org/tiki-admin.php?page=print
>>
>> Can anyone who is admin on themes add me to the Admins group?
>>
>> BTW, I tried to change the admin password but I get "Account requires
>> administrator approval. " on admin login! :-(
>>
>> This seems like a big issue with themes for later, with more time :-(
>>
>> Cheers,
>> J-M
>>
>> On Fri, Jun 30, 2017 at 2:13 PM, Jean-Marc Libs <[hidden email]
>> <mailto:[hidden email]>> wrote:
>>
>>     Thanks Amna,
>>
>>     I confirm I could now create a pdf from page
>>     https://dev.tiki.org/Tiki18 !
>>
>>     But pages https://dev.tiki.org/TRIM and https://dev.tiki.org/Tiki17
>>     still fail to create pdfs in a different way:
>>     I get a «Controller not found (AutoSave)» Error box. See attachment.
>>
>>     Maybe not an mPDF issue?
>>
>>     Anyway, since it's good enough to be useful and so it will help make
>>     us look good, I also added the mPDF composer package on doc.tiki.org
>>     <http://doc.tiki.org> and set print to mPDF there. I'll do themes
>>     shortly.
>>
>>     I wonder: The mPDF config sets by default the option "Print Friendly
>>     PDF".
>>     This make pdfs which are not as nice (less colors than the web
>>     pages) for the sake of saving printer toner.
>>
>>     I disabled it on dev.to <http://dev.to> and left it on doc.to
>>     <http://doc.to> so you can compare.
>>
>>     I have a feeling we should show off pdfs which are as nice as we
>>     can. I am not sure people create pdfs just so they can print? We
>>     have a different functionality for printing already.
>>     Opinions?
>>
>>     Cheers,
>>     Jyhem
>>
>>
>>
>>     On Fri, Jun 30, 2017 at 9:53 AM, Amna Usman <[hidden email]
>>     <mailto:[hidden email]>> wrote:
>>
>>         Done. Revision: 63119
>>         http://sourceforge.net/p/tikiwiki/code/63119
>>         <http://sourceforge.net/p/tikiwiki/code/63119>
>>
>>         Please cross check, it should work on servers without CURL.
>>
>>         Regards
>>
>>         Amna Bilal
>>
>>         Chief Technology Officer
>>         Genex Business Solutions
>>         http://www.genexbs.com  | http://www.marts.pk |
>>         http://www.iLahore.com
>>
>>
>>         On Fri, Jun 30, 2017 at 12:46 PM, Amna Usman <[hidden email]
>>         <mailto:[hidden email]>> wrote:
>>
>>             Hi,
>>
>>             Sorry guys I was away for few days. We are not using CURL
>>             anymore for mpdf.
>>
>>             CURL was being used previously to fetch data, now parsed
>>             data is being passed by tiki-print.php.
>>
>>             My bad, I didn't remove the check while cleaning code. Will
>>             remove the check and commit in a while.
>>
>>             Regards
>>
>>             Amna Bilal
>>
>>             Chief Technology Officer
>>             Genex Business Solutions
>>             http://www.genexbs.com  | http://www.marts.pk |
>>             http://www.iLahore.com
>>
>>
>>             On Fri, Jun 30, 2017 at 3:54 AM, Marc Laporte
>>             <[hidden email] <mailto:[hidden email]>> wrote:
>>
>>                 Yes, Jean-Marc
>>
>>                 I just assigned this as a learning task to a new
>>                 developer. Consider it done.
>>
>>                 It will be added to the admin panel (where you set mPDF)
>>                 and to tiki-check.php
>>
>>                 Thanks!
>>
>>                 On Thu, Jun 29, 2017 at 6:31 PM, Jean-Marc Libs
>>                 <[hidden email]
>>                 <mailto:[hidden email]>> wrote:
>>                  > Hi Philippe, thanks,
>>                  >
>>                  > Now I manage to create and download a pdf file, but
>>                 it's an empty zero-sized
>>                  > file. :-(
>>                  > There is nothing in the error log any more.
>>                  >
>>                  > I trust you that the curl extension is missing, but
>>                 the current situation is
>>                  > bad: users have no way of understanding what is wrong.
>>                  >
>>                  > Ahhh, when I move to another page or I reload the
>>                 same page which just
>>                  > failed to be exported as pdf, I see the top-page
>>                 feedback box which contains
>>                  > "mPDF: cURL PHP extension not available"
>>                  > This is progress but it shows too late for people to
>>                 understand it is
>>                  > related :-(
>>                  >
>>                  > Could we improve on this? For instance fill "mPDF:
>>                 cURL PHP extension not
>>                  > available" in place of the pdf content?
>>                  >
>>                  > Cheers,
>>                  > Jyhem
>>                  >
>>                  > On Thu, Jun 29, 2017 at 3:47 PM, Cloutier, Philippe
>>                 (DGARI-Consultant)
>>                  > <[hidden email]
>>                 <mailto:[hidden email]>>
>>                 wrote:
>>                  >>
>>                  >> Hi Jean-Marc,
>>                  >>
>>                  >> This means the curl extension is missing. The broken
>>                 error reporting
>>                  >> should be fixed with r63112.
>>                  >>
>>                  >>
>>                  >>
>>                  >> De : Jean-Marc Libs [mailto:[hidden email]
>>                 <mailto:[hidden email]>]
>>                  >> Envoyé : 28 juin 2017 20:10
>>                  >> À : Tiki developers
>>                 <[hidden email]
>>                 <mailto:[hidden email]>>
>>                  >> Objet : Re: [Tiki-devel] Testing Tiki main sites !!
>>                  >>
>>                  >>
>>                  >>
>>                  >> I tried the instructions on dev.tiki.org
>>                 <http://dev.tiki.org> but then I tried to produce a pdf
>>                  >> from https://dev.tiki.org/Tiki18 and I get on
>>                  >>
>>
>> https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf
>>
>> <https://dev.tiki.org/tiki-print.php?page=Tiki18&display=pdf>
>>                 with an WSOD.
>>                  >>
>>                  >> The error log says:
>>                  >> 2017/06/29 02:04:11 [error] 2368#2368: *6940309
>>                 FastCGI sent in stderr:
>>                  >> "PHP message: PHP Fatal error:  Uncaught exception
>>                 'Exception' with message
>>                  >> 'reporterror library not found. This may be due to a
>>                 typo or caused by a
>>                  >> recent update.' in
>>                 /var/local/dev.tiki.org/www/lib/tikilib.php:80
>>                 <http://dev.tiki.org/www/lib/tikilib.php:80>
>>                  >> Stack trace:
>>                  >> #0 /var/local/dev.tiki.org/www/lib/pdflib.php(259)
>>                 <http://dev.tiki.org/www/lib/pdflib.php(259)>:
>>                  >> TikiLib::lib('reporterror')
>>                  >> #1 /var/local/dev.tiki.org/www/lib/pdflib.php(122)
>>                 <http://dev.tiki.org/www/lib/pdflib.php(122)>:
>>                  >> PdfGenerator->mpdf('https://dev.tik.
>>                 <https://dev.tik.>..', '<div id="rbox_1...', Array)
>>                  >> #2 /var/local/dev.tiki.org/www/tiki-print.php(117)
>>                 <http://dev.tiki.org/www/tiki-print.php(117)>:
>>                  >> PdfGenerator->getPdf('tiki-print.php', Array, '<div
>>                 id="rbox_1...')
>>                  >> #3 {main}
>>                  >>   thrown in
>>                 /var/local/dev.tiki.org/www/lib/tikilib.php
>>                 <http://dev.tiki.org/www/lib/tikilib.php> on line 80"
>> while
>>                  >> reading response header from upstream, client:
>>                 90.126.67.154, server:
>>                  >> dev.tiki.org <http://dev.tiki.org>, request: "GET
>>                 /tiki-print.php?page=Tiki18&display=pdf
>>                  >> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000
>>                 <http://127.0.0.1:9000>", host: "dev.tiki.org
>>                 <http://dev.tiki.org>",
>>                  >> referrer: "https://dev.tiki.org/Tiki18"
>>                  >>
>>                  >> Same on any page I experiment on :-(
>>                  >>
>>                  >>
>>                  >>
>>                  >> Anyone has insight?
>>                  >>
>>                  >>
>>                  >>
>>                  >> Jyhem
>>                  >>
>>                  >>
>>                  >>
>>                  >> On Wed, Jun 28, 2017 at 10:03 PM, Marc Laporte
>>                 <[hidden email] <mailto:[hidden email]>>
>>                  >> wrote:
>>                  >>
>>                  >> Hi Bernard,
>>                  >>
>>                  >> I didn't notice any bugs in my tests. Congrats!
>>                  >>
>>                  >> Would it be possible to run the Composer command to
>>                 install mPDF?
>>                  >> (needs to be done on each Tiki)
>>                  >> https://doc.tiki.org/mPDF#Tiki_17
>>                 <https://doc.tiki.org/mPDF#Tiki_17>
>>                  >>
>>                  >> Thanks!
>>                  >>
>>                  >>
>>                  >>
>>                  >>
>>                  >> On Wed, Jun 28, 2017 at 6:11 AM, Bernard Sfez
>>                 <[hidden email] <mailto:[hidden email]>> wrote:
>>                  >> > Hello Tikiers,
>>                  >> >
>>                  >> > We’ve moved all our main sites to Tiki17 and we
>>                 need people to test and
>>                  >> > report so we can release Tiki 17.
>>                  >> >
>>                  >> > The more the test they will be, the more Tiki 17
>>                 will be another great
>>                  >> > release.
>>                  >> > If everyone take 10mn to do the usual things he
>>                 does on one of our main
>>                  >> > sites they will be thousands of features, options
>>                 and setting that will
>>                  >> > be
>>                  >> > micro-tested.
>>                  >> >
>>                  >> > This QA is a huge apport to the release.
>>                  >> >
>>                  >> > Thanks to test and report.
>>                  >> >
>>                  >> > Bernard Sfez | bsfez.com <http://bsfez.com>
>>                  >> >
>>                  >> >
>>                  >>
>>                  >> >
>>                  >> >
>>
>> ------------------------------------------------------------------------------
>>                  >> > Check out the vibrant tech community on one of the
>>                 world's most
>>                  >> > engaging tech sites, Slashdot.org!
>>                 http://sdm.link/slashdot
>>                  >> > _______________________________________________
>>                  >> > TikiWiki-devel mailing list
>>                  >> > [hidden email]
>>                 <mailto:[hidden email]>
>>                  >> >
>>
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>> <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>>                  >> >
>>                  >>
>>                  >>
>>                  >>
>>                  >> --
>>                  >> Marc Laporte
>>                  >>
>>                  >> http://WikiSuite.org
>>                  >> http://PluginProblems.com
>>                  >> http://Avan.Tech
>>                  >>
>>                  >>
>>                  >>
>>
>> ------------------------------------------------------------------------------
>>                  >> Check out the vibrant tech community on one of the
>>                 world's most
>>                  >> engaging tech sites, Slashdot.org!
>>                 http://sdm.link/slashdot
>>                  >> _______________________________________________
>>                  >> TikiWiki-devel mailing list
>>                  >> [hidden email]
>>                 <mailto:[hidden email]>
>>                  >>
>>
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>> <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>>                  >>
>>                  >>
>>                  >>
>>                  >>
>>                  >>
>>                  >>
>>
>> ------------------------------------------------------------------------------
>>                  >> Check out the vibrant tech community on one of the
>>                 world's most
>>                  >> engaging tech sites, Slashdot.org!
>>                 http://sdm.link/slashdot
>>                  >> _______________________________________________
>>                  >> TikiWiki-devel mailing list
>>                  >> [hidden email]
>>                 <mailto:[hidden email]>
>>                  >>
>>
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>> <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>>                  >>
>>                  >
>>                  >
>>                  >
>>
>> ------------------------------------------------------------------------------
>>                  > Check out the vibrant tech community on one of the
>>                 world's most
>>                  > engaging tech sites, Slashdot.org!
>>                 http://sdm.link/slashdot
>>                  > _______________________________________________
>>                  > TikiWiki-devel mailing list
>>                  > [hidden email]
>>                 <mailto:[hidden email]>
>>                  >
>>
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>> <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>>                  >
>>
>>
>>
>>                 --
>>                 Marc Laporte
>>
>>                 http://WikiSuite.org
>>                 http://PluginProblems.com
>>                 http://Avan.Tech
>>
>>
>> ------------------------------------------------------------------------------
>>                 Check out the vibrant tech community on one of the
>>                 world's most
>>                 engaging tech sites, Slashdot.org!
>> http://sdm.link/slashdot
>>                 _______________________________________________
>>                 TikiWiki-devel mailing list
>>                 [hidden email]
>>                 <mailto:[hidden email]>
>>
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>> <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>         Check out the vibrant tech community on one of the world's most
>>         engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>         _______________________________________________
>>         TikiWiki-devel mailing list
>>         [hidden email]
>>         <mailto:[hidden email]>
>>         https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>         <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>
>>
>>
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> TikiWiki-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



--
Marc Laporte

http://WikiSuite.org
http://PluginProblems.com
http://Avan.Tech

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Dr. Sassafras
In reply to this post by Jean-Marc Libs

On Jun 30, 2017, at 8:13 AM, Jean-Marc Libs <[hidden email]> wrote:

I wonder: The mPDF config sets by default the option "Print Friendly PDF".
This make pdfs which are not as nice (less colors than the web pages) for the sake of saving printer toner.

I disabled it on dev.to and left it on doc.to so you can compare.

I have a feeling we should show off pdfs which are as nice as we can. I am not sure people create pdfs just so they can print? We have a different functionality for printing already.
Opinions?

I wonder how useful that functionality will be at all. Many printers have toner/ink saver options within the print settings already. I sometimes create 2 "printers" one with a toner saving option for scratch print and another for high quality prints (different default settings for the same printer) I also often have a b&w printer. With the b&w printer, when I want colour prints, I always want them looking spectacular. 

Even still, I think your right in the assumption that many pdfs never get printed. They are really handy to send in emails, to archive, etc. I'm sure most pdfs will never get printed. 

However generating a PDF may be a good option for printing. I've compared our current print option with the PDF generation and it looks like the PDF is already perhaps better than our print option. At least on the pages I checked. The PDF generation has the huge advantage as acting like a print preview, which our print page does not. There may be limitations though, like if I wanted to print on a different size paper than the PDF was generated on. In any case, I can see the mPDF replacing the current print option with a bar of options at the top of the screen to adjust the "print" settings, which would really just be PDF settings. Then one could generate a very specific PDF in seconds and ether save or print it.

Even in that print preview control bar, I'm not convinced this mPDF saving option would be warranted.... unless it serves some additional advantage that the built in toner saver options are not able to grant.

Ok, that's probably more rambling than was called for 🙄

Brendan


Cheers,
Jyhem



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Amna Usman
Hi,

We can make "Print friendly" option "Off" by default. Page size, orientation, margins, header/ footer texts, auto TOC etc can all be set via "Print" section in control panel. 

BTW, in Tiki 17, pluginPDF is introduced, that can override pdf global settings for any wiki page. Some advance settings introduced as CoverPage options, watermarks.  The plugin is useful for authors who don't have access to control panels and also handy if one wiki page pdf needs modifications.

Please have a look at https://doc.tiki.org/PluginPDF

In tiki18, plugin PDFPage is added: https://doc.tiki.org/PluginPDFPage

Tiki 18, will have the major boost in PDF generation. We have recently added PDF support for Structures, fixed issues reported in Tiki17 and working on new options.

Regards,



Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Sat, Jul 1, 2017 at 2:42 AM, Dr. Sassafras <[hidden email]> wrote:

On Jun 30, 2017, at 8:13 AM, Jean-Marc Libs <[hidden email]> wrote:

I wonder: The mPDF config sets by default the option "Print Friendly PDF".
This make pdfs which are not as nice (less colors than the web pages) for the sake of saving printer toner.

I disabled it on dev.to and left it on doc.to so you can compare.

I have a feeling we should show off pdfs which are as nice as we can. I am not sure people create pdfs just so they can print? We have a different functionality for printing already.
Opinions?

I wonder how useful that functionality will be at all. Many printers have toner/ink saver options within the print settings already. I sometimes create 2 "printers" one with a toner saving option for scratch print and another for high quality prints (different default settings for the same printer) I also often have a b&w printer. With the b&w printer, when I want colour prints, I always want them looking spectacular. 

Even still, I think your right in the assumption that many pdfs never get printed. They are really handy to send in emails, to archive, etc. I'm sure most pdfs will never get printed. 

However generating a PDF may be a good option for printing. I've compared our current print option with the PDF generation and it looks like the PDF is already perhaps better than our print option. At least on the pages I checked. The PDF generation has the huge advantage as acting like a print preview, which our print page does not. There may be limitations though, like if I wanted to print on a different size paper than the PDF was generated on. In any case, I can see the mPDF replacing the current print option with a bar of options at the top of the screen to adjust the "print" settings, which would really just be PDF settings. Then one could generate a very specific PDF in seconds and ether save or print it.

Even in that print preview control bar, I'm not convinced this mPDF saving option would be warranted.... unless it serves some additional advantage that the built in toner saver options are not able to grant.

Ok, that's probably more rambling than was called for 🙄

Brendan


Cheers,
Jyhem



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Jean-Marc Libs
Hi Amna,

Yes please, let's make "Print friendly" option "Off" by default. Everybody who voiced an opinion agreed with this.

It's really great that everything can be configured afterwards, but people who evaluate the PDF production capabilities of Tiki will start with default settings and they need to see we can produce high quality PDFs. That is the thing which will convince them to spend more time on the feature, read the doc, experiment with options.

Sorry for the late reaction.

Cheers,
Jyhem

On Sat, Jul 1, 2017 at 7:44 AM, Amna Usman <[hidden email]> wrote:
Hi,

We can make "Print friendly" option "Off" by default. Page size, orientation, margins, header/ footer texts, auto TOC etc can all be set via "Print" section in control panel. 

BTW, in Tiki 17, pluginPDF is introduced, that can override pdf global settings for any wiki page. Some advance settings introduced as CoverPage options, watermarks.  The plugin is useful for authors who don't have access to control panels and also handy if one wiki page pdf needs modifications.

Please have a look at https://doc.tiki.org/PluginPDF

In tiki18, plugin PDFPage is added: https://doc.tiki.org/PluginPDFPage

Tiki 18, will have the major boost in PDF generation. We have recently added PDF support for Structures, fixed issues reported in Tiki17 and working on new options.

Regards,



Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Sat, Jul 1, 2017 at 2:42 AM, Dr. Sassafras <[hidden email]> wrote:

On Jun 30, 2017, at 8:13 AM, Jean-Marc Libs <[hidden email]> wrote:

I wonder: The mPDF config sets by default the option "Print Friendly PDF".
This make pdfs which are not as nice (less colors than the web pages) for the sake of saving printer toner.

I disabled it on dev.to and left it on doc.to so you can compare.

I have a feeling we should show off pdfs which are as nice as we can. I am not sure people create pdfs just so they can print? We have a different functionality for printing already.
Opinions?

I wonder how useful that functionality will be at all. Many printers have toner/ink saver options within the print settings already. I sometimes create 2 "printers" one with a toner saving option for scratch print and another for high quality prints (different default settings for the same printer) I also often have a b&w printer. With the b&w printer, when I want colour prints, I always want them looking spectacular. 

Even still, I think your right in the assumption that many pdfs never get printed. They are really handy to send in emails, to archive, etc. I'm sure most pdfs will never get printed. 

However generating a PDF may be a good option for printing. I've compared our current print option with the PDF generation and it looks like the PDF is already perhaps better than our print option. At least on the pages I checked. The PDF generation has the huge advantage as acting like a print preview, which our print page does not. There may be limitations though, like if I wanted to print on a different size paper than the PDF was generated on. In any case, I can see the mPDF replacing the current print option with a bar of options at the top of the screen to adjust the "print" settings, which would really just be PDF settings. Then one could generate a very specific PDF in seconds and ether save or print it.

Even in that print preview control bar, I'm not convinced this mPDF saving option would be warranted.... unless it serves some additional advantage that the built in toner saver options are not able to grant.

Ok, that's probably more rambling than was called for 🙄

Brendan


Cheers,
Jyhem



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Tiki-devel] mPDF testing on tiki.org sites (RE: Testing Tiki main sites !!)

Amna Usman

Hi Jyhem

That makes sense,  will update.  Thanks for testing and feedback.

Regards

On Jul 7, 2017 4:55 AM, "Jean-Marc Libs" <[hidden email]> wrote:
Hi Amna,

Yes please, let's make "Print friendly" option "Off" by default. Everybody who voiced an opinion agreed with this.

It's really great that everything can be configured afterwards, but people who evaluate the PDF production capabilities of Tiki will start with default settings and they need to see we can produce high quality PDFs. That is the thing which will convince them to spend more time on the feature, read the doc, experiment with options.

Sorry for the late reaction.

Cheers,
Jyhem

On Sat, Jul 1, 2017 at 7:44 AM, Amna Usman <[hidden email]> wrote:
Hi,

We can make "Print friendly" option "Off" by default. Page size, orientation, margins, header/ footer texts, auto TOC etc can all be set via "Print" section in control panel. 

BTW, in Tiki 17, pluginPDF is introduced, that can override pdf global settings for any wiki page. Some advance settings introduced as CoverPage options, watermarks.  The plugin is useful for authors who don't have access to control panels and also handy if one wiki page pdf needs modifications.

Please have a look at https://doc.tiki.org/PluginPDF

In tiki18, plugin PDFPage is added: https://doc.tiki.org/PluginPDFPage

Tiki 18, will have the major boost in PDF generation. We have recently added PDF support for Structures, fixed issues reported in Tiki17 and working on new options.

Regards,



Amna Bilal

Chief Technology Officer 
Genex Business Solutions


On Sat, Jul 1, 2017 at 2:42 AM, Dr. Sassafras <[hidden email]> wrote:

On Jun 30, 2017, at 8:13 AM, Jean-Marc Libs <[hidden email]> wrote:

I wonder: The mPDF config sets by default the option "Print Friendly PDF".
This make pdfs which are not as nice (less colors than the web pages) for the sake of saving printer toner.

I disabled it on dev.to and left it on doc.to so you can compare.

I have a feeling we should show off pdfs which are as nice as we can. I am not sure people create pdfs just so they can print? We have a different functionality for printing already.
Opinions?

I wonder how useful that functionality will be at all. Many printers have toner/ink saver options within the print settings already. I sometimes create 2 "printers" one with a toner saving option for scratch print and another for high quality prints (different default settings for the same printer) I also often have a b&w printer. With the b&w printer, when I want colour prints, I always want them looking spectacular. 

Even still, I think your right in the assumption that many pdfs never get printed. They are really handy to send in emails, to archive, etc. I'm sure most pdfs will never get printed. 

However generating a PDF may be a good option for printing. I've compared our current print option with the PDF generation and it looks like the PDF is already perhaps better than our print option. At least on the pages I checked. The PDF generation has the huge advantage as acting like a print preview, which our print page does not. There may be limitations though, like if I wanted to print on a different size paper than the PDF was generated on. In any case, I can see the mPDF replacing the current print option with a bar of options at the top of the screen to adjust the "print" settings, which would really just be PDF settings. Then one could generate a very specific PDF in seconds and ether save or print it.

Even in that print preview control bar, I'm not convinced this mPDF saving option would be warranted.... unless it serves some additional advantage that the built in toner saver options are not able to grant.

Ok, that's probably more rambling than was called for 🙄

Brendan


Cheers,
Jyhem



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TikiWiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel