CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Can't access scheduled jobs (cron.php & cli.php) w/ pagelines theme
Pages: [1]

Author Topic: Can't access scheduled jobs (cron.php & cli.php) w/ pagelines theme  (Read 8702 times)

jkfromk

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Wordpress
  • MySQL version: 5.5.23-55
  • PHP version: 5.2.17
Can't access scheduled jobs (cron.php & cli.php) w/ pagelines theme
March 05, 2013, 01:06:40 pm
I am testing a CiviCrm with PageLines (lite). When trying to access the Cron.php or Cli.php via Cron, I am getting the following error:
 
Fatal error: Call to a member function pagelines_register_sections() on a non-object in
 
It is referencing the following file / line number: /wp-content/themes/pagelines/includes/class.sections.php on line 79

It appears to be a theme related issue however I was curious if anyone else has experienced the issue and identified any resolutions/work-arounds.

Thank you in advance.

Guy Iaccarino

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 5
    • Greenleaf Advancement
  • CiviCRM version: 4.4.10, 4.5.4
  • CMS version: WordPress 4, Drupal 7, Drupal 6, Joomla 3
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Can't access scheduled jobs (cron.php & cli.php) w/ pagelines theme
August 22, 2013, 02:47:12 pm
Did you ever get anywhere with this? I have a client using the Pagelines theme and I'm having the same issue. What did you end up doing?
Guy Iaccarino
www.greenleafadvancement.com

krypto

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 5
  • IT guy for @bhahumanists. Running Civi on WP.
    • British Humanist Association
  • CiviCRM version: 4.5.8
  • CMS version: WordPress 4.x
  • MySQL version: 5.5.x
  • PHP version: 5.5.x
Re: Can't access scheduled jobs (cron.php & cli.php) w/ pagelines theme
September 09, 2013, 06:20:50 am
Are you using wget for cron jobs? We had similar issues that I never solved, but switching to wget meant they went away.

Guy Iaccarino

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 5
    • Greenleaf Advancement
  • CiviCRM version: 4.4.10, 4.5.4
  • CMS version: WordPress 4, Drupal 7, Drupal 6, Joomla 3
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Can't access scheduled jobs (cron.php & cli.php) w/ pagelines theme
September 10, 2013, 07:06:51 am
OK, thanks krypto. My client ended up moving away from Pagelines in his redesign, so the issue went away, but I'll check this out and keep it in the back pocket in case it comes up again.
Guy Iaccarino
www.greenleafadvancement.com

craftee123

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
Re: Can't access scheduled jobs (cron.php & cli.php) w/ pagelines theme
May 13, 2014, 04:52:51 pm
We had the same problem, and it wasn't fixed with wget.

We ended up having to hack the theme. It's not great, because the hack will be overridden when the theme is upgraded, but it's our best fix right now. Here's the code that we (read: AGH Strategies - http://forum.civicrm.org/index.php?action=profile;u=2012) came up with, starting at line 78 in /wp-content/themes/pagelines/includes/class.sections.php:

Code: [Select]
global $load_sections;
if (!$load_sections) { return; }
$available = $load_sections->pagelines_register_sections( false, true );

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Can't access scheduled jobs (cron.php & cli.php) w/ pagelines theme

This forum was archived on 2017-11-26.