[RC][1.1.0-r2] FIND

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
Locked
User avatar
BiggDawgg
Registered User
Posts: 356
Joined: Tue Oct 19, 2004 8:46 am
Location: USA, Illinois
Contact:

Re: [RC] RSS Input

Post by BiggDawgg » Sun Jan 09, 2011 7:42 pm

If your web server doesn't have dedicated IP or IP shared with other sites, change rss_import.php to somethingelse.php.
By changing the filename to what others can't guess easily, should prevent possible DOS attack from any IPs. Remember to update your CRON job for the filename changes.
Could someone please explain where the filename changes need to be made exactly after changing the name of rss_import.php

Thanx, Gary

User avatar
PoPoutdoor
Registered User
Posts: 217
Joined: Fri Oct 31, 2008 2:58 pm
Contact:

Re: [RC] RSS Input

Post by PoPoutdoor » Mon Jan 10, 2011 5:28 pm

You only need to change the CRON entry for calling the renamed rss_import.php

davidb1121
Registered User
Posts: 14
Joined: Mon Aug 17, 2009 9:19 pm

Re: [RC] RSS Input

Post by davidb1121 » Wed Jan 12, 2011 1:59 pm

download?

User avatar
PoPoutdoor
Registered User
Posts: 217
Joined: Fri Oct 31, 2008 2:58 pm
Contact:

Re: [RC] RSS Input

Post by PoPoutdoor » Wed Jan 12, 2011 6:16 pm

Will upload RC4 to another site as soon as I finish the coding, please wait.

User avatar
PoPoutdoor
Registered User
Posts: 217
Joined: Fri Oct 31, 2008 2:58 pm
Contact:

Re: [RC] RSS Input

Post by PoPoutdoor » Thu Feb 03, 2011 6:52 pm

Special edition for the year of rabbit (兔年搶鮮版) been released, please read first post for the details.

Release note:
  1. No database changes, you can copy the files over to upgrade.
  2. Language file changes, translations other than zh_cmn_hant have to do another updates.
  3. Document at post #2 haven't update yet, you have to check out the source files before you do the customizations.

davidb1121
Registered User
Posts: 14
Joined: Mon Aug 17, 2009 9:19 pm

Re: [RC-4] RSS Input

Post by davidb1121 » Thu Feb 03, 2011 8:26 pm

i installed the mod

