You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is related to BladeOne or to the PHP.
PHP v 8.3
BladeOne 3.52
I know is an old version, but for what is use it has been working fine up to yesterday.
The problem is here $view = $blade->run('www.index', compact('data'));
Then I do this: echo $view; and exit;
That is ok, but I need to send and email:
$mail->bodyHtml = $blade->run('email.message', compact('data'));
$mail->addAddress( $data->email);
My script doesn't pass from $mail->bodyHtml = $blade->run(); ... it renders the html and doesn't continue,
Like I said, just a few days back it was fine, and yesterday we had a server update, not sure what was updated, but something was, I'm using a share host, so I don't have much information as to what was updated...
The text was updated successfully, but these errors were encountered:
You want to pass the rendered blade to the Mail::$bodyHTML but it outputs the email body.
Looking at the defination of BladeOne::evaluatePath which is called by BladeOne::run() it starts and output buffer and returns it content.
I don't think it is a library issue however, it your case it might be possible that PHP's output buffer gets full and then it sends all content out and clearing it, or alternatively might not be turned on at all.
Troubleshooting steps might be:
Check output buffering is turned on.
Increase the size of output buffer, if email body is larger than currently allow value.
I'm not sure if this is related to BladeOne or to the PHP.
PHP v 8.3
BladeOne 3.52
I know is an old version, but for what is use it has been working fine up to yesterday.
The problem is here $view = $blade->run('www.index', compact('data'));
Then I do this: echo $view; and exit;
That is ok, but I need to send and email:
$mail->bodyHtml = $blade->run('email.message', compact('data'));
$mail->addAddress( $data->email);
My script doesn't pass from $mail->bodyHtml = $blade->run(); ... it renders the html and doesn't continue,
Like I said, just a few days back it was fine, and yesterday we had a server update, not sure what was updated, but something was, I'm using a share host, so I don't have much information as to what was updated...
The text was updated successfully, but these errors were encountered: