Forums / All Other Contributions/Addons / RSS2 Feed Contribution

RSS2 Feed Contribution

Views: 202,797

Results 361 to 380 of 955
1 Apr 2008, 3:25 AM
#361
elishama3 avatar

elishama3

New Zenner

Join Date:
Aug 2007
Posts:
62
Plugin Contributions:
0

RSS2 Feed Contribution

a_berezin:

Ok. Use this /rss_feed/tpl_main_page.php (for debug only!!!):

<?php /** * rss_feed tpl_main_page.php * * @package rss feed * @copyright Copyright 2004-2007 Andrew Berezin eCommerce-Service.com * @copyright Portions Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: tpl_main_page.php, v 2.1.4 14.02.2008 15:26 Andrew Berezin $ */ if(headers_sent($filename, $linenum)) { echo "Headers already sent in $filename on line $linenum"; exit; } $rss->rss_feed_out(); require(DIR_WS_INCLUDES . 'application_bottom.php'); zen_exit(); ?>

I loaded that into the file instead (saving the original in a separate file) and got the error message: 

XML Parsing Error: xml declaration not at start of external entity
Location: <http://www.phoenixflightpublications.com/index.php?main_page=rss_feed&feed=products>
Line Number 2, Column 1:<?xml version="1.0" encoding="iso-8859-1"?>

For debug purposes, does this help?
1 Apr 2008, 6:00 AM
#362
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: RSS2 Feed Contribution

elishama3:

For debug purposes, does this help?
Unfortunately not. :no: The only way to help - to give me access to FTP.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

1 Apr 2008, 12:53 PM
#363
craigkendall avatar

craigkendall

New Zenner

Join Date:
May 2007
Posts:
46
Plugin Contributions:
0

Re: RSS2 Feed Contribution

a_berezin:

Yes. It compatible with 1.3.7 and 1.3.8.

You have to adjust himself these files:

Thanks for the help... I guess something was not right...

here's the error message I get when I attempt to click the feed link...

Warning: require(includes/templates/template_default/templates/tpl_rss_feed_default.php) [function.require]: failed to open stream: No such file or directory in /home/removed/craiglkendall/econoclips.com/includes/templates/apple_zen/common/tpl_main_page.php on line 119

Fatal error: require() [function.require]: Failed opening required 'includes/templates/template_default/templates/tpl_rss_feed_default.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/removed/craiglkendall/econoclips.com/includes/templates/apple_zen/common/tpl_main_page.php on line 119

Any suggestions?

1 Apr 2008, 12:58 PM
#364
craigkendall avatar

craigkendall

New Zenner

Join Date:
May 2007
Posts:
46
Plugin Contributions:
0

Re: RSS2 Feed Contribution

craigkendall:

Thanks for the help... I guess something was not right...

here's the error message I get when I attempt to click the feed link...

Any suggestions?

Oh, here's another error when I try to edit the CATEGORIES FOR PRODUCTS item on the RSS FEED admin page

Fatal error: Call to undefined function cfg_select_option() in /home/removed/craiglkendall/econoclips.com/admin/configuration.php(192) : eval()'d code on line 1

1 Apr 2008, 1:07 PM
#365
craigkendall avatar

craigkendall

New Zenner

Join Date:
May 2007
Posts:
46
Plugin Contributions:
0

Re: RSS2 Feed Contribution

Never mind... got it... OH silly me. Forgot to rename YOUR_TEMPLATE before upload.

It works!

One small issue... I'm pricing by attributes. Any suggestions for how to include those attributes in the feed?

2 Apr 2008, 7:35 AM
#366
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: RSS2 Feed Contribution

craigkendall:

I'm pricing by attributes. Any suggestions for how to include those attributes in the feed?
You can not add attributes in the price tag - http://base.google.com/support/bin/answer.py?answer=73932&hl=en.
In the future, you can include the price and a list of attributes to describe.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

3 Apr 2008, 11:13 PM
#367
stoned_6 avatar

stoned_6

New Zenner

Join Date:
Jul 2006
Posts:
14
Plugin Contributions:
0

Re: RSS2 Feed Contribution

Hello,
Ive problems to install the sql update. I got every time this error message :

9 statements processed.
ERROR: Cannot insert configuration_key "" because it already exists
Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.

I have no plan how to fix that.

thanks for help :oops:

3 Apr 2008, 11:20 PM
#368
craigkendall avatar

craigkendall

New Zenner

Join Date:
May 2007
Posts:
46
Plugin Contributions:
0

Re: RSS2 Feed Contribution

craigkendall:

Oh, here's another error when I try to edit the CATEGORIES FOR PRODUCTS item on the RSS FEED admin page

Well, I was sorta fixed. In the admin I get the following error when I click on the Feed Cache Time option.

Call to undefined function cfg_select_option() in /home/<removed>/<removed>/econoclips.com/admin/configuration.php(192) : eval()'d code on line 1

