Forum Replies Created

Viewing 15 replies - 121 through 135 (of 159 total)
  • Thread Starter i0n1ca

    (@i0n1ca)

    the plugin is now deactivated. i’ve replaced it with a simple icon, dev, and a download button.

    Thread Starter i0n1ca

    (@i0n1ca)

    The URL is https://www.isay.ro
    I don’t know what function is not working, but if the plugin is active the front page (index.php) is not showing the site completely.

    Thread Starter i0n1ca

    (@i0n1ca)

    Sorry for my mistake, to work on your site please remove de number “2” from wp-cron2.php

    The codes should look like:

    wget -q --delete-after "https://yourdomain/wp-cron.php"
    wget -q --delete-after "https://yourdomain/wp-cron.php?doing_wp_cron"

    ionica.

    Thread Starter i0n1ca

    (@i0n1ca)

    Because he doesn’t care anymore!

    Does anybody from staff/authors/developers of the plugin, respond to our questions and issues?

    Thread Starter i0n1ca

    (@i0n1ca)

    I’ll give them a try in this weekend ??

    You rock, Ben ??

    ionica.

    how did you fixed it?

    Because are made some modifications to Facebook acording to february. I’m having the same issue. Perhaps in next days is gonna to be fixed.
    I don’t know.

    Thread Starter i0n1ca

    (@i0n1ca)

    Explanation:
    1. wget -q --delete-after "https://yourdomain/wp-cron2.php"
    This line is used to check cron jobs and make them happen.

    2. wget -q --delete-after "https://yourdomain/wp-cron2.php?doing_wp_cron"
    Automatically when you disable the standard wp-cron.php, the posts schedueled are having the “missed schedueled” and this command make it posibile to post on right time.

    Hope it works,
    ionica

    Thanks a milion times, saved me from deleteing this plugin ??

    ionic?.

    Thread Starter i0n1ca

    (@i0n1ca)

    Ok, thank you. I will give it a try and then i’ll say if is working ??

    Thread Starter i0n1ca

    (@i0n1ca)

    With the help of WP-Control, you can see witch cron jobs are running on your site, when are programmed to run or edit the cron jobs.

    Thank you guys for making this awesome plugin.

    My problem is solved.

    Thread Starter i0n1ca

    (@i0n1ca)

    Solved with the help of Ben. Bellow is the solution:

    First my wp-cron.php is not working and still present in root dir of my site.

    1. Save the following code in a file called wp-cron2.php on your desktop.

    <?php
    /**
     * WordPress Cron Implementation for hosts, which do not offer CRON or for which
     * the user has not set up a CRON job pointing to this file.
     *
     * The HTTP request to this file will not slow down the visitor who happens to
     * visit when the cron job is needed to run.
     *
     * @package WordPress
     */
    
    ignore_user_abort(true);
    
    if ( !empty($_POST) || defined('DOING_AJAX') || defined('DOING_CRON') )
    	die();
    
    /**
     * Tell WordPress we are doing the CRON task.
     *
     * @var bool
     */
    define('DOING_CRON', true);
    
    if ( !defined('ABSPATH') ) {
    	/** Set up WordPress environment */
    	require_once('./wp-load.php');
    }
    
    if ( false === $crons = _get_cron_array() )
    	die();
    
    $keys = array_keys( $crons );
    $local_time = time();
    
    if ( isset($keys[0]) && $keys[0] > $local_time )
    	die();
    
    foreach ($crons as $timestamp => $cronhooks) {
    	if ( $timestamp > $local_time )
    		break;
    
    	foreach ($cronhooks as $hook => $keys) {
    
    		foreach ($keys as $k => $v) {
    
    			$schedule = $v['schedule'];
    
    			if ($schedule != false) {
    				$new_args = array($timestamp, $schedule, $hook, $v['args']);
    				call_user_func_array('wp_reschedule_event', $new_args);
    			}
    
    			wp_unschedule_event($timestamp, $hook, $v['args']);
    
     			do_action_ref_array($hook, $v['args']);
    		}
    	}
    }
    
    die();

    2. Upload the file using cPanel file manager or using a FTP program to the root of your site, near wp-cron.php

    3. You have to open wp-config.php and add this

    /** Stop Cron jobs automatically
    define('DISABLE_WP_CRON', 'true');
    define('ALTERNATE_WP_CRON', 'true');

    between lines 36-41 to take effect.

    4. Open cPanel>Cron Jobs and set up this 2 jobs
    wget -q --delete-after "https://yourdomain/wp-cron2.php?doing_wp_cron"
    wget -q --delete-after "https://yourdomain/wp-cron2.php"

    Replace yourdomain = your site URL = ex. www.ads-software.com
    For me is ok to check wp-cron2.php on every 30 minutes. If you want to do this more often do it.

    Why
    -q = run the wget in silent mode, you are not receiving emails about cron job with info. If you want to debug delete it to see the message error.
    –delete-after = after running a wget command a called file would be saved in the root of your domain with 0 bytes, and this commands removes it.

    Cheers,
    ionica.

    That’s true. Good job guys.

    ionica

    @shoestringwebs i’ve got the same problem with a newsletter plugin, and on internet i didn’t find a solution, and i’ve figured it out from myself.

    First your wp-cron.php is not working and still present in root dir of your site.

    So follow my steps and tell my if works for your, for me did:

    1. Save the following code in a file called wp-cron2.php on your desktop.

    <?php
    /**
     * WordPress Cron Implementation for hosts, which do not offer CRON or for which
     * the user has not set up a CRON job pointing to this file.
     *
     * The HTTP request to this file will not slow down the visitor who happens to
     * visit when the cron job is needed to run.
     *
     * @package WordPress
     */
    
    ignore_user_abort(true);
    
    if ( !empty($_POST) || defined('DOING_AJAX') || defined('DOING_CRON') )
    	die();
    
    /**
     * Tell WordPress we are doing the CRON task.
     *
     * @var bool
     */
    define('DOING_CRON', true);
    
    if ( !defined('ABSPATH') ) {
    	/** Set up WordPress environment */
    	require_once('./wp-load.php');
    }
    
    if ( false === $crons = _get_cron_array() )
    	die();
    
    $keys = array_keys( $crons );
    $local_time = time();
    
    if ( isset($keys[0]) && $keys[0] > $local_time )
    	die();
    
    foreach ($crons as $timestamp => $cronhooks) {
    	if ( $timestamp > $local_time )
    		break;
    
    	foreach ($cronhooks as $hook => $keys) {
    
    		foreach ($keys as $k => $v) {
    
    			$schedule = $v['schedule'];
    
    			if ($schedule != false) {
    				$new_args = array($timestamp, $schedule, $hook, $v['args']);
    				call_user_func_array('wp_reschedule_event', $new_args);
    			}
    
    			wp_unschedule_event($timestamp, $hook, $v['args']);
    
     			do_action_ref_array($hook, $v['args']);
    		}
    	}
    }
    
    die();

    2. Upload the file using cPanel file manager or using a FTP program to the root of your site, near wp-cron.php

    3. You have to open wp-config.php and add this

    /** Stop Cron jobs automatically
    define('DISABLE_WP_CRON', 'true');
    define('ALTERNATE_WP_CRON', 'true');

    between lines 36-41 to take effect.

    4. Open cPanel>Cron Jobs and set up this 2 jobs

    wget -q --delete-after "https://yourdomain/wp-cron2.php?doing_wp_cron"
    wget -q --delete-after "https://yourdomain/wp-cron2.php"

    Replace yourdomain = your site URL = ex. www.ads-software.com
    For me is ok to check wp-cron2.php on every 30 minutes. If you want to do this more often do it.

    Why
    -q = run the wget in silent mode, you are not receiving emails about cron job with info. If you want to debug delete it to see the message error.
    –delete-after = after running a wget command a called file would be saved in the root of your domain with 0 bytes, and this commands removes it.

    My recomandation for you for a newsletter plugin. It’s very complex, standalone plugin with wysiwyg, easy to configure and set-up and you have stats for subscribed, clicked, opened, unopened posts. Really helpfully.

    Cheers,
    ionica.

Viewing 15 replies - 121 through 135 (of 159 total)