| Author |
Message |
spadata New Member


Joined: Oct 01, 2002 Posts: 4
|
Posted:
Sun Jul 27, 2003 11:11 pm |
|
This error does not appear when you first access KISSQ, but when you look up a stock (or anything else) it appears in between "Your portfolio settings ..." and the table area
Fatal error: Call to undefined function: file_get_contents() in /home/gohot/public_html/main/modules/Stock_Quote/index.php on line 661
KISSQ v3.1 PostNuke 726RC3
NEWS does not show up either on mine.
I noticed your site also when you click the stock name at top, goes to generic yahoo finance page - not to the stock's page on yahoo. Can this be fixed somehow? |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Mon Jul 28, 2003 4:42 am |
|
Due to changes that came in PHP4.3.2, it required me to HAVE to rework some logic. In order to use KISSQ and file_get_contents(), you must now be using PHP4.3.0 or greater. That is also why News does not show up. |
|
|
|
 |
spadata New Member


Joined: Oct 01, 2002 Posts: 4
|
Posted:
Mon Jul 28, 2003 10:34 pm |
|
Cpanel Version/Build 7.2.1-STABLE Build 85
Operating System Linux
Apache Version 1.3.28 (Unix)
Perl Version 5.006001
PHP Version 4.2.3
Mysql Version 4.0.13
Is what's on the server now. They did have the latest PHP on the server but it caused so much outage, they took it back off. A lot of the PN modules ceased working with the newest PHP version also. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Tue Jul 29, 2003 5:51 am |
|
If they were having problems it's because they have it misconfigured. In any event, KISSQ will not work unless you have 4.3.x. There are work-arounds, but it will involve recoding. Your host needs to at least install 4.3.1. They need to get some people working there that understand how to configure PHP. There are thousands upon tens of thousands of hosts/sites using 4.3.2, including PN sites, that have no issues at all. Otherwise you would be hearing a cry around the world and PHP would pull their release or fix it. Changing hosts would be my suggestion, not for my application, but for a host that can support you technically. Just my opinion  |
|
|
|
 |
spadata New Member


Joined: Oct 01, 2002 Posts: 4
|
Posted:
Tue Jul 29, 2003 12:48 pm |
|
Well - for fun (I'm still learning php)
I rem'd line 661 in kissq-3.1\modules\Stock_Quote\index.php
and then removed the rem's ( / / ) in lines 558, 559, 560
It all works perfectly now - including the news feed. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Tue Jul 29, 2003 12:54 pm |
|
That would be true as it worked with the prior versions. Thanks for pointing that out and I'm glad I left that code in there! What I will do now is to put logic in that checks the version and applies the appropriate code. Thanks again. |
|
|
|
 |
spadata New Member


Joined: Oct 01, 2002 Posts: 4
|
Posted:
Wed Jul 30, 2003 3:54 pm |
|
It's still the only stock [program worth having on PostNuke!  |
|
|
|
 |
|
|
|
|