1. Are you sure you only have one copy of header2.php(Check in the company folder)
2. Tracing the Textwrap function back to getCellCode:-
File: \reporting\includes\tcpdf.php
2993: if ($align == 'L') {
2994: if ($this->rtl) {
2995: $dx = $w - $width - $this->cMargin;
2996: } else {
2997: $dx = $this->cMargin;
2998: }
2999: } elseif ($align == 'R') {
3000: if ($this->rtl) {
3001: $dx = $this->cMargin;
3002: } else {
3003: $dx = $w - $width - $this->cMargin;
3004: }
3005: } elseif ($align == 'C') {
3006: $dx = ($w - $width) / 2;
3007: } elseif ($align == 'J') {
3008: if ($this->rtl) {
3009: $dx = $w - $width - $this->cMargin;
3010: } else {
3011: $dx = $this->cMargin;
3012: }
Option 'C' does not have a if ($this->rtl) statement so 'C' should have no difference in RTL or LTR
So 2a. Logout, Delete all cache in company folder, delete browser cache(Pref change browser) log back in.
2.b In function Textwrap a function addTextWrap is called, part of function below:-
File: \reporting\includes\class.pdf.inc
294: function addTextWrap($xb, $yb, $w, $h, $txt, $align='left', $border=0, $fill=0, $link = NULL, $stretch = 1, $spacebreak=false)
295: {
296: $ret = "";
297: if (!$this->rtl)
298: {
299: if ($align == 'right')
300: $align = 'R';
301: elseif ($align == 'left')
302: $align = 'L';
303: elseif ($align == 'center')
304: $align = 'C';
305: elseif ($align == 'justify')
306: $align = 'J';
307: }
308: else
309: $align = 'R';
this seems to be expecting the $align variable to be either 'right', 'left', 'justify', 'center'; not R, L, J, or C.
So in header2.php try this:-
$this->TextWrap($col, $this->row, $width, $info_header, 'center');
Delete cache etc
Post back results please
Edit it also states that if rtl everything will be R so try changing the else part to this:-
297: if (!$this->rtl)
298: {
299: if ($align == 'right')
300: $align = 'R';
301: elseif ($align == 'left')
302: $align = 'L';
303: elseif ($align == 'center')
304: $align = 'C';
305: elseif ($align == 'justify')
306: $align = 'J';
307: }
308: else
{
if ($align == 'right')
$align = 'R';// This may need to be 'L'
elseif ($align == 'left')
$align = 'R';
elseif ($align == 'center')
$align = 'C';
elseif ($align == 'justify')
$align = 'J';
}
You may need to change
if ($align == 'right')
$align = 'R';
to
if ($align == 'right')
$align = 'L';
Note you will need to use:-
$this->TextWrap($col, $this->row, $width, $info_header, 'center');
in header2.php for this to work
Also this will affect all ten of the print documents please check all of them: Please pay special attention to Report 108 (Print statements) As Textwrap is called an additional two times.
The FrontAccounting Wiki(Manual, examples, tips, setup info, links to accounting sites, etc) https://frontaccounting.com/fawiki/