This topic is locked

PDF View Error

7/29/2008 4:08:11 PM
PHPRunner General questions
H
horsey_kim author

PDF view error
I have downloaded the required zip file and upzipped it in the directory as instructed in the manual.
I am using the default template. When I uploaded all the unzipped files did upload. When I went to export several records from the list file it sends me to a view page and shows in red the work UNDEFINED in the message area.
NO pdf. It even runs a little bar to show it is working but then ends in the red word Undefined and then nothing.
Kim <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=9132&image=1&table=forumtopics' class='bbc_emoticon' alt=':huh:' />

501324 7/29/2008

PDF view error

I have downloaded the required zip file and upzipped it in the directory as instructed in the manual.
I am using the default template. When I uploaded all the unzipped files did upload. When I went to export several records from the list file it sends me to a view page and shows in red the work UNDEFINED in the message area.
NO pdf. It even runs a little bar to show it is working but then ends in the red word Undefined and then nothing.
Kim <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=31540&image=1&table=forumreplies' class='bbc_emoticon' alt=':huh:' />


I have the same problem. I wish someone would post one that's working so I could get the idea about how it's suppose to work.

Z
zeitsprung 7/29/2008

I have the same problem. I wish someone would post one that's working so I could get the idea about how it's suppose to work.



...you're not alone

J
Jane 7/30/2008

Hi,
please make sure gd2 extension is turned on in your php.ini file.

More info here:

http://php.net/manual/en/image.installation.php

P
pengas 8/4/2008

Hi,

please make sure gd2 extension is turned on in your php.ini file.

More info here:

http://php.net/manual/en/image.installation.php


Hi Jane,
GD library is enabled for the hosting service I am using, with version 2.0.28.

I am still getting the same error as the other guys specified above.
Any other possible culprits?
Thank you,

Pengas

J
Jane 8/4/2008

Pengas,
It's difficult to tell you what's happening without seeing actual files.

You can send your FTP details to support@xlinesoft.com and I'll try to help you.

H
horsey_kim author 8/4/2008

Jane -
GD2 is enabled and I have done exactly what the manual has said to do. So I am at a loss as to why the pdf view does not work.
Kim

H
horsey_kim author 8/4/2008

UPDATE:
I thought I try a different template to see if the default template was the problem. So I picked the London one to test.
I then build and upload and it got a different error. Something about memory error.
I then found these instructions in another posting:
Add this line to the beginning of generated include\dbcommon.php file:
ini_set("memory_limit","128M");
I made that change to the dbcommon file in the phprunner source\include\dbcommon.php file and rebuild and upload.
It worked but the pdf file has some issues with the layout of london. I then chose default again and it worked nicely.
I am also wondering that maybe some file uploaded with the london format that was not in the default one?
Anyway it is working now for me.

P
pengas 8/4/2008

UPDATE:

I thought I try a different template to see if the default template was the problem. So I picked the London one to test.
I then build and upload and it got a different error. Something about memory error.
I then found these instructions in another posting:
Add this line to the beginning of generated include\dbcommon.php file:
ini_set("memory_limit","128M");
I made that change to the dbcommon file in the phprunner source\include\dbcommon.php file and rebuild and upload.
It worked but the pdf file has some issues with the layout of london. I then chose default again and it worked nicely.
I am also wondering that maybe some file uploaded with the london format that was not in the default one?
Anyway it is working now for me.


I did not experience that error but tried it nevertheless.

Still, the PDF starts building and then the error is being reported.

500424 8/7/2008

so every time you change some thing you will have to add that line?
ini_set("memory_limit","128M");

J
Jane 8/8/2008

You can add this line to the source C:/Program Files/PHPRunner4.2/source/include/dbcommon.php file directly.

500425 8/8/2008

but then every time you rebuild your site you would have to put that in manually? yes or no ?

T
thesofa 8/8/2008

If you change the source files, it gets built in. That is what source means.

If you chose not to alter the source files, then you have to change the built files each time you rebuild.

Understand?

Yes or No?

500426 8/8/2008

no. but I'm learning.

I will find the source file and and see if I can figure out where you add that line.. next week. right now it's friday and I'm off.

have a nice weekend.

Patti

T
thesofa 8/8/2008

Sorry I was snappish, find the file and insert the line right after the first line of the file, it reads

<?php



This tells the compiler that we are talking php and not html.

If you add

ini_set("memory_limit","128M");



straight after the first line, it automatically increases the memory available for the programme to use.

so now there first few lines of the file read

<?php

ini_set("memory_limit","128M");

if(@$_SERVER["REQUEST_URI"])

{



Have a good weekend too.

500427 8/8/2008

thank you the sofa for the step by step directions I will give it a try on Monday and I'm sure that it will work.

Have a great weekend hope it's nice where you are.

Patti

500428 8/12/2008

the sofa thanks for the help I got it working.

Patti

T
thesofa 8/13/2008

Thank you, fair lady, Have a good one yourself too.

R
racetech 10/24/2008

Hi,
I add this line to the beginning of generated include\dbcommon.php file:
ini_set("memory_limit","128M");
But the bar, after click on the pdf link in view table, charge to 69% and show "undefined" in red.
I use PHPRunner 5.0 Build 448....
I need help please...
Thanks
Fernando

J
Jane 10/24/2008

Fernandom
It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.