Title: lagzer's Replies | WordPress.org

---

# lagzer

  [  ](https://wordpress.org/support/users/lagzer/)

 *   [Profile](https://wordpress.org/support/users/lagzer/)
 *   [Topics Started](https://wordpress.org/support/users/lagzer/topics/)
 *   [Replies Created](https://wordpress.org/support/users/lagzer/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/lagzer/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/lagzer/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/lagzer/engagements/)
 *   [Favorites](https://wordpress.org/support/users/lagzer/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager] Programmatically include header code](https://wordpress.org/support/topic/programmatically-include-header-code/)
 *  Thread Starter [lagzer](https://wordpress.org/support/users/lagzer/)
 * (@lagzer)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/programmatically-include-header-code/#post-17793853)
 * This is exactly what I was looking for. Thank you for your quick reply and thoughtful
   advice.
 * Have a good day!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Videopack] Encoding Queue not running](https://wordpress.org/support/topic/encoding-queue-not-running/)
 *  Thread Starter [lagzer](https://wordpress.org/support/users/lagzer/)
 * (@lagzer)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/encoding-queue-not-running/#post-16061868)
 * Hello again,
    After doing some more digging I notice I’m having issues with the
   thumbnails as well. It was working but then I noticed “When possible, use the
   browser’s built-in video capabilities to make thumbnails instead of FFMPEG.” 
   was checked. After I unchecked it I noticed it generates 0kb jpegs, so perhaps
   there’s an issue creating the files.
 * I’m thinking these are related issues.
 * Any directions of how to best debug these issues – or if anyone recognize these
   symptoms – is much appreciated!
 * Best,
    Andreas
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Videopack] Encoding Queue not running](https://wordpress.org/support/topic/encoding-queue-not-running/)
 *  Thread Starter [lagzer](https://wordpress.org/support/users/lagzer/)
 * (@lagzer)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/encoding-queue-not-running/#post-16061074)
 * Thank you [@kylegilman](https://wordpress.org/support/users/kylegilman/) for 
   such a prompt answer, on a weekend no less.
 * I have WP Crontrol and it looks like everything is running as it should. I however,
   don’t see any CRON job actions from Videopack. What Videopack actions should 
   I be looking for?
 * On a side note; on the Videopack Encoding Queue page there is a play button in
   the top right corner, which when I click it briefly turns into a pause button
   before turning back to a play button. I’m not sure exactly what it’s supposed
   to do, but I would expect it to start the encoding, but that doesn’t seem to 
   happen.
 * Thanks again! This seems like a fantastic plugin and and would love to get it
   to work. 🙂
 * Best,
    Andreas
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Object Sync for Salesforce] Plugin stops running after a while](https://wordpress.org/support/topic/plugin-stops-running-after-a-while/)
 *  Thread Starter [lagzer](https://wordpress.org/support/users/lagzer/)
 * (@lagzer)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/plugin-stops-running-after-a-while/#post-15352453)
 * Hello! Thanks again for getting back to me so quickly!
 * Sorry I didn’t mean I would call the whole class like that, I was trying to illustrate
   the idea. 🙂
 * That’s helpful! Are there any other actions or commands that triggers a pull 
   in a more conventional way? Is it for instance possible to do it through the 
   WP REST API?
 * Looks like `salesforce_pull` is a more general call, but what’s `salesforce_pull_process_records`?
   How would that be used, if you don’t mind me asking?
 * It could very well be the hosting. Though it worked for really long until we 
   renewed our self signed certificates in Salesforce. Then we started having this
   issue. However, since we moved servers we certainly have a lot more issues with
   it.
 * Thanks a lot for your patience and all your help!
 * Best,
    Andreas
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Object Sync for Salesforce] Plugin stops running after a while](https://wordpress.org/support/topic/plugin-stops-running-after-a-while/)
 *  Thread Starter [lagzer](https://wordpress.org/support/users/lagzer/)
 * (@lagzer)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/plugin-stops-running-after-a-while/#post-15350688)
 * Hello again!
    Do I understand correctly that the Action Scheduler works independently
   from CRON-jobs?
 * Further update on my situation: I have now run the server CRON-jobs and it still
   seems to stop every now and then, however, the situation looks a bit different.
 * Whereas, I before received a “Failed” status and I had to go and change the Schedule
   interval (see more detailed info in my original post), I now don’t see anything
   going wrong but it stops. And it took a while to figure out because when people
   told me something went wrong and I looked it immediately worked, I didn’t do 
   any actions.
 * I soon realized that what I needed to do was to simply log into the WP-backend
   and everything synced right away. Strange behaviour.
 * I have been in contact with the Host support and they sent me a log of the CRON
   jobs and it does run as expected without any errors.
 * I’m not sure if there is anything I can try here. Let me know if this gives anyone
   any direction.
 * My next thing to test is to create a file that doesn’t try to run the schedule
   but simply performs a manual pull from Salesforce.
 * I noticed that I possibly can use `Object_Sync_Sf_Salesforce_Pull`.
 * I’m thinking about setting up a file doing something like this and run it every
   two min from the Server CRON:
 *     ```
       define( 'WP_USE_THEMES', true ); // I think I need this to get the plugin environment
        require_once( $_SERVER[ 'DOCUMENT_ROOT' ] . '/wp-load.php' ); 
       Object_Sync_Sf_Salesforce_Pull();
       ```
   
 * Or perhaps I can use the web hook or the WP REST API to do it.
 * How would you recommend going about that?
 * Thanks in advance!
 * Best,
    Andreas
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Object Sync for Salesforce] Plugin stops running after a while](https://wordpress.org/support/topic/plugin-stops-running-after-a-while/)
 *  Thread Starter [lagzer](https://wordpress.org/support/users/lagzer/)
 * (@lagzer)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/plugin-stops-running-after-a-while/#post-15341384)
 * Hello, I’m getting back with an update on this. I have since my previous message
   about three weeks ago cleared the dynamic cache on the server. Although that 
   certainly improved the situation and rather having it stop a couple of times 
   a day they all were running for 3, 4 or even 5 days without failing. It certainly
   seems like the cache purge helped, but still didn’t quite solve the problem.
 * I have now disabled the CRON jobs all together by adding
 * `define('DISABLE_WP_CRON', true);`
 * in the wp-config.php file and have set up a real CRON on the server that executes
   all WordPress CRON/scheduled jobs, per advice from the Web host support. That
   seems to be working well so far.
 * I’ll let you know if the problems remain, but this feels quite robust and hoping
   that this is the solution.
    -  This reply was modified 4 years, 6 months ago by [lagzer](https://wordpress.org/support/users/lagzer/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Object Sync for Salesforce] Plugin stops running after a while](https://wordpress.org/support/topic/plugin-stops-running-after-a-while/)
 *  Thread Starter [lagzer](https://wordpress.org/support/users/lagzer/)
 * (@lagzer)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/plugin-stops-running-after-a-while/#post-15269364)
 * Thank you for getting back to me so quickly.
 * Once the Scheduled Action failed, the logs also stop indeed and there are no 
   more action named “object_sync_for_salesforce_pull_check_records”.
 * It could very well be that Action Scheduler has issues. I don’t really get any
   feedback from that.
 * I flushed my Cache on the server, thinking that might be causing the issue after
   the server transfer and new setting.
 * I’m thinking about adding the wp-cron as a run action in the server cron. Perhaps
   that helps, or at least doesn’t stop if it fails a single time.

Viewing 7 replies - 1 through 7 (of 7 total)