I added a couple of new products this AM and noticed my feed didn't show those. So I was trying to see if there was a cache issue and found no instructions as to those settings...

  1. Any ideas on the error (I'm running 1.3.7)
  2. Any instructions regarding getting the new products to show up when they are posted?
4 Apr 2008, 7:34 AM
#369
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: RSS2 Feed Contribution

Stoned-6:

Ive problems to install the sql update.
You update from what version to what version?

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

4 Apr 2008, 8:06 AM
#370
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: RSS2 Feed Contribution

craigkendall:

  1. Any ideas on the error (I'm running 1.3.7)
    No any ideas - in install.sql function 'cfg_select_option()' don't used.
    craigkendall:

  2. Any instructions regarding getting the new products to show up when they are posted?
    No any "special" instructions. I'm simply add new products. If the cache is active, you should wait until it refresh or clear it by hands.

It also called attention to the parameter "Time to live (ttl)" - RTFM.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

4 Apr 2008, 9:12 AM
#371
stoned_6 avatar

stoned_6

New Zenner

Join Date:
Jul 2006
Posts:
14
Plugin Contributions:
0

Re: RSS2 Feed Contribution

HI,
it is a new installation. I use zen cart 1.3.7.1. I also try the uninstall sql but every time I install it again I got the same error. :-(

regards

Frank

4 Apr 2008, 9:47 AM
#372
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: RSS2 Feed Contribution

Stoned-6:

HI,
it is a new installation. I use zen cart 1.3.7.1. I also try the uninstall sql but every time I install it again I got the same error. :-(
I don't understand you - it is a new installation or updates? If the new, why do you "install the sql update"?

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

4 Apr 2008, 1:59 PM
#373
craigkendall avatar

craigkendall

New Zenner

Join Date:
May 2007
Posts:
46
Plugin Contributions:
0

Re: RSS2 Feed Contribution

a_berezin:

No any ideas - in install.sql function 'cfg_select_option()' don't used.

No any "special" instructions. I'm simply add new products. If the cache is active, you should wait until it refresh or clear it by hands.

It also called attention to the parameter "Time to live (ttl)" - RTFM.

Thanks for the insight so far... I did manually clear the cache folder and the feed seems to be current now. Well, at least on the page. Not sure it's getting out the feeds when refreshed.

On the cfg_select_option error on the admin page for RSS, the error seems to relate to the database column inserted labeled set_function where the value is:

cfg_select_option(array('news', 'new_products', 'upcoming', 'featured', 'specials', 'products', 'categories')

The only configuration options where I get the error on the admin pages are where this line appears in the set_function column.

Only other thing I can think of is that all my database tables have a prefix set during install... say "foo_" in front of each table name, so for instance the "customers" table in my database would be "foo_customers" and so forth.

Any ideas with that info?

4 Apr 2008, 2:21 PM
#374
craigkendall avatar

craigkendall

New Zenner

Join Date:
May 2007
Posts:
46
Plugin Contributions:
0

Re: RSS2 Feed Contribution

Figured it out! YAY!

Because I use a table prefix in database, all the set_function statements:

NORMAL:

cfg_select_option(array('news', 'new_products', 'upcoming', 'featured', 'specials', 'products', 'categories'),

Have to include that prefix:

foo_cfg_select_option(array('news', 'new_products', 'upcoming', 'featured', 'specials', 'products', 'categories'),

Fixed, running, updating too! YAY!!!

4 Apr 2008, 2:25 PM
#375
craigkendall avatar

craigkendall

New Zenner

Join Date:
May 2007
Posts:
46
Plugin Contributions:
0

Re: RSS2 Feed Contribution

Ohh... one last "find" in this research...

Your final configuration option...

(NULL, 'Feed Cache Time', 'RSS_CACHE_TIME', '10', 'Cache Time (in min). If you don't want caching, set it to 0', @configuration_group_id, 200, NOW(), NULL, 'cfg_select_option(array('true', 'false'),');

When you pull it up in the admin you have options... set in the option select statement above... are TRUE and FALSE. But, in the explanation you indicate "If you don't want caching, set it to 0" and initial setting you have 0 (zero) as the setting.

Hope this helps with debugging this great contribution.

4 Apr 2008, 7:18 PM
#376
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: RSS2 Feed Contribution

craigkendall:

Figured it out! YAY!

Because I use a table prefix in database, all the set_function statements:

NORMAL:

cfg_select_option(array('news', 'new_products', 'upcoming', 'featured', 'specials', 'products', 'categories'),

> 
> Have to include that prefix:
> ```
foo_cfg_select_option(array('news', 'new_products', 'upcoming', 'featured', 'specials', 'products', 'categories'),

Fixed, running, updating too! YAY!!!
No comments. :wacko: Sorry, but I can't help you.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

5 Apr 2008, 9:56 AM
#377
spbennett avatar

spbennett

Zen Follower

Join Date:
Feb 2007
Location:
Leicester UK
Posts:
230
Plugin Contributions:
0

Re: RSS2 Feed Contribution

craigkendall:

Figured it out! YAY!

Because I use a table prefix in database, all the set_function statements:

NORMAL:

Have to include that prefix:

Fixed, running, updating too! YAY!!!

I believe that if you run your sql scripts through the zencart admin using 'Tools > Install SQL Patches' database and table prefixes are added automatically.

5 Apr 2008, 10:04 AM
#378
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: RSS2 Feed Contribution

spbennett:

I believe that if you run your sql scripts through the zencart admin using 'Tools > Install SQL Patches' database and table prefixes are added automatically.

table prefixes - yes.
But why you change the function names???

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

6 Apr 2008, 8:56 AM
#379
davidandrews avatar

davidandrews

Zen Follower

Join Date:
Apr 2006
Posts:
108
Plugin Contributions:
0

Re: RSS2 Feed Contribution

HI There
IN the admin control panel there is a space for adding an image
How do i do this? Do i add a URL for an image?
there is no browse button to upload one, so i guess this was this

Are there limitations or restrictions (size)

Thanks

6 Apr 2008, 12:12 PM
#380
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: RSS2 Feed Contribution

davidandrews:

IN the admin control panel there is a space for adding an image
How do i do this?
File name. The file can be placed in the directory images/ or in the directory includes/templates/YOUR_TEMPLATE/images/.
davidandrews:

Are there limitations or restrictions (size)
RTFM

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.