0 Пользователей и 1 Гость просматривают эту тему.
  • 1 Ответов
  • 1351 Просмотров
*

leftmails

  • Новичок
  • 3
  • 0 / 0
Всем привет!
Помогите пожалуйста с плагином freegator, у меня не работает cron.feedgator.php
Запускаю
сайт.ру/administrator/components/com_feedgator/cron.feedgator.php

ни чего не происходит.

Что может быть?

Как правильно запустить freegator  чтоб крон работал?
Код
define( '_JEXEC', 1 );


require_once(JPATH_BASE.'/includes/defines.php' );
require_once(JPATH_ADMINISTRATOR.'/includes/framework.php' );
require_once(JPATH_ADMINISTRATOR.'/includes/helper.php' );
require_once(JPATH_ADMINISTRATOR.'/includes/toolbar.php' );
define('JPATH_BASE', substr(__FILE__,0,strrpos(__FILE__, DS.'administrator')));
echo 'go';
$mainframe = JFactory::getApplication('site');
$mainframe->initialise();

require_once(JPATH_ADMINISTRATOR.'/components/com_feedgator/controller.php');
require_once(JPATH_ADMINISTRATOR.'/components/com_feedgator/factory.feedgator.php');
require_once(JPATH_ADMINISTRATOR.'/components/com_feedgator/helpers/feedgator.helper.php');
require_once(JPATH_ADMINISTRATOR.'/components/com_feedgator/helpers/feedgator.utility.php');

if(file_exists(JPATH_ROOT.'/plugins/system/addkeywords.php')) {
require_once(JPATH_ROOT.'/plugins/system/addkeywords.php');
}
FeedgatorUtility::profiling('Start cron');

define('SPIE_CACHE_AGE', 60*10);

require_once(JPATH_ADMINISTRATOR.'/components/com_feedgator/inc/simplepie/simplepie131.php');
require_once(JPATH_ADMINISTRATOR.'/components/com_feedgator/inc/simplepie/overrides.php');
FeedgatorUtility::profiling('Loaded SimplePie');

JRequest::setVar('task','cron','get');
JRequest::setVar(JUtility::getToken(),'1','get');

$jlang = JFactory::getLanguage();
// Back-end translation
$jlang->load('com_feedgator', JPATH_ADMINISTRATOR, 'en-GB', true);
$jlang->load('com_feedgator', JPATH_ADMINISTRATOR, $jlang->getDefault(), true);
$jlang->load('com_feedgator', JPATH_ADMINISTRATOR, null, true);

$config = array('base_path'=>JPATH_ADMINISTRATOR.'/components/com_feedgator');
$controller = new FeedgatorController($config);
$controller->import('all');

FeedgatorUtility::profiling('End');
echo 'Import finished';
*

ravilwild

  • Осваиваюсь на форуме
  • 15
  • 0 / 0
Re: FeedGator запуск Cron нет реакции
« Ответ #1 : 09.12.2016, 12:16:39 »
Так и не нашли решение? У меня такая же проблема
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Feed Gator cron error: base not set

Автор slan

Ответов: 2
Просмотров: 2324
Последний ответ 19.12.2016, 08:05:49
от ravilwild