Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
4.15 - PDFWOPrint.php Use of Undefined constant action Error
11-06-2018, 01:52 PM, (This post was last modified: 11-06-2018, 02:09 PM by TurboPT.)
#2
RE: 4.15 - PDFWOPrint.php Use of Undefined constant action Error
Thanks for the report!

Can you try to change lines 314 and 316 from this:
PHP Code:
if ($RequirementsRow['autoissue']==0){
    
$WOLine[$i][action]='Manual Issue';  // line 314
} else {
    
$WOLine[$i][action]='Auto Issue';   // line 316


...to this?
PHP Code:
if ($RequirementsRow['autoissue']==0){
    
$WOLine[$i]['action']='Manual Issue';
} else {
    
$WOLine[$i]['action']='Auto Issue';


...and then change line 476 from this:
PHP Code:
    $Http $_SERVER['HTTPS']?'https://':'http://'

...to this?
PHP Code:
    $Http = !empty($_SERVER['HTTPS']) ? 'https://' 'http://'

Let me know if those work, I'll commit the changes later this week.

That should help the last error too, since the Notice output likely contributed to the "headers already sent" Warning message.
Reply


Messages In This Thread
RE: 4.15 - PDFWOPrint.php Use of Undefined constant action Error - by TurboPT - 11-06-2018, 01:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)