Re: Wicked script 2005-03-03_page_id.php errors.

Chuck Hagenbuch <[email protected]> Fri, 4 Mar 2005 22:32:22 -0500
Newsgroups gmane.comp.horde.wicked
Message-ID <[email protected]>
Quoting "Edwin L. Culp" <[email protected]>:

> When I run the 2005-03-03_page_id.php script I get the errors as shown below:
>
> # php 2005-03-03_page_id.php
> PHP Notice:  Undefined index:  SERVER_NAME in
> /usr/local/www/data/horde/config/conf.php on line 8
> PHP Notice:  Undefined index:  SERVER_PORT in
> /usr/local/www/data/horde/config/conf.php on line 9
> PHP Notice:  Undefined index:  SERVER_NAME in
> /usr/local/www/data/horde/config/conf.php on line 16
> Will add page_id to wicked_attachments.
> Will drop page_name from wicked_attachments.
> Will add page_id to wicked_attachment_history.
> Will drop page_name from wicked_attachment_history.
> Working... Creating indices for wicked_attachment_history: DB Error: syntax
> errorlocal1
>
> Should I have done something previous to running the script?

The initial errors are because the script doesn't use Horde_CLI to 
initialize some vars. The other error could use some context, but I 
think I know what it is. Try what I just committed (I added a missing 
var_dump, too, so if it doesn't work it should give you a more complete 
error).

-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams
-- 
wicked mailing list - Join the hunt: http://horde.org/bounties/#wicked
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]