-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linux class not found #4
Comments
I got a message at the Laravel forum that someone has this problem, too. Maybe this is a problem with linux only. I will install a local Debian on Monday and will try to fix this. Can you provide me a route definition snippet which you use and get this error? |
1st===================== 2nd================== |
.\vendor\liebig\cron\src\Liebig\Cron\Cron.php namespace Liebig\Cron; |
Thank you very much for improving Cron. I will test your fix with Linux and Windows and will give you a feedback. |
I am sorry, but at my test environment it is working without your fix. I am running debian on virtual box with apache2. This is my Route file: Route::get('cron/c56ac54aff5505bcb04259303bdf8d18', function () { And this works fine. I fixed the migration case sensitive bug, so please update to head and update your database. Did you use composer to install Cron? |
The same code, it works on windows, but not work on debian. |
Strange issue! Okay, I will add two require_once commands to Cron. Can you please add this two lines and test Cron before I commit the change? namespace Liebig\Cron; Thanks. |
yes~ already. |
…t via the composer autoloader - so we load them the old way Issue #4 - Thanks to waisir for the great help
Fixed - thanks again for the great help, waisir! |
Liebig I think that waisir has something wrong in his env/conf. I really don't know where but I'm using your package in OSX, Redhat and ubuntu an it works fine. How many coders report this issue? |
Thanks, lucasmingarro for your comment. At the moment we have two coders with this problem. I tested everything on Windows 7 and Debian 7.1.0 and it worked. But I can live with the fix because it doesen't mean much overhead. Only if the Cron class is loaded, the two model classes will be loaded, if they are not already. Only if you disable database logging in general, this two classes are not necessary but are loaded. To reach the best compatibility, I decided to commit this fix. I hope you can live with this, too ;) |
hahahaha. I can live with my code so living with this hack will not be a problem :-) |
I am having Fresh install of Laravel and fresh install of Cron, following the Install directions in Readme. |
if (self::isDatabaseLogging()) {
// Get the time (in seconds) between this and the last run and save this to $timeBetween
$lastManager = \Liebig\Cron\models\Manager::orderBy('rundate', 'DESC')->take(1)->get();
if (!empty($lastManager[0])) {
$lastRun = new \DateTime($lastManager[0]->rundate);
The text was updated successfully, but these errors were encountered: