FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Fixed...
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Fixed... [message #10271] Tue, 27 May 2003 14:33 Go to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

Fixed them. Somehow the FUDforum/forum/include/GLOBALS.php had the same problem. Fixed it and the issues went away with the search and compacting.
Re: Fixed... [message #10272 is a reply to message #10271] Tue, 27 May 2003 14:34 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

Not fixed. The GLOBALS.php keeps reverting back to not having the ?> in it.

I'm confused....
Re: Fixed... [message #10273 is a reply to message #10272] Tue, 27 May 2003 14:36 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Ok, 1st of all make sure that GLOBALS.php inside forum's root dir & adm/ dir are indeed symlinks to the GLOBALS.php inside the include/ directory and not copies. Then edit your GLOBALS.php for the final time ensuring that the file GLOBALS.php does include core.inc

FUDforum Core Developer
Re: Fixed... [message #10274 is a reply to message #10273] Tue, 27 May 2003 14:41 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Tue, 27 May 2003 10:36

Ok, 1st of all make sure that GLOBALS.php inside forum's root dir & adm/ dir are indeed symlinks to the GLOBALS.php inside the include/ directory and not copies. Then edit your GLOBALS.php for the final time ensuring that the file GLOBALS.php does include core.inc



AH HA!! I know what's causing the error in my case. When I run a Forum Consistency, it's re-writing my GLOBALS.php and wiping out my manual addition of the ?>.

Also, I seem to be your problem child today...hehehe I have an issue with the PDF "publication" thing. Error message is.....

Fatal error: Call to undefined function: std_error() in /www/html/neutron.intranet.net/FUDforum2/pdf.php on line 812

Re: Fixed... [message #10278 is a reply to message #10274] Tue, 27 May 2003 15:06 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Hmmm... I thought that bug was solved :/

Could you tell me if you have pdf support in your php?


FUDforum Core Developer
Re: Fixed... [message #10279 is a reply to message #10278] Tue, 27 May 2003 15:37 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Tue, 27 May 2003 11:06

Hmmm... I thought that bug was solved :/

Could you tell me if you have pdf support in your php?



Doesn't look like it. I can't seem to find location of the .so module to add to the extension= section.
Re: Fixed... [message #10280 is a reply to message #10279] Tue, 27 May 2003 15:55 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It is likely that the distro you are using did not provide you with such a .so file, so if you want to use that feature you'll need to compile ext/pdf manually.

FUDforum Core Developer
Re: Fixed... [message #10284 is a reply to message #10280] Tue, 27 May 2003 16:26 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Tue, 27 May 2003 11:55

It is likely that the distro you are using did not provide you with such a .so file, so if you want to use that feature you'll need to compile ext/pdf manually.


Installed and moved libpdf_php.so to the appropriate directory, and enabled it in php.ini, and get the following error...

Fatal error: Call to undefined function: invl_inp_err() in /www/html/neutron.intranet.net/FUDforum2/pdf.php on line 904


I hate being a problem child...hehehe
Re: Fixed... [message #10287 is a reply to message #10284] Tue, 27 May 2003 16:33 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Did you enable PDF output via the admin control panel?

FUDforum Core Developer
Re: Fixed... [message #10289 is a reply to message #10287] Tue, 27 May 2003 16:37 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Tue, 27 May 2003 12:33

Did you enable PDF output via the admin control panel?


Yes.
Re: Fixed... [message #10291 is a reply to message #10289] Tue, 27 May 2003 17:02 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Found the cause for the PHP error, the file was missing an include.
Replace pdf.php.t with the one attached and recompile the theme.
  • Attachment: pdf.php.t.gz
    (Size: 3.97KB, Downloaded 737 times)


FUDforum Core Developer
Re: Fixed... [message #10294 is a reply to message #10291] Tue, 27 May 2003 17:12 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Tue, 27 May 2003 13:02

Found the cause for the PHP error, the file was missing an include.
Replace pdf.php.t with the one attached and recompile the theme.


What directory? I can't see the aforementioned file anywhere.
Re: Fixed... [message #10295 is a reply to message #10294] Tue, 27 May 2003 17:19 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
the file can be found inside the src/ directory of your forum.

FUDforum Core Developer
Re: Fixed... [message #10297 is a reply to message #10295] Tue, 27 May 2003 17:22 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Tue, 27 May 2003 13:19

the file can be found inside the src/ directory of your forum.


Got it...Thanks. New error....hehehe

Fatal error: Call to undefined function: pdf_add_outline() in /www/html/neutron.intranet.net/FUDforum2/pdf.php on line 100

Fatal error: PDFlib error [1050] PDF_setlinewidth: [1050] PDF_setlinewidth: Compression error (deflateEnd) in Unknown on line 0


Is this an error with the php doc or the PDFlib?

Re: Fixed... [message #10301 is a reply to message #10297] Tue, 27 May 2003 17:48 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Hmm... which version of pdflib are you using? I am using version 5.0 and have not encountered this error. The php manual also does not indicate that this function should not be avaliable under certain conditions.

FUDforum Core Developer
Re: Fixed... [message #10302 is a reply to message #10301] Tue, 27 May 2003 18:17 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Tue, 27 May 2003 13:48

Hmm... which version of pdflib are you using? I am using version 5.0 and have not encountered this error. The php manual also does not indicate that this function should not be avaliable under certain conditions.


Downloaded version 5.0 from the pdflib website. Copied the pdflib_php.so file to the directory where my other .so files for PHP are and added the extension= to the php.ini file.

One thing I did notice is that it was for PHP 4.2.1 and I am running 4.2.3. They didn't have one for 4.2.3.
Re: Fixed... [message #10303 is a reply to message #10302] Tue, 27 May 2003 18:19 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Hmm you've used their library, that may explain the problem, I had actually compiled ext/pdf from scatch.

You can try using the attached pdf.php.t, I've replaced the function in question with an alternate one.
  • Attachment: pdf.php.t.gz
    (Size: 3.97KB, Downloaded 613 times)


FUDforum Core Developer
Re: Fixed... [message #10304 is a reply to message #10303] Tue, 27 May 2003 18:30 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Tue, 27 May 2003 14:19

Hmm you've used their library, that may explain the problem, I had actually compiled ext/pdf from scatch.

You can try using the attached pdf.php.t, I've replaced the function in question with an alternate one.



New one....

Fatal error: PDFlib error [1118] PDF_stringwidth2: [1118] PDF_stringwidth2: Handle parameter 'font' has bad value 0 in /www/html/neutron.intranet.net/FUDforum2/pdf.php on line 110

Re: Fixed... [message #10305 is a reply to message #10304] Tue, 27 May 2003 19:11 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
That's a strange error, it implies that font loading failed, but I see no error to indicate that had happened in your report.

I would recommend to compile manually the ext/pdf extension and not use the pre-compiled binaries part of the pdflib distro.


FUDforum Core Developer
Re: Fixed... [message #10306 is a reply to message #10305] Tue, 27 May 2003 19:14 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Tue, 27 May 2003 15:11

That's a strange error, it implies that font loading failed, but I see no error to indicate that had happened in your report.

I would recommend to compile manually the ext/pdf extension and not use the pre-compiled binaries part of the pdflib distro.


Ok. Did you use the PDFlite version of the PDFlib? It looks like the only one with source available, according to the web site.
Re: Fixed... [message #10307 is a reply to message #10306] Tue, 27 May 2003 19:15 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
http://www.pdflib.com/products/pdflib/download/PDFlib-Lite-5.0.0-Unix-src.tar.gz

The above URL is the link to the library I am using.


FUDforum Core Developer
Re: Fixed... [message #10308 is a reply to message #10307] Tue, 27 May 2003 19:24 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Tue, 27 May 2003 15:15

http://www.pdflib.com/products/pdflib/download/PDFlib-Lite-5.0.0-Unix-src.tar.gz

The above URL is the link to the library I am using.


Coolness. That's the one I thought. Downloading it now.
Re: Fixed... [message #10311 is a reply to message #10307] Tue, 27 May 2003 20:07 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Tue, 27 May 2003 15:15

http://www.pdflib.com/products/pdflib/download/PDFlib-Lite-5.0.0-Unix-src.tar.gz

The above URL is the link to the library I am using.


It's not going to let me rebuild it unless I completely rebuild PHP too. I guess I will just do without PDF support. Because I don't want to go through the hassle of rebuilding PHP too.
Re: Fixed... [message #10315 is a reply to message #10311] Tue, 27 May 2003 21:29 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Actually not quite right, if you

--with-pdflib=/usr/local,so

it'll build you a shared module.


FUDforum Core Developer
Re: Fixed... [message #10322 is a reply to message #10315] Wed, 28 May 2003 12:21 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Tue, 27 May 2003 17:29

Actually not quite right, if you

--with-pdflib=/usr/local,so

it'll build you a shared module.


I'll work on that today and tell you how it goes. The problem I see is people aren't going to want to muck about with their PHP installations if they have DSO already compiled into their PHP. Especially when there are already PHP PDFLib modules already "precompiled". That's one of the nice things about FUDForum is you configure and go. Alot of people are using the default PHP/Apache compilations that come with their distro. In most cases PHP is already compiled with DSO support. If they're being hosted by another company, they might not have access to recompile PHP.
Re: Fixed... [message #10324 is a reply to message #10322] Wed, 28 May 2003 12:41 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Well, I am not sure why the module you are using does not work, generally the .so modules that people have are the ones that were compiled by their distro or ISP during php install and those tend to work fine. The .so from lib maintainers I've never used and considering the .so is technically for another version of PHP problems are to be expected.

FUDforum Core Developer
Re: Fixed... [message #10325 is a reply to message #10324] Wed, 28 May 2003 12:45 Go to previous messageGo to next message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Wed, 28 May 2003 08:41

Well, I am not sure why the module you are using does not work, generally the .so modules that people have are the ones that were compiled by their distro or ISP during php install and those tend to work fine. The .so from lib maintainers I've never used and considering the .so is technically for another version of PHP problems are to be expected.


According to the PDFlib people the 4.2.1 version of the .so module is specifically designed for use with PHP 4.2.1 through 4.3.1. I am running 4.2.3.

I spent some time exchanging e-mails with them yesterday to see if they had any ideas.
Re: Fixed... [message #10326 is a reply to message #10325] Wed, 28 May 2003 12:47 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
That could very well be the source of the problem, plus given the undefined error you got, I suspect the source code they are using to compile the extension maybe different from the one in ext/pdf.

FUDforum Core Developer
Re: Fixed... [message #10327 is a reply to message #10326] Wed, 28 May 2003 12:51 Go to previous message
ftanner is currently offline  ftanner   United States
Messages: 35
Registered: May 2003
Location: Phoenix, AZ
Karma: 0
Member

prottoss wrote on Wed, 28 May 2003 08:47

That could very well be the source of the problem, plus given the undefined error you got, I suspect the source code they are using to compile the extension maybe different from the one in ext/pdf.


I have the devel package for PHP installed on my system, but I will be damned if I can find the location of the configure file to re-compile it.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: forum 2.5.0RC3 Released, gzuncompress error
Next Topic: 2.5 Install problem
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 05:23:23 GMT 2024

Total time taken to generate the page: 0.02343 seconds