Giter VIP home page Giter VIP logo

cronable's People

Contributors

maikuolan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

cronable's Issues

Cron not working for CIDRAM in WordPress

Hi

I have spent some time trying to get CIDRAM to update via a cron job and I am still unsuccessful and I was hoping you could give me some assistance.

Here is how I have tried to get it to work.

I have downloaded the file Cronable.php and put it in the same directory as loader.php

I have used and modified the file examples.php to fit my directory structures adding the user created using the front end with permissions cronable.

To execute I am using the WordPress plugin WP Crontrol to set up a PHP cron event. The plugin is super simple and allows you to take the modified examples.php code and insert it in and set the execution frequency.

I have tried manipulating the examples.php file many times but nothing has worked.

The current errors I am getting is:

I am getting errors like ...

Warning ... No such file or directory in... eval()'d code on line 12

Fatal error: require(): Failed opening required .... eval()'d code on line 12

I am not sure if I should be posting the full errors here but would send them to you privately if needed.

The line 12 constantly referred to is:

require DIR . '/src/Cronable.php';

I have tried changing the path shown in line 12 and I always get errors. I have tried creating the dir src in the directory structure where WP Crontrol lives and put cronable.php in that directory and all errors go away but CIDRAM is not updated...

Any ideas?

Would be nice if the WordPress install just created the cron job like other WordPress plugins do. I have never had to manually create one before. I use WP Crontrol to easily change the frequency or disable jobs as needed.

Thanks!

PHP Notice: error when updating

after the last few updates of cidram
I now get this error when updating

PHP Notice: Undefined index: MajorVersionNotice in /var/www/cidram/vault/frontend.php on line 1672

Stopped working

The Cronable was working fine for me. But it has stopped working, don't know since when.

When I execute Cronable, I get this:

Cronable v1.2.0 Time: Thu, 06 Sep 2018 04:09:23 +0000 === Everything already up-to-date at [[email protected]/loader.php]. :-) === Time: Thu, 06 Sep 2018 04:09:23 +0000

But, in the CIDRAM front-end I can see updates.

CIDRAM Update-Available

My update script is this:

<?php

/** Requiring the Cronable class file. */
require __DIR__ . '/src/Cronable.php';

/** Importing the Cronable class from its namespace. */
use \Maikuolan\Cronable\Cronable;

/** Instantiate a new object from the Cronable class. */
$Cronable = new Cronable;

$Cronable->createTask('CIDRAM', 'username', 'password', 'http://example.com/loader.php');

/** After you've created your tasks, you'll want to execute them all. */
$Cronable->execute();

echo $Cronable->Output;

Better error handling.

Requested as per discussions at Gitter. Creating this issue as a self-reminder. Will get this sorted out a little later.

error_log possible cronable issue

I see this in the main directory outside of public_html. I asked my host and he says it could be related to a script or cron.

[31-Jan-2018 01:00:01 America/Chicago] PHP Warning: Module 'timezonedb' already loaded in Unknown on line 0
[01-Feb-2018 01:00:01 America/Chicago] PHP Warning: Module 'timezonedb' already loaded in Unknown on line 0
[02-Feb-2018 01:00:01 America/Chicago] PHP Warning: Module 'timezonedb' already loaded in Unknown on line 0

Actually, looking at the time, it is related to cronable since that's the time it executes.

another error when updating

i now get this

PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/cidram/vault/functions.php:769
Stack trace:
#0 /var/www/cidram/vault/frontend_functions.php(720): Maikuolan\Cronable\Cronable->{closure}()
#1 /var/www/cidram/vault/frontend_functions.php(707): Maikuolan\Cronable\Cronable->{closure}()
#2 /var/www/cidram/vault/frontend.php(1790): Maikuolan\Cronable\Cronable->{closure}()
#3 /var/www/cidram/loader.php(102): require('...')
#4 /var/www/cidram/src/Cronable.php(253): require('...')
#5 /var/www/cidram/examples.php(17): Maikuolan\Cronable\Cronable->localUpdate()
#6 {main}
thrown in /var/www/cidram/vault/functions.php on line 769

support for cidram v3

keep getting an error after updating to cidram v3

"An error occurred while attempting to update at [CIDRAM@/var/www/cidram/vault/loader.php]. :-(

my examples.php file is this


<?php
require __DIR__ . '/src/Cronable.php';


use \Maikuolan\Cronable\Cronable;

$Cronable = new Cronable;

$Cronable->execute();

$Cronable->localUpdate('CIDRAM', 'user', 'password', '/var/www/cidram/vault/loader.php', 'Everything');
echo $Cronable->Output;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.