Page 1 of 1

Can't Export Entrie afte Upgrade tp 1.0Beta

Posted: Wed Jan 25, 2006 5:17 pm
by elvisanderson
Hi,

Was working fine, could export to RSS before, but now I get this error when I try to do it:

This page contains the following errors:

error on line 1 at column 1: Document is empty
Below is a rendering of the page up to the first error.

Wondering if anyone has a suggestion...

It's here:

www.adventurecanada.com/acblog/

Thanks!

Re: Can't Export Entrie afte Upgrade tp 1.0Beta

Posted: Wed Jan 25, 2006 7:04 pm
by garvinhicking
It seems that the function to fetch all entries fails for you. Can you please edit your "rss.php" file and look for this:

Code: Select all

    if (isset($_GET['all']) && $_GET['all']) {
        // Fetch all entries in reverse order for later importing. Fetch sticky entries as normal entries.
        $entries = serendipity_fetchEntries(null, true, '', false, false, 'id ASC', '', false, true);
    } else {
        $entries = serendipity_fetchEntries(null, true, 15, false, (isset($modified_since) ? $modified_since : false), 'timestamp DESC', '', false, true);
    }
please modify this to:

Code: Select all

    echo "DEBUGGING RSS:\n";
    if (isset($_GET['all']) && $_GET['all']) {
        // Fetch all entries in reverse order for later importing. Fetch sticky entries as normal entries.
        $entries = serendipity_fetchEntries(null, true, '', false, false, 'id ASC', '', false, true);
    } else {
        $entries = serendipity_fetchEntries(null, true, 15, false, (isset($modified_since) ? $modified_since : false), 'timestamp DESC', '', false, true);
    }
    print_r($entries);
Then tell me when you've inserted it, there should be a more verbose message inside the RSS feed.

Which event plugins do you have installed? It might be that one is interfering...

regards,
garvin

Posted: Wed Jan 25, 2006 7:16 pm
by elvisanderson
Hi. Thanks again for the super-fast response... where do I donate :-)

I have changed the rss.php, but don't get a more verbose error listing...

This is what I have for plugins/events:

Categories
Shows the list of categories.
version: 2.0

Calendar
QuickJump Calendar
version: 1.0

Quicksearch
Search for an entry
version: 1.0

Archives
Browse archives by month
version: 1.0

Syndicate This Blog
Shows RSS syndication links
version: 1.0

Blog Administration
Provides a link in the sidebar to your blog administration
version: 1.0

Powered by
Advertises the origins of your blog
version: 1.0

User Self-Registration
Allows blog visitors to create their own author account. Together with the Event-plugin (index.php?serendipity[subpage]=adduser) you can choose whether only registered users may post comments.
version: 1.7

Event Plugins

Markup: Serendipity
Apply basic serendipity markup to entry text
version: 1.1

Markup: Emoticate
Convert standard emoticons into graphic images
version: 1.2

Markup: NL2BR
Convert newlines to BR tags
version: 1.3

Browser Compatibility
Uses different (CSS) methods to enforce maximum browser compatibility
version: 1.0

Spam Protector
A variety of methods to prevent comment spam
version: 1.31

Google Sitemap Generator
Creates a sitemap.gz, which can be used by the the Googlebot.
version: 0.12

Spartacus
[S]erendipity [P]lugin [A]ccess [R]epository [T]ool [A]nd [C]ustomization/nification [S]ystem - Allows you to download plugins from our online repository
version: 2.5

Export blog as PDF
Allows visitors to download your blog in the PDF format
version: 1.3

RSS Aggregator
Display entries from multiple RSS feeds ("Planet"). IMPORTANT NOTE: Updating and "feeding" your Aggregator must currently still happen manually via Cronjobs or similar. Call this URL with your custom timing interval: http://www.adventurecanada.com/acblog/i ... aggregator
version: 0.6

Category Assignment
Lets you assign multiple categories to entries
version: 1.0


Properties/Templates of categories
This plugin allows you to change the template and some other properties depending on the selected category.
version: 0.6


Start Page Category
Allows you to show only one category on the frontpage
version: 1.1

Backup Interface ()
Provides the ability to automatically make backups from your s9y, the database-tables, the whole database and the files.
version: 0.7

Statistics
Adds a link to interesting statistics in your entries panel, including a visitors counter
version: 1.23

Extended properties for entries
(cache, non-public articles, sticky posts)
version: 1.8

Posted: Wed Jan 25, 2006 7:24 pm
by garvinhicking
Actually your display would only change if you refreshed your browser's cache or used this URL:

http://www.adventurecanada.com/acblog/r ... cache=true

Now, there the entries do appear. That's good. The question is now, where do they get lost.

Please replace your rss.php with this file:
http://nopaste.php-q.net/187030

This will add more debugging output that I can then look at to get at the root of the problem. I am very sure we can get this solved!

The list of your plugins should be okay, so I guess it must be some other strange thing interfering. But let'S see when I got the output :)

Regards
Garvin

Posted: Wed Jan 25, 2006 7:36 pm
by elvisanderson
Hi... it's changed and uploaded with the new rss.php... thanks again. Still having tha same error though...

Posted: Wed Jan 25, 2006 7:40 pm
by garvinhicking
Can it be that you didn't copy the "feed_2.0.tpl" and other feed_*.tpl templates from the new release? Because right now, the feed dies with the notice that it cannot find the feed template file...

Maybe you can locate this line in your rss.php:

Code: Select all

$template_file = serendipity_getTemplateFile('feed_' . $file_version . '.tpl', 'serendipityPath');
if (!$template_file) {
    die("Invalid RSS version specified\n");
}
replace that with:

Code: Select all

$template_file = serendipity_getTemplateFile('feed_' . $file_version . '.tpl', 'serendipityPath');
if (!$template_file) {
    echo 'DEBUG: Template file ' . $template_file . ' for ' . $file_version .  '!<br />';
    die("Invalid RSS version specified\n");
}
Regards,
Garvin

Posted: Wed Jan 25, 2006 8:29 pm
by elvisanderson
Have modded the rss.php. I checked and I have the complete Template directory, re-upped it again from the beta release to make sure.

Thanks

Posted: Wed Jan 25, 2006 8:38 pm
by garvinhicking
Now it seems your RSS feed is working! Please rename your current "rss.php" to "rss_test.php" and then re-upload the original rss.php.

Right now it seems that everything is working!

Regards,
Garvin

Posted: Wed Jan 25, 2006 8:45 pm
by elvisanderson
Seems to Be! Thanks again. We'll make a donation via paypal... do you take credit cards?

Posted: Wed Jan 25, 2006 8:53 pm
by garvinhicking
Great! I guess that there was a smarty template file just missing somehow :-/

I gladly do take paypal donations. I don't know though how to make that via credit card, I only used paypal for donating and receiving in the past...many thanks, it's greatly appreciated :)

Best regards and have fun,
Garvin