Problem trying to watch the blog

Having trouble installing serendipity?
Post Reply
etchever
Posts: 4
Joined: Mon Sep 06, 2004 10:24 pm

Problem trying to watch the blog

Post by etchever »

When I try to watch the blog, returns the following message:
Warning: main(): Failed opening '' for inclusion (include_path='/home/caetcha/public_html/b/:/home/caetcha/public_html/b/bundled-libs/:.:/usr/lib/php:/usr/local/lib/php') in /home/caetcha/public_html/b/serendipity_genpage.inc.php on line 43
What's the problem?
Thanks.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem trying to watch the blog

Post by garvinhicking »

We need more data: Which s9y version are you using? Which Template did you set?

Line 43 contains a gettemplateFile('layout.php') call in my version. Does that file exist in your subdirectories below 'templates', at least in the 'default' directory?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem trying to watch the blog

Post by garvinhicking »

For debuging, could you please edit your serendipity_genpage.inc.php file and replace that line with:

Code: Select all

echo 'Template file is: ' . serendipity_getTemplateFile('layout.php', 'serendipityPath');
include_once(serendipity_getTemplateFile('layout.php', 'serendipityPath'));
And then also please open your serendipity_functions_config.inc.php and search for the serendipity_getTemplateFile() function. Replace it with:

Code: Select all

function serendipity_getTemplateFile($file, $key = 'serendipityHTTPPath') {
    global $serendipity;

    $directories = array(
      (isset($serendipity['template']) ? $serendipity['template'] . '/' : ''),
      $serendipity['defaultTemplate'] .'/',
      'default/'
    );

    foreach ($directories as $directory) {
        $templateFile = $serendipity['templatePath'] . $directory . $file;

        if (file_exists($serendipity['serendipityPath'] . $templateFile)) {
            return $serendipity[$key] . $templateFile;
        } else {
            echo 'File not found: ' . $serendipity[$key] . $templateFile . "<br />\n";
        }
    }
    return false;
}
(Not the 'else' part with the file not found message, that's what I added). And then please show us your output! :-)

Thanks a lot!
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem trying to watch the blog

Post by garvinhicking »

Ah, it's me again :)

Did you maybe download the 0.7-beta1 tarball yesterday? Please check if your file is about 800kb in size; if not, you got a bad release from SourceForge, and please download the file again!

Thanks,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
etchever
Posts: 4
Joined: Mon Sep 06, 2004 10:24 pm

Re: Problem trying to watch the blog

Post by etchever »

garvinhicking wrote:Ah, it's me again :)

Did you maybe download the 0.7-beta1 tarball yesterday? Please check if your file is about 800kb in size; if not, you got a bad release from SourceForge, and please download the file again!

Thanks,
Garvin
I made that and now it works. I can see the blog, but, if I select Portuguese Brazil as default language and edition in mode wysiwyg, there are two problems: the wysiwyg panel don't appears at "Entry body" and don't works at "Extended body".
Thanks.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem trying to watch the blog

Post by garvinhicking »

Hi etchever!
I made that and now it works. I can see the blog, but, if I select Portuguese Brazil as default language and edition in mode wysiwyg, there are two problems: the wysiwyg panel don't appears at "Entry body" and don't works at "Extended body".
Thanks.
Hm, did you try if the editor appears when selecting english language? If it appears,, then please open the file lang/serendipity_lang_pt.inc.php and change this line:

Code: Select all

@define('WYSIWYG_LANG', 'pt_BR');
to this:

Code: Select all

@define('WYSIWYG_LANG', 'pt_br');
(Note the capitals becoming lowercase)
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
etchever
Posts: 4
Joined: Mon Sep 06, 2004 10:24 pm

Re: Problem trying to watch the blog

Post by etchever »

garvinhicking wrote:Hi etchever!
I made that and now it works. I can see the blog, but, if I select Portuguese Brazil as default language and edition in mode wysiwyg, there are two problems: the wysiwyg panel don't appears at "Entry body" and don't works at "Extended body".
Thanks.
Hm, did you try if the editor appears when selecting english language? If it appears,, then please open the file lang/serendipity_lang_pt.inc.php and change this line:

Code: Select all

@define('WYSIWYG_LANG', 'pt_BR');
to this:

Code: Select all

@define('WYSIWYG_LANG', 'pt_br');
(Note the capitals becoming lowercase)
The editor appears when I select english language. I made the modification sugested, but the problem remains.
Thank you.
etchever
Posts: 4
Joined: Mon Sep 06, 2004 10:24 pm

Re: Problem trying to watch the blog

Post by etchever »

etchever wrote:
garvinhicking wrote:Hi etchever!
I made that and now it works. I can see the blog, but, if I select Portuguese Brazil as default language and edition in mode wysiwyg, there are two problems: the wysiwyg panel don't appears at "Entry body" and don't works at "Extended body".
Thanks.
Hm, did you try if the editor appears when selecting english language? If it appears,, then please open the file lang/serendipity_lang_pt.inc.php and change this line:

Code: Select all

@define('WYSIWYG_LANG', 'pt_BR');
to this:

Code: Select all

@define('WYSIWYG_LANG', 'pt_br');
(Note the capitals becoming lowercase)
The editor appears when I select english language. I made the modification sugested, but the problem remains.
Thank you.
After comment the line sugested, it works fine. Only the editor panel remains in english, but this is not a problem. I think is a good idea to rename the file "en.js", in 'htmlarea/lang, to "pt_br.js".
Thank you..
Post Reply