when i press "import now" i get this error

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /home/***/domains/***.com/public_html/includes/functions_find.php:49) in /home/***/domains/***.com/public_html/adm/index.php on line 150

Warning: Cannot modify header information - headers already sent by (output started at /home/***/domains/***.com/public_html/includes/functions_find.php:49) in /home/***/domains/***.com/public_html/adm/index.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/***/domains/***.com/public_html/includes/functions_find.php:49) in /home/***/domains/***.com/public_html/adm/index.php on line 153

Warning: Cannot modify header information - headers already sent by (output started at /home/***/domains/***.com/public_html/includes/functions_find.php:49) in /home/***/domains/***.com/public_html/adm/index.php on line 154
edit: i solved it by turning off the "open base_dir"

wadie
Registered User
Posts: 558
Joined: Sun May 02, 2010 5:05 am
Location: Your ACP
Name: Wadie

Re: [RC-4] RSS Input

Post by wadie » Sat Feb 05, 2011 5:59 pm

Are there any new edits ? or uploading the new files is just enough ?
Need a custom style made ? want me to install a MOD for you ? Contact me here.

User avatar
PoPoutdoor
Registered User
Posts: 217
Joined: Fri Oct 31, 2008 2:58 pm
Contact:

Re: [RC-4] RSS Input

Post by PoPoutdoor » Sun Feb 06, 2011 4:07 am

Very busy this week...

Have to add 1-2 entry to constants.php as I recall... better check with install.xml.

artikkk
Registered User
Posts: 379
Joined: Sun Jan 04, 2009 1:37 pm
Location: Roma

Re: [RC-4] RSS Input

Post by artikkk » Thu Feb 10, 2011 8:45 pm

when i click on Import now, i've this error
help me!

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1892: Undefined index: topic_status
Torna alla pagina iniziale
Errore Generale
SQL ERROR [ mysql4 ]

Column 'topic_status' cannot be null [1048]

SQL

INSERT INTO avphpbb_topics (topic_poster, topic_time, topic_last_view_time, forum_id, icon_id, topic_approved, topic_title, topic_kbcategory, topic_first_poster_name, topic_first_poster_colour, topic_type, topic_time_limit, topic_attachment, topic_status) VALUES (333, 1297370639, 1297370639, '30', 0, 1, 'ANSA.it', '0', 'PronoSky', '999999', 0, 0, 0, NULL)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 175
CALL: dbal->sql_error()

FILE: includes/functions_posting.php
LINE: 2040
CALL: dbal_mysql->sql_query()

FILE: includes/functions_find.php
LINE: 920
CALL: submit_post()

FILE: includes/functions_find.php
LINE: 534
CALL: rss_autopost()

FILE: includes/acp/acp_find.php
LINE: 119
CALL: get_rss_content()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_find->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()

my php info
allow_url_fopen = on
safe_mode = off
PHP Version 5.2.17
sorry for my bad english :S

User avatar
PoPoutdoor
Registered User
Posts: 217
Joined: Fri Oct 31, 2008 2:58 pm
Contact:

Re: [RC-4] RSS Input

Post by PoPoutdoor » Fri Feb 11, 2011 6:00 am

Seems your phpbb isn't 3.0.8
FILE: includes/functions_posting.php
LINE: 2040
CALL: dbal_mysql->sql_query()
Please confirm and provide more info if you sure the phpbb version is 3.0.8.

Patti2010
Registered User
Posts: 5
Joined: Sat May 01, 2010 7:24 pm

Re: [RC-4] RSS Input

Post by Patti2010 » Sun Feb 13, 2011 9:02 am

Code: Select all

Information

Feed fetch succefully: None.

Feed without updates: None.

Feed(s) with error:

[WinFuture News] is not compliance: xml tag missing or not xml document. Set Force Encoding with "UTF-8" may fix valid source with missing xml tag.


<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet type='text/xsl' href='http://rss.feedsportal.com/xsl/de/rss.xsl'?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" version="2.0"><channel><title>WinFuture News</title><link>http://winfuture.de/</link><description /><language>de-de</language><pubDate>Sun, 13 Feb 2011 08:55:01 GMT</pubDate><lastBuildDate>Sun, 13 Feb 2011 08:55:01 GMT</lastBuildDate><ttl>5</ttl><item><title>Oracle: 10 Jahre alte Java-Lücke geschlossen</title><link>http://rss.feedsportal.com/c/617/f/8093/s/12ac6b28/l/0Lwinfuture0Bde0Cnews0H6140A60Bhtml/story01.htm</link><description>Oracle hat einen außer
otherwise the feed always worked.

User avatar
PoPoutdoor
Registered User
Posts: 217
Joined: Fri Oct 31, 2008 2:58 pm
Contact:

Re: [RC-4] RSS Input

Post by PoPoutdoor » Sun Feb 13, 2011 4:53 pm

<?xml version='1.0' encoding='UTF-8'?>
Single quote (') is not compliance, if my memory is good.

Edit: Recheck XML 1.0 specification, both quotes ("') can be used. :oops:

User avatar
PoPoutdoor
Registered User
Posts: 217
Joined: Fri Oct 31, 2008 2:58 pm
Contact:

Re: [RC-4] RSS Input

Post by PoPoutdoor » Mon Feb 14, 2011 5:24 pm

RC4 fix #1

Open includes/function_find.php

Find

Code: Select all

		if ($xml === false)
		{
			$msg['err'][] = sprintf($user->lang['CURL_ERR'], $feedname, $url, curl_getinfo($fp, CURLINFO_HTTP_CODE), curl_error($fp));
			curl_close($fp);
			return false;
		}

		curl_close($fp);
Replace with

Code: Select all

		curl_close($fp);

		if ($xml === false)
		{
			$msg['err'][] = sprintf($user->lang['CURL_ERR'], $feedname, $url, curl_getinfo($fp, CURLINFO_HTTP_CODE), curl_error($fp));
			return false;
		}
Find

Code: Select all

	if (!preg_match('#^<\?xml\sversion="1.0"[^>]*>#is', $xml, $valid_xml_tag))
Replaced with

Code: Select all

	if (!preg_match('#^<\?xml\s+version=["\']1\.[0-9]+["\'][^>]*>#is', $xml, $valid_xml_tag))

Patti2010
Registered User
Posts: 5
Joined: Sat May 01, 2010 7:24 pm

Re: [RC-4] RSS Input

Post by Patti2010 » Tue Feb 15, 2011 5:44 am

after the fix

Code: Select all

Information

Feed fetch succefully: Kein.

Feed without updates: Kein.

Feed(s) with error:

[WinFuture News] Source or local server clock issue: time difference more than 30 second, or source timestamp data contains error!


:shock:

artikkk
Registered User
Posts: 379
Joined: Sun Jan 04, 2009 1:37 pm
Location: Roma

Re: [RC-4] RSS Input

Post by artikkk » Tue Feb 15, 2011 5:06 pm

PoPoutdoor wrote:Seems your phpbb isn't 3.0.8
FILE: includes/functions_posting.php
LINE: 2040
CALL: dbal_mysql->sql_query()
Please confirm and provide more info if you sure the phpbb version is 3.0.8.
my phpbb version is 3.0.8
acp screen
Image

:oops:
sorry for my bad english :S

Locked

Return to “[3.0.x] MODs in Development”