RSS import cron with 1.0

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2009, 05:00 PM
oobie11's Avatar
Constant Pligger
Pligg Version: 1.0
Pligg Template: Custom, wistie
 
Join Date: Apr 2009
Location: Monterey, CA
Posts: 148
Ok, I was hoping to find a post that would help me out but didn't. I have version 1.0 final and have installed rss importer. Everything works great. the problem i am having is the cron I have set up isnt running the import.php. I had rss import set up in my older RC4 site and it worked fine.
I have copied the import.php to my root directory, CHMOD'd import.php to 644, and have my cron set up like this:

/ramdisk/bin/php5 -q /home/MYHOSTUSERNAME/public_html/MYROOTDIRECTOY/import.php

the difference that I see with this from my previous install, is that instead of import.php it was import_rss.php

is there something Im missing? Thanks.
Reply With Quote
  #2 (permalink)  
Old 06-26-2009, 05:08 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Posts: 3,835
The rss import module has not changed. There is no difference between the one released in Pligg 1.0 RC4 and now.


Download the full Pligg Module Pack





Reply With Quote
  #3 (permalink)  
Old 06-26-2009, 11:49 PM
Casual Pligger
Pligg Version: 1.0
Pligg Template: Wistie
 
Join Date: Nov 2008
Location: Palmer, PA
Posts: 64
Mine works when I use this url, but the problem is that it isn't importing images this way. It use to work perfectly this way in pligg 9.9.5, but not anymore. Its driving me nuts!! I can only import with images if I import manually via the admin panel. But this is so impratical for me, I really need this cron job.

/usr/bin/php -q /home/myhostusername/public_html/import.php

For some reason when I try to run the cron from modules/rss_import/import.php, it says no such file or directory.
Reply With Quote
  #4 (permalink)  
Old 06-27-2009, 01:03 AM
New Pligger
Pligg Version: 1.0.0
 
Join Date: Apr 2009
Posts: 4
install working on pligg v 1.0
Reply With Quote
  #5 (permalink)  
Old 07-01-2009, 11:38 PM
Casual Pligger
Pligg Version: 1.0
Pligg Template: Wistie
 
Join Date: Nov 2008
Location: Palmer, PA
Posts: 64
My Host gave me this path to use, /opt/php/bin/php -q /home/myhostusername/public_html/modules/rss_import/import.php, but I receive this error - 'you need to copy this file into your root Pligg folder.' The problem is that when I run the import.php from my root pligg folder, it will import, but without any images.

Can any admins duplicate this problem by running import.php from the root directory?

Thanks,
Jon
Reply With Quote
  #6 (permalink)  
Old 07-05-2009, 04:27 AM
oobie11's Avatar
Constant Pligger
Pligg Version: 1.0
Pligg Template: Custom, wistie
 
Join Date: Apr 2009
Location: Monterey, CA
Posts: 148
Here is the solution,
1. copy import.php to your root directory
2. open import.php
Here is what it looks like
Code:
<?php

if (strpos($_SERVER['SCRIPT_NAME'], 'rss_import') > 1){
	die('you need to copy this file into your root Pligg folder.');
}

include_once('../Smarty.class.php');
$main_smarty = new Smarty;

		include_once('../config.php');		
		include_once(mnminclude.'html1.php');
		include_once(mnminclude.'link.php');
		include_once(mnminclude.'tags.php');
		include_once(mnminclude.'smartyvariables.php');
		
	include_once('../modules/rss_import/rss_import_settings.php');
	include_once('../modules/rss_import/rss_import_main.php');
	
	rss_import_do_import(false);

?>
3. remove the ../ in front of all of the paths. for example
Make
Code:
include_once('../modules/rss_import/rss_import_settings.php');
	include_once('../modules/rss_import/rss_import_main.php');
into
Code:
include_once('modules/rss_import/rss_import_settings.php');
	include_once('modules/rss_import/rss_import_main.php');
4. Talk to your webhost and find out how to cron through your server and cron the import.php in your root.
5. You are done
Hope this helps
Reply With Quote
  #7 (permalink)  
Old 07-13-2009, 10:00 PM
Casual Pligger
Pligg Version: 1.0
Pligg Template: Wistie
 
Join Date: Nov 2008
Location: Palmer, PA
Posts: 64
Thank you, but I already have my import file in my root directory as well as removed all ../ , I still get no images when I import through a cron job, only the stroy without an image.

