Closed ronnievisser closed 11 years ago
To me it sounds like a parse error in your closure or something. Try it out using the sync driver first to make sure it's working.
On Apr 27, 2013, at 2:36 PM, Ronster notifications@github.com wrote:
Hi,
I just created an account at iron.io subscribed to a queue using artisan and sending out emails. I can see in iron queues are working since the messages are increasing.
However in my log files I see the following error message coming up: PHP Fatal error: Uncaught exception 'ErrorException' with message 'Warning: file_get_contents(/home/tweebies/vendor/laravel/framework/src/Illuminate/Support/SerializableClosure.php(173) : eval()'d code): failed to open stream: No such file or directory in ...
Looking at the source I can see that the file is there.
Is there something I am doing wrong of is there something missing.
— Reply to this email directly or view it on GitHub.
Using the same code in the mail::send function works fine, I only changed the send tot queue as you mentioned in your screencast. my code is as follows.
$aData = array('email' => $this->email, 'code' => $this->activationcode);
return (bool) Mail::queue('emails.welcome', $aData, function($oMail) {
$oMail->to($this->email)->subject(Lang::get('mail.subject_activation'))->setCharset('UTF-8');
});
Any news on this? Error also occurs with the following code which is almost the same as in your screencast
Mail::queue('emails.welcome', array(), function($mail) {
$mail->from('info@tweebies.nl')->to($this->email)->subject('Hey!');
});
Nope. I don't really know what to tell you at this point. I've never seen this issue. Perhaps try making a forum post with your code.
@taylorotwell i have the same issue when using 'Mail::queue', any suggest ?
@codex-corp please come out with a different issue (since the original post is 6 months ago, and there been a lot of changes since). And don't forget to provide code to reproduce the bug.
I have the same Uncaught Exception file_get_contents ..... while I try to use eval(); I tried eval( $test ); eval("?>" . $test ); eval("?>" . $test . "<?php");
but none worked.
@Ali-Azmoud Please post on the forums.
In my case I have
\Queue::pushOn('apiato-default', function(){ });
and I get this on console ` [2021-01-25 19:05:53][8d5c51e3-84f3-41b8-9492-a69385ef4b6f] Processing: Closure (ExecutionLoopClosure.php(55) : eval()'d code:1) [2021-01-25 19:05:53][8d5c51e3-84f3-41b8-9492-a69385ef4b6f] Failed: Closure (ExecutionLoopClosure.php(55) : eval()'d code:1) [2021-01-25 19:05:53] production.ERROR: Call to a member function bindTo() on null {"exception":"[object] (Error(code: 0): Call to a member function bindTo() on null at /var/www/vendor/opis/closure/src/SerializableClosure.php:263) [stacktrace]
"} `
Hi,
I just created an account at iron.io subscribed to a queue using artisan and sending out emails. I can see in iron queues are working since the messages are increasing.
However in my log files I see the following error message coming up: PHP Fatal error: Uncaught exception 'ErrorException' with message 'Warning: file_get_contents(/home/tweebies/vendor/laravel/framework/src/Illuminate/Support/SerializableClosure.php(173) : eval()'d code): failed to open stream: No such file or directory in ...
Looking at the source I can see that the file is there.
Is there something I am doing wrong of is there something missing. I am running on PHP 5.4.12