Avantfax - coverpage.html - Error

Discussion in 'General' started by insanadair, Oct 15, 2010.

  1. insanadair

    Joined:
    Oct 15, 2010
    Messages:
    1
    Likes Received:
    0
    I use a coverpage.html But have a error ! What is problem ?

    Html Cover Page Error is : Warning: array_key_exists(): The first argument should be either a string or an integ er in /var/www/avantfax/includes/functions.php on line 1337

    OS : ubuntu 8.04 Avantfax : 3.3.3

    is it true in sendfax.php coverpage value

    $first_cover = NULL; // is it true ?
    $selected_cover = NULL; // is it true ?


    Code:
    Warning: array_key_exists(): The first argument should be either a string or an integ
    er in /var/www/avantfax/includes/functions.php on line 1337
    Warning: array_key_exists(): The first argument should be either a string or an integ
    er in /var/www/avantfax/includes/functions.php on line 1337
    Warning: array_key_exists(): The first argument should be either a string or an integ
    er in /var/www/avantfax/includes/functions.php on line 1337
    <!DOCTYPE html PUBLIC "?//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/
    xhtml1/DTD/xhtml1?transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http?equiv="Content?Type" content="text/html; charset=UTF?8" />
    <title>AvantFAX</title>
    <style type="text/css">
    body {
    font?family:Arial, Helvetica, sans?serif;
    /*font?family:"Courier New", Courier, monospace;*/
    /*font?family:"Times New Roman", Times, serif;*/
    }
    </style>
    </head>
    <body>
    <div align="center"><img src="../images/avantfax?logo?bw.jpg" /></div>
    <div align="center">
    <table width="530" border="0">
    <tr>
    <th width="128" scope="row"><p align="right">To:</p>
    </th>
    <td width="391"> to</td>
    </tr>
    <tr>
    <th scope="row"><div align="right">Company:</div></th>
    <td>ompany</td>
    </tr>
    <tr>
    <th scope="row"><div align="right">Tel:</div></th>
    <td>number</td>//
            //      Cover page
            //
            // This is the path to your custom cover page
            // The PostScript file must be located in the images/ directory
            $COVERPAGE_FILE                 = 'cover.ps'; // ie: mycover.ps, coverpage.html
    
            // The new cover page feature allows you to use an HTML page as your cover page
            // This means that it will be much easier to make your own coverpages to be used with AvantFAX/HylaFAX
            // Your custom HTML cover page must be located in AvantFAX's "images" directory
            // This feature requires html2ps.  AvantFAX was tested with version 1.0 beta5
            // To download html2ps, follow this URL: http://user.it.uu.se/~jan/html2ps.html
            $HTML2PS                                = '/usr/local/bin/html2ps';     // path to html2ps
    
            // if you need to change the document size
            $PAPERSIZE                              = 'a4'; // a4, letter
    
            // Cover Page options (for postscript cover pages)
            $CPAGE_LINELEN                  = 80;  // max line length
    
            //
            //      Printer Settings
            //
            // Printing support for received faxes to enable support, change to true
            $PRINTFAXRCVD                   = false;
    
    </tr>
    <tr>
    <th scope="row"><div align="right">Fax:</div></th>
    <td>number</td>
    </tr>
    <tr>
    <th scope="row">&nbsp;</th>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <th scope="row"><div align="right">From:</div></th>
    <td>from</td>
    </tr>
    <tr>
    <th scope="row"><div align="right">Company:</div></th>
    <td>ompany</td>
    </tr>
    <tr>
    <th scope="row"><div align="right">Tel:</div></th>
    <td>number</td>
    </tr>
    <tr>
    <th scope="row"><div align="right">Fax:</div></th>
    <td>number</td>
    </tr>
    <tr>
    <th scope="row">&nbsp;</th>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <th scope="row"><div align="right">Regarding:</div></th>
    <td>arding</td>
    </tr>
    <tr>
    <th scope="row"><div align="right">Date:</div></th>
    <td>s?date</td>
    </tr>
    <tr>
    <th scope="row">&nbsp;</th>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <th scope="row"><div align="right">Remaining pages:</div></th
    >
    <td>?count</td>
    </tr>
    <tr>
    <th scope="row">&nbsp;</th>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <th scope="row"><div align="right">Comments:</div></th>
    <td>&nbsp;</td>
    </tr>
    </table>
    <table width="530" border="0">
    <tr valign="top">
    <td width="525"><p>comments</p></td>
    </tr>
    </table>
    </div>
    <p>&nbsp;</p>
    </body>
    </html>
    
    --------------------------------------------
    sendfax.php is below

    Code:
    ******************************************************************************************************************************
                            SETUP COVER PAGES
             ******************************************************************************************************************************/      
            $coverinst              = new Covers;
            $covers                 = $coverinst->get_covers();
            $cover_list             = array();
            $first_cover    = NULL;
            $selected_cover = NULL;
    
            if (is_array($covers)) {
                    foreach ($covers as $cover) {
                            if ($coverinst->load_cover($cover)) {
                                    if (!$first_cover) $first_cover = $cover;
                                    if ($_SESSION[USERSESSION]->coverpage_id == $coverinst->get_cover_id()) {
                                            $selected_cover = $cover;
                                    }
                                    $cover_list[$cover] = $coverinst->get_title();
                            }
                    }
            }
    
            /******************************************************************************************************************************
    
    -----------------------------------------------------

    local_config.php is below

    Code:
            //
            //      Cover page
            //
            // This is the path to your custom cover page
            // The PostScript file must be located in the images/ directory
            $COVERPAGE_FILE                 = 'coverpage.html'; // ie: mycover.ps, coverpage.html
    
            // The new cover page feature allows you to use an HTML page as your cover page
            // This means that it will be much easier to make your own coverpages to be used with AvantFAX/HylaFAX
            // Your custom HTML cover page must be located in AvantFAX's "images" directory
            // This feature requires html2ps.  AvantFAX was tested with version 1.0 beta5
            // To download html2ps, follow this URL: http://user.it.uu.se/~jan/html2ps.html
            $HTML2PS                                = '/usr/local/bin/html2ps';     // path to html2ps
    
            // if you need to change the document size
            $PAPERSIZE                              = 'a4'; // a4, letter
    
            // Cover Page options (for postscript cover pages)
            $CPAGE_LINELEN                  = 80;  // max line length
    
            //
            //      Printer Settings
            //
            // Printing support for received faxes to enable support, change to true
            $PRINTFAXRCVD                   = false;
    
    
    
     

Share This Page