IMPORTANT: We moved to new Unified Support Forum

Please post all new support queries in our New Forum →

The forum is in read only mode

Please access New Forum to get support: https://member.joomlart.com/forums/ijoomla

Resolved Error 500 with guru cron plugin active

Licenses:
GURU Active iSEO Expired
0
Votes
Undo
  1. Rocco
  2. Guru
  3. Saturday, 18 November 2017
  4.  Subscribe via email
Hello,

I just installed Guro pro on my website and received no error messages during or after installation, in backend. But in frontend I receive error 500. In debug mode, I receive this message:

Whoops\Exception\ErrorException
/var/www/vhosts/...../components/com_guru/helpers/cronjobs.php76 ( $db = JFactory::getDBO();)

If I deactivate System - Guro Pro plugin, I can see my website, no error 500; but I suppose that System - Guru Pro plugin should be active, to have Guru working properly.

Any idea?

Regards,
Rocco

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Open: /var/www/vhosts/........./httpdocs/components/com_guru/helpers/cronjobs.php
function getConfigs(){
$db = JFactory::getDBO();
$sql = "select * from #__guru_config where id=1";
$db->setQuery($sql);
$db->query();
$result = $db->loadAssocList();
return $result;
}

function getCourseEmails($course_id){
$db = JFactory::getDBO();
$sql = "select s.*, ps.* from #__guru_subremind s, #__guru_program_reminders ps where ps.product_id=".intval($course_id)." and s.id=ps.emailreminder_id";
$db->setQuery($sql);
$db->query();
$result = $db->loadAssocList();
return $result;
}

function getUserDetails($id){
$db = JFactory::getDBO();
$sql = "select * from #__users where id=".intval($id);
$db->setQuery($sql);
$db->query();
$result = $db->loadAssocList();
return $result;
}

function submitEmail($email_details, $course_id, $course_value, $order_expiration, $plan_name, $guru_configs){
$user_details = getUserDetails($course_value["userid"]);
$config = new JConfig();
$from = $config->mailfrom;
$fromname = $config->fromname;


There are replies in this post but you are not allowed to view the replies from this post.