Quote:
Originally Posted by oobie11 View Post
Here is the solution,
1. copy import.php to your root directory
2. open import.php
Here is what it looks like
Code:
<?php

if (strpos($_SERVER['SCRIPT_NAME'], 'rss_import') > 1){
	die('you need to copy this file into your root Pligg folder.');
}

include_once('../Smarty.class.php');
$main_smarty = new Smarty;

		include_once('../config.php');		
		include_once(mnminclude.'html1.php');
		include_once(mnminclude.'link.php');
		include_once(mnminclude.'tags.php');
		include_once(mnminclude.'smartyvariables.php');
		
	include_once('../modules/rss_import/rss_import_settings.php');
	include_once('../modules/rss_import/rss_import_main.php');
	
	rss_import_do_import(false);

?>
3. remove the ../ in front of all of the paths. for example
Make
Code:
include_once('../modules/rss_import/rss_import_settings.php');
	include_once('../modules/rss_import/rss_import_main.php');
into
Code:
include_once('modules/rss_import/rss_import_settings.php');
	include_once('modules/rss_import/rss_import_main.php');
4. Talk to your webhost and find out how to cron through your server and cron the import.php in your root.
5. You are done
Hope this helps
Reply With Quote
  #8 (permalink)  
Old 08-14-2009, 06:17 AM
pligger2's Avatar
Casual Pligger
 
Join Date: Dec 2006
Posts: 44
I get errors in my cron job:

Code:
Warning: filemtime(): stat failed for ./../languages/lang_english.conf in
/home/username/domains/mydomain.com/public_html/internal/template.config_loader.php on
line 25

Warning: include_once(config.php): failed to open stream: No such file or directory
in /home/username/domains/mydomain.com/public_html/modules/rss_import/rss_import_main.php
on line 304

Warning: include_once(): Failed opening 'config.php' for inclusion
(include_path='.') in
/home/username/domains/mydomain.com/public_html/modules/rss_import/rss_import_main.php on
line 304

Warning: require_once(modules/rss_import/magpierss/rss_fetch.inc): failed to open
stream: No such file or directory in
/home/username/domains/mydomain.com/public_html/modules/rss_import/rss_import_main.php on
line 311

Fatal error: require_once(): Failed opening required
'modules/rss_import/magpierss/rss_fetch.inc' (include_path='.') in
/home/username/domains/mydomain.com/public_html/modules/rss_import/rss_import_main.php on
line 311
(mydomain.com and username is replaced by my real domain and user name)

I'm using Pligg 1.0 (newest), my import.php is in root directory, it contain:

Code:
<?php

if (strpos($_SERVER['SCRIPT_NAME'], 'rss_import') > 1){
	die('you need to copy this file into your root Pligg folder.');
}

include_once('Smarty.class.php');
$main_smarty = new Smarty;

		include_once('config.php');		
		include_once(mnminclude.'html1.php');
		include_once(mnminclude.'link.php');
		include_once(mnminclude.'tags.php');
		include_once(mnminclude.'smartyvariables.php');
		
	include_once('modules/rss_import/rss_import_settings.php');
	include_once('modules/rss_import/rss_import_main.php');
	
	rss_import_do_import(false);

?>

Last edited by pligger2; 08-14-2009 at 06:27 AM.
Reply With Quote
  #9 (permalink)  
Old 09-23-2009, 07:07 AM
kleinhev's Avatar
New Pligger
Pligg Version: 1.0.2
Pligg Template: wistie
 
Join Date: Jun 2008
Posts: 29
Exactly the same problem here. This is going on for years and nobody cares about solving this...
Reply With Quote
  #10 (permalink)  
Old 09-30-2009, 07:46 PM
New Pligger
 
Join Date: Feb 2006
Posts: 10
nobody to solve it? why not provide a simple help note in the module?

Quote:
Originally Posted by kleinhev View Post
Exactly the same problem here. This is going on for years and nobody cares about solving this...
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rss Import - Cron Importing images problem JonniE_M Questions and Comments 5 07-21-2009 10:47 PM
Rss import cron and hostmonster oobie11 Questions and Comments 6 06-29-2009 02:21 PM
Cron job error for rss import oksos Questions and Comments 0 02-11-2009 10:23 AM
Auto Import of RSS using cron peosteve Questions and Comments 4 10-11-2008 04:40 AM
[SOLVED] RRS import module won't work (although cron job is set up) tand Questions and Comments 3 11-15-2007 01:14 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development