A cronjob expression parser generates an empty page2019 Community Moderator ElectionHow do I get PHP errors to display?PHP's white screen of deathphp __autoload() is not workingHow to use Laravel and GitHub for multiple programmers?unable include google api php client library (google-api-php-clientsrc/Google/autoload.php) in my php filetest.php is returning page not foundLaravel vendor/autoload is missinghow to solve API SDK PHP error?Apache/PHP/Win memory issues, two different systems + code. Same issue'vendor/autoload.php' errors, composer is installed globallyHow should I fix the error when running composer installLogin form giving me emptyfields error despite typing in information into input boxes trying to use PHP and MySQLi
How do spaceships determine each other's mass in space?
What do you call someone who likes to pick fights?
QQ Plot and Shapiro Wilk Test Disagree
Can I negotiate a patent idea for a raise, under French law?
Does an unused member variable take up memory?
I reported the illegal activity of my boss to his boss. My boss found out. Now I am being punished. What should I do?
Was it really inappropriate to write a pull request for the company I interviewed with?
Confusion about Complex Continued Fraction
School performs periodic password audits. Is my password compromised?
What sort of fish is this
Street obstacles in New Zealand
What materials can be used to make a humanoid skin warm?
Is this Paypal Github SDK reference really a dangerous site?
What are some noteworthy "mic-drop" moments in math?
Can the alpha, lambda values of a glmnet object output determine whether ridge or Lasso?
What is this diamond of every day?
Are small insurances worth it?
Power Strip for Europe
NASA's RS-25 Engines
Plausibility of Mushroom Buildings
MySQL importing CSV files really slow
When Schnorr signatures are part of Bitcoin will it be possible validate each block with only one signature validation?
Getting the || sign while using Kurier
How does Ehrenfest's theorem apply to the quantum harmonic oscillator?
A cronjob expression parser generates an empty page
2019 Community Moderator ElectionHow do I get PHP errors to display?PHP's white screen of deathphp __autoload() is not workingHow to use Laravel and GitHub for multiple programmers?unable include google api php client library (google-api-php-clientsrc/Google/autoload.php) in my php filetest.php is returning page not foundLaravel vendor/autoload is missinghow to solve API SDK PHP error?Apache/PHP/Win memory issues, two different systems + code. Same issue'vendor/autoload.php' errors, composer is installed globallyHow should I fix the error when running composer installLogin form giving me emptyfields error despite typing in information into input boxes trying to use PHP and MySQLi
I have a PHP script which performs a SQL query. This works well, the data, formatted as a table, show up.
Then I want to parse a cron expression, to find out when the last three executions of a specific cronjob were planned.
This is the code:
for($i = 0; $i <= 2; $i ++)
$date = $return[$i]->cronexpression;
var_dump($date);
$cron = CronCronExpression::factory($date);
$cron->isDue();
$real_date = $cron->getPreviousRunDate(null, $i)->format('Y-m-d H:i:s');
$return[$i]->cronexpression = $real_date;
The manual for the parser can be found here: https://packagist.org/packages/dragonmantank/cron-expression .
When I add the for-loop and this bit of code:
require_once '/vendor/autoload.php';
the table doesn't show up, an empty page is displayed. The var_dump is not shown in the console. How can I make this work?
Thanks!
Edit:
I found the error.log. It had two messages:
First: [php7:warn] [pid 4916:tid 1544] [client 127.0.0.1:54056] PHP Warning: require_once(/vendor/autoload.php): failed to open stream: No such file or directory in C:xampphtdocscronjob-overviewapiget_cronjob.php on line 7, referer: http://localhost:8080/overview
Second: [php7:error] [pid 4916:tid 1544] [client 127.0.0.1:54056] PHP Fatal error: require_once(): Failed opening required '/vendor/autoload.php' (include_path='C:xamppphpPEAR') in C:xampphtdocscronjob-overviewapiget_cronjob.php on line 7, referer: http://localhost:8080/overview
Line 7 is this: require_once '../vendor/autoload.php';
I checked the vendor folder´, the autoload.php is there. I am puzzled, what else could be the reason?
php cron
|
show 3 more comments
I have a PHP script which performs a SQL query. This works well, the data, formatted as a table, show up.
Then I want to parse a cron expression, to find out when the last three executions of a specific cronjob were planned.
This is the code:
for($i = 0; $i <= 2; $i ++)
$date = $return[$i]->cronexpression;
var_dump($date);
$cron = CronCronExpression::factory($date);
$cron->isDue();
$real_date = $cron->getPreviousRunDate(null, $i)->format('Y-m-d H:i:s');
$return[$i]->cronexpression = $real_date;
The manual for the parser can be found here: https://packagist.org/packages/dragonmantank/cron-expression .
When I add the for-loop and this bit of code:
require_once '/vendor/autoload.php';
the table doesn't show up, an empty page is displayed. The var_dump is not shown in the console. How can I make this work?
Thanks!
Edit:
I found the error.log. It had two messages:
First: [php7:warn] [pid 4916:tid 1544] [client 127.0.0.1:54056] PHP Warning: require_once(/vendor/autoload.php): failed to open stream: No such file or directory in C:xampphtdocscronjob-overviewapiget_cronjob.php on line 7, referer: http://localhost:8080/overview
Second: [php7:error] [pid 4916:tid 1544] [client 127.0.0.1:54056] PHP Fatal error: require_once(): Failed opening required '/vendor/autoload.php' (include_path='C:xamppphpPEAR') in C:xampphtdocscronjob-overviewapiget_cronjob.php on line 7, referer: http://localhost:8080/overview
Line 7 is this: require_once '../vendor/autoload.php';
I checked the vendor folder´, the autoload.php is there. I am puzzled, what else could be the reason?
php cron
What do you mean by "not working"? Do you get any errors? Add error reporting at the top of your file(s):ini_set("display_errors", 1); error_reporting(E_ALL);and tell us what you get.
– FrankerZ
Mar 6 at 14:31
See How do I get php errors to display and PHP WSOD
– Xatenev
Mar 6 at 14:31
Thanks to you both for the quick reply! @FrankerZ: with "not working" I mean that the table doesn't show up. I don't get any errors. I added the lines, but I get no error message.
– Peter
Mar 6 at 14:49
@Xatenev: I checked the php.ini, display_errors is on.
– Peter
Mar 6 at 14:49
A blank page means specifically it's disabled. ADD it to the top. Ensure it's being output.
– FrankerZ
Mar 6 at 14:53
|
show 3 more comments
I have a PHP script which performs a SQL query. This works well, the data, formatted as a table, show up.
Then I want to parse a cron expression, to find out when the last three executions of a specific cronjob were planned.
This is the code:
for($i = 0; $i <= 2; $i ++)
$date = $return[$i]->cronexpression;
var_dump($date);
$cron = CronCronExpression::factory($date);
$cron->isDue();
$real_date = $cron->getPreviousRunDate(null, $i)->format('Y-m-d H:i:s');
$return[$i]->cronexpression = $real_date;
The manual for the parser can be found here: https://packagist.org/packages/dragonmantank/cron-expression .
When I add the for-loop and this bit of code:
require_once '/vendor/autoload.php';
the table doesn't show up, an empty page is displayed. The var_dump is not shown in the console. How can I make this work?
Thanks!
Edit:
I found the error.log. It had two messages:
First: [php7:warn] [pid 4916:tid 1544] [client 127.0.0.1:54056] PHP Warning: require_once(/vendor/autoload.php): failed to open stream: No such file or directory in C:xampphtdocscronjob-overviewapiget_cronjob.php on line 7, referer: http://localhost:8080/overview
Second: [php7:error] [pid 4916:tid 1544] [client 127.0.0.1:54056] PHP Fatal error: require_once(): Failed opening required '/vendor/autoload.php' (include_path='C:xamppphpPEAR') in C:xampphtdocscronjob-overviewapiget_cronjob.php on line 7, referer: http://localhost:8080/overview
Line 7 is this: require_once '../vendor/autoload.php';
I checked the vendor folder´, the autoload.php is there. I am puzzled, what else could be the reason?
php cron
I have a PHP script which performs a SQL query. This works well, the data, formatted as a table, show up.
Then I want to parse a cron expression, to find out when the last three executions of a specific cronjob were planned.
This is the code:
for($i = 0; $i <= 2; $i ++)
$date = $return[$i]->cronexpression;
var_dump($date);
$cron = CronCronExpression::factory($date);
$cron->isDue();
$real_date = $cron->getPreviousRunDate(null, $i)->format('Y-m-d H:i:s');
$return[$i]->cronexpression = $real_date;
The manual for the parser can be found here: https://packagist.org/packages/dragonmantank/cron-expression .
When I add the for-loop and this bit of code:
require_once '/vendor/autoload.php';
the table doesn't show up, an empty page is displayed. The var_dump is not shown in the console. How can I make this work?
Thanks!
Edit:
I found the error.log. It had two messages:
First: [php7:warn] [pid 4916:tid 1544] [client 127.0.0.1:54056] PHP Warning: require_once(/vendor/autoload.php): failed to open stream: No such file or directory in C:xampphtdocscronjob-overviewapiget_cronjob.php on line 7, referer: http://localhost:8080/overview
Second: [php7:error] [pid 4916:tid 1544] [client 127.0.0.1:54056] PHP Fatal error: require_once(): Failed opening required '/vendor/autoload.php' (include_path='C:xamppphpPEAR') in C:xampphtdocscronjob-overviewapiget_cronjob.php on line 7, referer: http://localhost:8080/overview
Line 7 is this: require_once '../vendor/autoload.php';
I checked the vendor folder´, the autoload.php is there. I am puzzled, what else could be the reason?
php cron
php cron
edited Mar 7 at 8:55
Peter
asked Mar 6 at 14:29
PeterPeter
186
186
What do you mean by "not working"? Do you get any errors? Add error reporting at the top of your file(s):ini_set("display_errors", 1); error_reporting(E_ALL);and tell us what you get.
– FrankerZ
Mar 6 at 14:31
See How do I get php errors to display and PHP WSOD
– Xatenev
Mar 6 at 14:31
Thanks to you both for the quick reply! @FrankerZ: with "not working" I mean that the table doesn't show up. I don't get any errors. I added the lines, but I get no error message.
– Peter
Mar 6 at 14:49
@Xatenev: I checked the php.ini, display_errors is on.
– Peter
Mar 6 at 14:49
A blank page means specifically it's disabled. ADD it to the top. Ensure it's being output.
– FrankerZ
Mar 6 at 14:53
|
show 3 more comments
What do you mean by "not working"? Do you get any errors? Add error reporting at the top of your file(s):ini_set("display_errors", 1); error_reporting(E_ALL);and tell us what you get.
– FrankerZ
Mar 6 at 14:31
See How do I get php errors to display and PHP WSOD
– Xatenev
Mar 6 at 14:31
Thanks to you both for the quick reply! @FrankerZ: with "not working" I mean that the table doesn't show up. I don't get any errors. I added the lines, but I get no error message.
– Peter
Mar 6 at 14:49
@Xatenev: I checked the php.ini, display_errors is on.
– Peter
Mar 6 at 14:49
A blank page means specifically it's disabled. ADD it to the top. Ensure it's being output.
– FrankerZ
Mar 6 at 14:53
What do you mean by "not working"? Do you get any errors? Add error reporting at the top of your file(s):
ini_set("display_errors", 1); error_reporting(E_ALL); and tell us what you get.– FrankerZ
Mar 6 at 14:31
What do you mean by "not working"? Do you get any errors? Add error reporting at the top of your file(s):
ini_set("display_errors", 1); error_reporting(E_ALL); and tell us what you get.– FrankerZ
Mar 6 at 14:31
See How do I get php errors to display and PHP WSOD
– Xatenev
Mar 6 at 14:31
See How do I get php errors to display and PHP WSOD
– Xatenev
Mar 6 at 14:31
Thanks to you both for the quick reply! @FrankerZ: with "not working" I mean that the table doesn't show up. I don't get any errors. I added the lines, but I get no error message.
– Peter
Mar 6 at 14:49
Thanks to you both for the quick reply! @FrankerZ: with "not working" I mean that the table doesn't show up. I don't get any errors. I added the lines, but I get no error message.
– Peter
Mar 6 at 14:49
@Xatenev: I checked the php.ini, display_errors is on.
– Peter
Mar 6 at 14:49
@Xatenev: I checked the php.ini, display_errors is on.
– Peter
Mar 6 at 14:49
A blank page means specifically it's disabled. ADD it to the top. Ensure it's being output.
– FrankerZ
Mar 6 at 14:53
A blank page means specifically it's disabled. ADD it to the top. Ensure it's being output.
– FrankerZ
Mar 6 at 14:53
|
show 3 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55025463%2fa-cronjob-expression-parser-generates-an-empty-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55025463%2fa-cronjob-expression-parser-generates-an-empty-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What do you mean by "not working"? Do you get any errors? Add error reporting at the top of your file(s):
ini_set("display_errors", 1); error_reporting(E_ALL);and tell us what you get.– FrankerZ
Mar 6 at 14:31
See How do I get php errors to display and PHP WSOD
– Xatenev
Mar 6 at 14:31
Thanks to you both for the quick reply! @FrankerZ: with "not working" I mean that the table doesn't show up. I don't get any errors. I added the lines, but I get no error message.
– Peter
Mar 6 at 14:49
@Xatenev: I checked the php.ini, display_errors is on.
– Peter
Mar 6 at 14:49
A blank page means specifically it's disabled. ADD it to the top. Ensure it's being output.
– FrankerZ
Mar 6 at 14:53