Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jan 2007
    Posts
    236
    Plugin Contributions
    0

    Default trying to get RSS feed working in my EZ-page

    Hi. I was able to clumsily have an RSS feed appear in a new EZ page. All is fine except it has returned an error message that is cryptic to me as follows:

    Fatal error: Call to a member function get_template_dir() on a non-object in C:\Webs\theribbondiva\includes\functions\html_output.php on line 294

    have a look at : http://www.theribbondiva.com/index.p...e=holiday_news

    I added the link from the 'more information box' now called 'of interest.

    I cant believe I got this far! I would love one of you zenners to help me figure out how to correct the error above.

    There is a template file in the root that controls the output and a parser caller rss2html.php in the root.

    Thanks!

  2. #2
    Join Date
    Jan 2007
    Posts
    236
    Plugin Contributions
    0

    Default Re: success with an error

    I just noticed that the footer doesn't load on that page.

  3. #3
    Join Date
    Jan 2007
    Posts
    236
    Plugin Contributions
    0

    Default Re: success with an error

    this is the code generated for the feed:

    Code:
     
    <?php
    $XMLFILE = "http://www.associatedcontent.com/rss/recent_74.xml";
    $TEMPLATE = "http://www.theribbondiva.com/holiday-template.html";
    include("rss2html.php");
    ?>
    is there a conflict??

  4. #4
    Join Date
    Jan 2007
    Posts
    236
    Plugin Contributions
    0

    Default Re: success with an error

    Is this a hard one?

    Did I try to do the undoable?


  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: trying to get RSS feed working in my EZ-page

    Quote Originally Posted by studeo View Post
    Hi. I was able to clumsily have an RSS feed appear in a new EZ page.
    The error is related to whatever you did to get this new page ... which, by the way, doesn't appear to be an EZ-Page, but rather an actual different "page".

    For some reason your page has broken the normal availability of variables related to the template system.

    What exact steps did you follow to make this new page?
    It will probably help if you zip and post a copy of all the files you created to make it happen.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jan 2007
    Posts
    236
    Plugin Contributions
    0

    Default Re: trying to get RSS feed working in my EZ-page

    Hi. Thanks for a look. I used the 'about_us' mod which I have used about on 10 other pages. I have double checked it all. I will send you the zip file asap.

    Thanks

  7. #7
    Join Date
    Jan 2007
    Posts
    236
    Plugin Contributions
    0

    Default Re: trying to get RSS feed working in my EZ-page

    here is a zip file doc. One file is missing since it has the same name as the overide file and the override file has the code in it.

    I've included the related files...the file that parses, the file that calls the template and converts it ti html and the file used as the template.

    Thanks. I know you are abrilliant man. I hope we can figure this out as it might be useful for others to add content to pages other than the index.
    Attached Files Attached Files

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: trying to get RSS feed working in my EZ-page

    The RSS mod you're using resets the $template variable used in Zen Cart to something else. And then, when control returns to Zen Cart, Zen Cart doesn't understand what to do because the dependencies have been changed.

    To work around that, try this:
    In your define_holiday_news.php file, try adding two extra lines, as shown:
    Code:
    <?php
    $zenCartTemplate = $template;
    $XMLFILE = "http://www.associatedcontent.com/rss/recent_74.xml";
    $TEMPLATE = "http://www.theribbondiva.com/holiday-template.html";
    include("rss2html.php");
    $template = $zenCartTemplate;
    ?>

    In v1.4 the Zen Cart internal code will be using less-common names (as a byproduct of various transitions) and will thus be less prone to conflicts such as you're experiencing here.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Jan 2007
    Posts
    236
    Plugin Contributions
    0

    Default Re: trying to get RSS feed working in my EZ-page

    Thank You. You are an amazing man!

    I knew the template was being hijacked, I had no clue that I could write a fix on the page itself!

    A million thanks!

    What do you think of this way to add rss to zen? not bad right?

  10. #10
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: trying to get RSS feed working in my EZ-page

    I have searched this support forum on keywords "RSS" and "ezpage" (or "ez-page") and have not located anything specific.

    Is there in existence a documented method (or FAQ) to create an ez-pages RSS feed for Zen Cart?

    I have installed Andrew's latest RSS feed mod v2.03 and it's very nice. However I have not yet figured out how to apply to creating a feed of ez-pages. Andrew's updated mod has built in support for the "News Articles & Mgmt" mod, but I see no reference to ez-pages or info pages).

    Or does ez-pages have some sort of built in RSS feed support I am not aware of?

    Studeo, if possible, can you please package up your current working files as a mod and upload to Zen Cart download area? Assuming you have fully tested on Zen Cart 1.3.7.1.

    Thanks,
    Woody

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. RSS feed not working in ie6 and google chrome!
    By arunkarthik in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 23 Jun 2010, 07:50 AM
  2. Adding RSS feed to E-Z page
    By direwolf in forum General Questions
    Replies: 4
    Last Post: 14 Oct 2008, 12:08 AM
  3. Can I use an RSS feed as an external page?
    By Ben-B in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Feb 2008, 04:36 PM
  4. rss feed mod blank page
    By colemanpa in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 3 Feb 2008, 08:05 AM
  5. rss feed external link in the feed?
    By Kitty in forum General Questions
    Replies: 11
    Last Post: 26 Jan 2008, 09:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg