00298: Warnings displayed on Printable View

Summary: Warnings displayed on Printable View
Created: 2005-01-24 09:03
Status: Closed - fixed in 2.0.0
Category: Bug
From: MarkS
Assigned:
Priority: 22
Version: 2.0.beta19
OS: Windows NT localhost 5.0 build 2195/Microsoft-IIS 5.0/4.3.1

Description:

When I click on "Printable View" for a page, I am given the following errors;

The pmwiki skin works correctly.

Work around:

Rename "print.php" to "print_old.php". That way print.tmpl is used without warnings being displayed.

New Comment: 2005-08-31

Also wanted to say that if you update the include_path in say, config.php, you'll be set as well. $path = '/path/to/pmwiki-2.0.beta55'; set_include_path(get_include_path() . PATH_SEPARATOR . $path);

Warning output:


At the top of the page


Warning: setskin(pub/skins/print/print.php) [function.setskin]: failed to create stream: No such file or directory in e:\InetPub\svc237\pmwiki\scripts\skins.php on line 54

Warning: setskin() [function.setskin]: Failed opening 'pub/skins/print/print.php' for inclusion (include_path='e:\php') in e:\InetPub\svc237\pmwiki\scripts\skins.php on line 54

Warning: Cannot modify header information - headers already sent by (output started at e:\InetPub\svc237\pmwiki\scripts\skins.php:54) in e:\InetPub\svc237\pmwiki\home.php on line 631


And this at the bottom of the page


PHP Warning: setskin(pub/skins/print/print.php) [function.setskin]: failed to create stream: No such file or directory in e:\InetPub\svc237\pmwiki\scripts\skins.php on line 54 PHP Warning: setskin() [function.setskin]: Failed opening 'pub/skins/print/print.php' for inclusion (include_path='e:\php') in e:\InetPub\svc237\pmwiki\scripts\skins.php on line 54 PHP Warning: Cannot modify header information - headers already sent by (output started at e:\InetPub\svc237\pmwiki\scripts\skins.php:54) in e:\InetPub\svc237\pmwiki\home.php on line 631