I've checked number of solutions and none have solved my problem. So, decided to open another issue with pretty common error.
My code:
<?php
/**
* Created by PhpStorm.
* User: max
* Date: 04.05.17
* Time: 13:51
*/
?>
<div class="modal-header bg-box">
<button type="button" class="close" data-dismiss="modal" aria-hidden="false">x</button>
<table class="modal-action-header">
<tbody>
<tr>
<td class="modal-action-title">
<h2 class="modal-title">
<i class="fa pe-7s-credit"></i>
sexybox Transaction
</h2>
</td>
<td>
</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-body">
<div class="modal-content-gridview">
<h3>sexybox Transaction</h3>
<div class="broadcast-content">
<div class="text-center">
<?php
if (count($model->errors)) {
foreach ($model->errors as $errorName => $errorMsgs) {
?>
<section class="panel panel-featured-left panel-featured-secondary">
<div class="panel-body">
<div class="widget-summary widget-summary-sm">
<div class="widget-summary-col widget-summary-col-icon">
<div class="summary-icon bg-secondary">
<i class="fa"></i>
</div>
</div>
<div class="widget-summary-col">
<h4 class="title"><?= ucwords(strtolower($errorName)); ?></h4>
<div class="summary">
<?php
foreach ($errorMsgs as $errorMsg) {
?>
<div class="info">
<strong class="amount"><?= $errorMsg; ?></strong>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
</section>
<?php
}
}
?>
<section class="panel panel-featured-left panel-featured-primary">
<div class="panel-body">
<label class="sexybox-type">
<ul>
<li><input type="radio" name="sexyboxType" id="fullsexybox" value="full" onclick="js:$('#sexyboxValueBlock').hide();" /></li>
<li>
<div><h5>Full sexybox</h5></div>
<div>sexybox the full amount(<?=$model->amountNetFormatted; ?>)</div>
</li>
</ul>
</label>
<label class="sexybox-type">
<ul>
<li><input type="radio" name="sexyboxType" id="partialsexybox" value="partial" onclick="js:$('#sexyboxValueBlock').show();" /></li>
<li>
<div><h5>Partial sexybox</h5></div>
<div>sexybox a partial amount</div>
</li>
</ul>
</label>
<label id="sexyboxValueBlock" style="display: none;" class="sexybox-type">
<ul>
<li class="sexybox-amount-text"><h5>sexybox amount:</h5></li>
<li class="sexybox-amount-box"><?=$currency;?> <input type="text" name="sexyboxValue" id="sexyboxValue" /></li>
</ul>
</label>
</div>
</section>
<?=
Html::hiddenInput("transId", $model->id, [
'id' => "transId"
]);
?>
</div>
<div class="text-center">
<div class="text-right form-buttons">
<?=
Html::button(
'Cancel', [
'class' => 'btn btn-cancel',
// 'style' => 'float:left;',
'onclick' => 'js:boxModalPopover.modal(\'hide\');'
]
);
?>
<?=
Html::button(
'sexybox', [
'class' => 'btn btn-info',
// 'style' => 'float:left;',
'onclick' => 'js:$.ajaxsexybox();'
]
);
?>
</div>
</div>
</div>
</div>
</div>
<div class="alert-defaults" style="display: none;">
</div>
<?php
I get error
FastCGI-stderr: PHP message: PHP Parse error: syntax error, unexpected end of file in on one ubuntu box not another that is exactly the same. The file is checked from git on both machines and I've been hitting my head against a wall on why it works on box and another.
Here is the strange thing on the box that it doesn't work when I open a file and resave it then it start working. Essentially there is no lf or crlf in the file, but it works on one of the boxes. What could it be ?
Environment config:
- php 5.5.9 release 17
- ubuntu 14
- lighttpd