Thread: [pidget-users] pidget sample script spits out errors
Brought to you by:
lkehresman
From: Dmitri <dmi...@ya...> - 2003-10-16 11:39:20
|
Hello I compiled php5, and apache without problems. However I'm having trouble getting pidget to work. I copied the src directory into /usr/local/include/php/pidget (I renamed src to pidget) and I set the include dir in my php.ini. Here's my include: include_path = "/usr/local/lib:/usr/local/lib/php:/usr/local/include/php:/usr/local/inc lude:/usr/local/include/php/pidget:/usr/local/include/php/pidget/widgets :/usr/local/include/php/pidget/styles:/usr/local/include/php/pidget/hand lers:/usr/local/include/php/pidget/interfaces:/usr/local/include/php/pid get/layouts" I copied and pasted an example from the mailing list and it's giving me a bunch of errors: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /www/htdocs/misc/pidget/src/htdocs/index.php:1) in /usr/local/include/php/pidget/pGeneral.inc on line 30 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/htdocs/misc/pidget/src/htdocs/index.php:1) in /usr/local/include/php/pidget/pGeneral.inc on line 30 Warning: opendir(/www/htdocs/pidget/src/styles/): failed to open dir: No such file or directory in /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 39 Warning: readdir(): supplied argument is not a valid Directory resource in /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 40 Warning: closedir(): supplied argument is not a valid Directory resource in /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 46 Warning: opendir(/www/htdocs/pidget/src/local/styles/): failed to open dir: No such file or directory in /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 39 Warning: readdir(): supplied argument is not a valid Directory resource in /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 40 Warning: closedir(): supplied argument is not a valid Directory resource in /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 46 Pidget WARNING: Could not find style definition for 'default' (using defaults). Warning: Invalid argument supplied for foreach() in /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 87 Warning: Invalid argument supplied for foreach() in /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 87 Pidget Fatal Error: Widget 'pPage' does not have a style. Can someone please tell me how they got pidget to work, or what am I doing wrong? Thanks Dmitri |
From: Luke E. <leh...@cs...> - 2003-10-16 21:08:47
|
Interesting.. The fact that it cannot run session_start() indicates that maybe something is getting printed out to the screen before that function gets called. Check in the index.php and see if there is any white space before the <?php. The other errors seem to be caused by a misconfiguration. You need to open up pGeneral and change the define() functions to reflect your installation. Let us know if that helps.. Luke On Thu, Oct 16, 2003 at 07:37:51AM -0400, Dmitri wrote: > Hello > > I compiled php5, and apache without problems. However I'm having trouble > getting pidget to work. I copied the src directory into > /usr/local/include/php/pidget (I renamed src to pidget) and I set the > include dir in my php.ini. > > > > Here's my include: > > include_path = > "/usr/local/lib:/usr/local/lib/php:/usr/local/include/php:/usr/local/inc > lude:/usr/local/include/php/pidget:/usr/local/include/php/pidget/widgets > :/usr/local/include/php/pidget/styles:/usr/local/include/php/pidget/hand > lers:/usr/local/include/php/pidget/interfaces:/usr/local/include/php/pid > get/layouts" > > > > > > I copied and pasted an example from the mailing list and it's giving me > a bunch of errors: > > > > Warning: session_start(): Cannot send session cookie - headers already > sent by (output started at > /www/htdocs/misc/pidget/src/htdocs/index.php:1) in > /usr/local/include/php/pidget/pGeneral.inc on line 30 > > Warning: session_start(): Cannot send session cache limiter - headers > already sent (output started at > /www/htdocs/misc/pidget/src/htdocs/index.php:1) in > /usr/local/include/php/pidget/pGeneral.inc on line 30 > > Warning: opendir(/www/htdocs/pidget/src/styles/): failed to open dir: No > such file or directory in > /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 39 > > Warning: readdir(): supplied argument is not a valid Directory resource > in /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 40 > > Warning: closedir(): supplied argument is not a valid Directory resource > in /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 46 > > Warning: opendir(/www/htdocs/pidget/src/local/styles/): failed to open > dir: No such file or directory in > /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 39 > > Warning: readdir(): supplied argument is not a valid Directory resource > in /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 40 > > Warning: closedir(): supplied argument is not a valid Directory resource > in /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 46 > Pidget WARNING: Could not find style definition for 'default' (using > defaults). > > Warning: Invalid argument supplied for foreach() in > /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 87 > > Warning: Invalid argument supplied for foreach() in > /usr/local/include/php/pidget/handlers/pPageHandler.inc on line 87 > Pidget Fatal Error: Widget 'pPage' does not have a style. > > > > > > Can someone please tell me how they got pidget to work, or what am I > doing wrong? > > > > Thanks > > Dmitri > -- Luke Ehresman luke[at]ehresman.org http://www.luke.ehresman.org |